Official Pawn forums Forum Index
  
Relative Scaling

 
Post new topic   Reply to topic    Official Pawn forums Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
bando



Joined: 09 Jul 2007
Posts: 76
Location: Garona-US

PostPosted: Mon Jul 09, 2007 4:21 pm    Post subject: Relative Scaling Reply with quote

Lootzor is an awesome weighted search tool for equipment. It does one tiny, but significant, thing different than Pawn - it makes all the scores relative so the numbers are easy to compare no matter what scoring you put in. Most things will be in the double digits, with a few truly terrible items in the single digits and a few amazingly good items in the triple digits. No matter what values you put in!

The total score is calculated by dividing it by the sum of all the weights.

For example, take two very similar scales:
(Pawn: v1: "Healing 1": Intellect=0.65, Mp5=5, Healing=1, Stamina=0.05)
(Pawn: v1: "Healing 2": Intellect=65, Mp5=500, Healing=100, Stamina=5)

Although the numbers are differant, each point of healing is worth the same compared to a point of intellect, etc in both scales. Yet the second one will produce a score that would suggest it is 100x better than the first!

Check it out with this item:
Mask of Penance
Binds when picked up
Head Plate
922 Armor
+27 Stamina
+30 Intellect
Durability 80 / 80
Requires Level 68
Equip: Increases healing done by spells and effects by up to 66.
Equip: Restores 10 mana per 5 sec.

"Healing 1" would say it is worth 136.9
"Healing 2" would say it is worth 13685

The solution is to divide both scores by the sum of all the scale values (7.7 for "Healing 1" and 770 for "Healing 2") producing the same result: 17.7

Make sense? Then people can compare items of various scales and big or small numbers but they're still comparable.

If its still hard to understand, just think of each value as a percent of all the values you care about, instead of an arbitrary number.
Back to top
View user's profileSend private message
Vger
Pawn Mod Creator


Joined: 09 Jul 2007
Posts: 120
Location: Azjol-Nerub (US)

PostPosted: Thu Feb 21, 2008 5:43 pm    Post subject: Reply with quote

In case anyone stumbles across this post, Pawn has had an option to calculate values using the Lootzor method since at least version 0.8. You can find it on the Options screen. (In previous versions of Pawn you had to do the division yourself, which was a pain since you'd have to change every other stat in your scale every time you changed one of them.)
Back to top
View user's profileSend private messageVisit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Official Pawn forums Forum Index -> Feature Requests All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum