![]() |
Why use %Y and %B at the same time?
I have seen several XP bars that are displaying the %Y and the %B. I am curious to know why you would want the %B?
Ansar |
Quote:
|
Dumb question
I feel stupid asking this but what does the % y and % b mean exactly?
|
Quote:
|
What I want to know is why no one has been able to create a single value from these two?
Y.B ?? Seems fairly obvious to me but the only bar I've seen with both has had them positioned away from each other.. |
Quote:
unless of course I am totally wrong, in which case my noobishness has been revealed to the world :) You did just give me a pretty cool idea though for a minor mod I'll need to make /me runs off to the drawing board |
y: is the percentage of the yellow bar (it represents your entire level). 0 being an empty bar and 100 being a level up.
b: is the percentage of the blue bar (the blue bar is 10% of the yellow bar). 0 being and empty and 100 being a full blue bar or 10% of the yellow bar. so if i had Y:12% B:25% my total experience would be 12.5% |
I thought the blue bar was just how much to the next yellow %.
So if you had 53% yellow and 98% blue you'd need only 2% more blue for 54% yellow. |
Quote:
uh... if you have 25% of the 10% the blue represents your total would be 12.025% since 25% of 10% would actually be 2.5% and moving the decimal 2 places to fit the formating of 12% makes it 12.025% unless i am just doing really bad math. |
Quote:
|
Quote:
Quote:
Quote:
Unless I (and Insomniac) are very much mistaken, 25% blue is 2.5% yellow, thus 12.5% yellow equals 125% blue. Personally, I wish Sony would make 100% blue equal to 1% yellow. It would be a lot less confusing, as well as making progress more noticable. :D Shadowpheonix Message edited to correct a typo. |
%ages
You'd never had 58% yellow and 98% blue. Since the scope of these two bars slightly overlaps, the last digit of the yellow and the first digit of the blue will ALWAYS be the same, right?
Y: 12% B: 25% Y: 99% B: 92% etc One easy way to look at it is just ignore the first digit of blue and use the second digit as you tenths place. I don't think you can do this kind of math with an XML document, but to combine the two mathematically, I think you can do: Yellow_value + ((Blue_value mod 10) / 10) |
There is no such thing as 101% shdw ;) 12.5% would be 25% blue according to what you have said.
eg. You have 47.26% xp. Yellow displays 47%. Blue would be 72.6%. eg. You have 81.97% xp. Yellow displays 81%. Blue would be 19.7% Next question.. could you use some nifty layering/UI skills to draw these two values together and hide/create a new decimal point? 47%--72.6% = 47- - . 2 6% as a basic idea. Obviously that would look stupid. EDIT: Hi Uz. I'm slow huh :cool: EDIT2: OMG 666 Views. Plus Dimebag died :( Plus the server's down :( /ramble |
Quote:
Y:-12 B:--24 ---12.4 The 2 red digits will always match. |
Quote:
As to getting the UI to display something like 47.26%, unfortunately, the gamedata currently does not include decimal places for either bar so the best we can do is combine the two bars to get 47.2% (yellow=47%, and blue=72%). Shadowpheonix |
Not sure how, but Humudce has gotten XX.XX% working on his xp bars.
Good stuff. |
you did notice that the numbers don't match the bars in the example, right??
the bar shows about 74.49% text editting in a picture is so helpful. |
The math really isn't all that hard...
You can look at it two ways: (values to use are bold) 1 yellow bubble = 10% yellow 2.5 blue bubbles = 25% blue 10 + 2.5 = 12.5% (yes this always works for any combination of XP) or if you want more perfect math: B = blue% Y = yellow% Bx = (10/100) * B Bx + Y = Total Percent So lets plug it in: B = 25 Y = 10 2.5 = (10/100) * 25 2.5 + 10 = 12.5 Sorry, math is my friend... |
| All times are GMT -5. The time now is 10:55 PM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI