i am having a little problem setting up a stat system. when my players go to my character select screen and make their character i have 3 main stats they can increase using the points provided to them . what i want to do is disable the increase of their stats when the available status points reaches 0
i have 4 text fields
each controls a stat and stat pont contols the starting amount.
_root.strength = 0;
_root.int = 0;
_root.charm = 0;
_root.statpoint = 20;
each stat field has a button next to it that increase the stat field by 1 and decreases the total stat point by 1.
on (release) {
this._root.strength++;
_root.statpoint–;
}
Is there an if statement or a function that i can assign to the buttons to stop increasing the number when the amount in the stat point field reaches 0?
help much appreciated
kool