EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   UI User Discussion (https://www.eq2interface.com/forums/forumdisplay.php?f=26)
-   -   Why use %Y and %B at the same time? (https://www.eq2interface.com/forums/showthread.php?t=389)

ansar 11-19-2004 05:52 PM

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

Sir Taleisin The Seer 11-19-2004 06:19 PM

Quote:

Originally Posted by ansar
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

me for one, I'm thinking about the higher levels where mobs and quests wont give you as much XP, I'd like a little more acurate way than just guessing if my bars are moving or not :-)

GregorMcCrae 12-07-2004 11:59 AM

Dumb question
 
I feel stupid asking this but what does the % y and % b mean exactly?

Averad 12-07-2004 12:28 PM

Quote:

Originally Posted by GregorMcCrae
I feel stupid asking this but what does the % y and % b mean exactly?

Yellow and Blue for the 2 colors of exp on your bar.

kamix 12-08-2004 10:29 AM

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..

NetSapiens 12-08-2004 10:46 AM

Quote:

Originally Posted by kamix
What I want to know is why no one has been able to create a single value from these two?

well... the yellow is always including the blue, so remove the blue, then you have one value, with both :)

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

insomniac 12-08-2004 01:20 PM

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%

Kromulis 12-08-2004 01:30 PM

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.

Kudane 12-08-2004 01:48 PM

Quote:

Originally Posted by insomniac
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%


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.

Cyrus 12-08-2004 02:52 PM

Quote:

Originally Posted by Kudane
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.

you're close...its 12.25%...

shdwphnx 12-08-2004 03:15 PM

Quote:

Originally Posted by Insomniac
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

Quote:

Originally Posted by Kudane
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:

Originally Posted by Cyrus
you're close...its 12.25%...

Actually Kudane, I believe you are shifting the decimal in the wrong direction, and Cyrus isn't shifting it at all.

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.

Uziekiele 12-09-2004 10:43 AM

%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)

kamix 12-09-2004 11:03 AM

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

insomniac 12-09-2004 03:02 PM

Quote:

Originally Posted by Uziekiele
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)

Right. or like i posted earlier:

Y:-12
B:--24
---12.4
The 2 red digits will always match.

shdwphnx 12-10-2004 09:43 AM

Quote:

Originally Posted by kamix
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

No such thing as 101%? Sure there is. Put a glass of water on your counter. Fill it until it is 100% full, then add just a touch more. Your 1% is now all over your counter. :p

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

kamix 12-13-2004 12:53 AM

Not sure how, but Humudce has gotten XX.XX% working on his xp bars.

Good stuff.


beowulf_of_wa 12-13-2004 06:42 AM

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.

0ctavius 01-08-2005 12:23 AM

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