- Joined
- Jan 31, 2023
- Messages
- 16
- Reaction score
- 1
- First Language
- French
- Primarily Uses
- RMMZ
Hi,
So I'm working on creating a berzeker character. What I would like to do is to increase his attack stat when his HP are low.
Basically, the formula would go as this :
= ( [MaxHP] - [HP left] ) / 25
Then I put this as a script in a variable, and I add this to the stat through an event.
However, I don't know JavaScript. Could someone write the calculation script for me, please ?
Also, just to know : do I risk having an infinite increase of the attack stat ? Should I do this a different way ?
So I'm working on creating a berzeker character. What I would like to do is to increase his attack stat when his HP are low.
Basically, the formula would go as this :
= ( [MaxHP] - [HP left] ) / 25
Then I put this as a script in a variable, and I add this to the stat through an event.
However, I don't know JavaScript. Could someone write the calculation script for me, please ?
Also, just to know : do I risk having an infinite increase of the attack stat ? Should I do this a different way ?