EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   Wish List (https://www.eq2interface.com/forums/forumdisplay.php?f=10)
-   -   Avoidance Percent (dynamic data) (https://www.eq2interface.com/forums/showthread.php?t=11356)

Drumstix42 07-26-2008 03:32 PM

Avoidance Percent (dynamic data)
 
1 Attachment(s)
As far as I know and can see, there is no dynamic data for total Avoidance percentage. There is the avoidance number, and the percentages for each invididual percent (see attached screenshot).



My first thought was to just add these percents together, and code it up specially in the UI, but this does not equal the actual avoidance percentage. So, there's a problem with that. Currently we can display mitigation numbers and percent, but only the avoidance number. Could this be added?

Thanks :D

gm9 07-26-2008 04:13 PM

Interesting. I don't have any tanks so I never noticed.

ObsidianDragon 07-27-2008 01:33 PM

they don't add, because each is a separate check - the total avoidance is the chance that one of your avoidance methods will kick in on any given attack. the way to find it is to calculate the inverse, that is, the chance that all avoidance chances fail, then subtract it from 100%

total avoidance = 1 - ( (1 - base) * (1 - block) * (1 - parry) * (1 - deflection) )

in your example:
total avoidance = 1 - ( (1 - 0.238) * (1 - 0.174) * (1 - 0.080) * (1 - 0) ) = 0.42094096 rounds to 0.421

Drumstix42 07-27-2008 02:28 PM

Nice. Guess I should have checked it that way, too.

The problem still remains, however. The dynamic data includes a % sign in it, and there is no way to subtract or add the data together in the UI.

gm9 07-27-2008 05:52 PM

Quote:

Originally Posted by Drumstix42 (Post 74519)
The problem still remains, however. The dynamic data includes a % sign in it, and there is no way to subtract or add the data together in the UI.

Make a database with elements like <Data Name="12%" Value="12"> and then perform a string comparison to find the correcte element. ;)

nluerdarea 07-27-2008 06:10 PM

Meh
 
Sounds like work to me...

Drumstix42 07-27-2008 07:35 PM

Quote:

Originally Posted by gm9 (Post 74522)
Make a database with elements like <Data Name="12%" Value="12"> and then perform a string comparison to find the correcte element. ;)

LOL ... :eek:

ObsidianDragon 07-28-2008 02:12 PM

It wouldn't be that hard to make a table like that, though I've no idea what the computational limitations are in the UI pieces. (I don't really know xml, though I sometimes successfully hack stuff together from extant pieces.) Can you do float multiplication? Of course the table would be largish, with 1000 elements (to 1/10ths of a percent) but not sure if that's really a problem.

gm9 07-28-2008 02:22 PM

No, the table only needs to go from 0 to 100% (or even less, depending on whatever the respective caps are). UI scripting wise it's standard stuff, nothing special, my UI runs through lots of these comparisons all the time because that's the only way you can do some stuff. And computation in EQ2 always uses floating point anyway.

Drumstix42 07-28-2008 02:31 PM

What about decimals? 10.2% ?

Quote:

Avoidance Cap = 80%

* Base = 80%
* Blocking = 70%
* Parry = 70%
* Deflection = 70%

gm9 07-28-2008 02:38 PM

Ah right, forgot that there are decimals, so 800 elements? Might have to split it to several buttons, not sure if a single one can take that many characters as a value. :D

Drumstix42 07-28-2008 02:41 PM

Haha, that's why I responded with the "LOL" above. :rolleyes:
Yeah I guess it COULD be done, but doesn't seem very practical.

This could all be solved with the access to the single dynamic data property!

Drumstix42 08-03-2008 11:49 PM

If you put 4% into a location property, it will trim off the % sign, but if you try to put decimals, it will also trim them off as well.

So... doesn't help much.

Drumstix42 10-06-2008 05:07 PM

I noticed this a while ago, but forgot to post.

When you inspect someone, it will give their Avoidance Percentage, but it's not powered by dynamic data. It's hardcoded in the inspect window.

Hope that they take a looksie over the "wishlist" of dynamic data soon, and at least implement this. It would pretty much finish off player stats for the most part...


All times are GMT -5. The time now is 11:40 AM.

vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI