Hello, I'm making some sort of graphic adventure/rpg and my character's got properties like "strength" and "intelligence". What I need to do is that raising one of those abilities, also raises another. For example, if the player gains 1 strenght, he also gains 2 HP. Thanks for your time! :)
P.d: sorry for my bad english, I'm argentinian.
Erm... so what do you find a problem exactly? I mean, what cannot you do?
EDIT: Hmm, well, I was trying to think what can cause trouble for you. Maybe you can consider adding a function like
function IncreaseStrength (int ByValue)
{
strength += ByValue;
maxhitpoints += ByValue * 2;
}