Difference between revisions of "Virindi XPHelper"
From VirindiPlugins
Line 4: | Line 4: | ||
To determine this, the following algorithm is used for each primary attribute type:<br> | To determine this, the following algorithm is used for each primary attribute type:<br> | ||
− | <div class=code | + | <div class=code> |
foreach (skill or secondary attribute)<br> | foreach (skill or secondary attribute)<br> | ||
{<br> | {<br> | ||
+ | optimal_cost = 0<br> | ||
if (this skill depends on the current primary attribute)<br> | if (this skill depends on the current primary attribute)<br> | ||
{<br> | {<br> |
Revision as of 23:24, 21 March 2012
Virindi XPHelper helps determine how much your character's primary attributes (strength, endurance, etc) should cost to raise based on the costs of your skills and secondary attributes (health, stamina, mana).
To determine this, the following algorithm is used for each primary attribute type:
foreach (skill or secondary attribute)
{
optimal_cost = 0
if (this skill depends on the current primary attribute)
{
optimal_cost = optimal_cost + cost_to_raise_this_skill / attribute_divisor_for_this_skill
}