- Joined
- Dec 16, 2014
- Messages
- 26
- Reaction score
- 7
- First Language
- Italian
- Primarily Uses
I'm having problems with a certain skill.
What I want to do is:
- Revive a fallen party member
- Add to the member's current HP the result of the skill user's current HP divided by 2;
- Substract to the user the result above.
I tried with
b.removeState(1); a.gainHP(- a.hp / 2); b.gainHP(a.hp / 2)
it does work for removing the state, but not for the recover/substract hp. What did I do wrong? (I also remember in VX Ace you could do something like a.mp -= formula but it doesn't work as well, I tried).
What I want to do is:
- Revive a fallen party member
- Add to the member's current HP the result of the skill user's current HP divided by 2;
- Substract to the user the result above.
I tried with
b.removeState(1); a.gainHP(- a.hp / 2); b.gainHP(a.hp / 2)
it does work for removing the state, but not for the recover/substract hp. What did I do wrong? (I also remember in VX Ace you could do something like a.mp -= formula but it doesn't work as well, I tried).


