I tried this formula to increase atk for ever 10 HP lost.
atk = 200 + (user.mhp - user.hp)*0.1;But I got the same error as you.
When I run it inside my browser I get the error message: "too much recursion".
This happened because of the user.mhp but I don't exactly know why.
In case of your second edit:
atk = 200 + user.at - ( user.hp * 0.1 );user.at is meant to be the attack?
Then you have to use
atk = 200 + user.atk - (user.hp * 0.1);Here's a list of all the properties.
*snip*I don't know if you can use all of them with this plugin.
user.atk won't work, but user.at works...
Uptill now what I manage to work was on this attack that increases the less HP the user has. worked pretty well with the mage:
<Custom Parameters>
atk = user.paramBase(2) * ( 1000 / user.hp );
mat = user.paramBase(4) * ( 1000 / user.hp );
</Custom Parameters>
This way when the HP is 300, the atk is * 3, when it's 200 it's * 5 and when it's 100 it's *10. It gets as powerful as I wanted for an ultimate weapon.
Now I'll dive into the agility one, in which user.agi doesn't work either...
EDIT: Better use:
<Custom Parameters>
atk = user.paramBase(2) * ( user.paramBase(0) / user.hp );
mat = user.paramBase(4) * ( user.paramBase(0) / user.hp );
</Custom Parameters>
To ensure that a level 99 character with 4000 HP on get a lower attack just because the total HP goes over the 1000 defined before: (1000/4000 = 0.25)
Now a character with 4000 HP gets a modifier of "1", which will be the minimum...