- Joined
- Oct 13, 2014
- Messages
- 362
- Reaction score
- 102
- First Language
- Enlish
Hi,
I'm looking for a snippet that creates a "death timer" of sorts.
In my game, when the death state is applied to the player, it (currently) has a three turn duration. When that timer runs out, the state is removed like any other state, and the player character is revived with half their HP.
I've got that part working, but what I want to do is add an additional turn every time that same player character dies. The way I wanted it to work was the first time the player dies the timer is 2 turns. Then if that same player character dies again, the timer is increased to 3 turns.
This continues until the battle ends, where obviously in the next battle the timer is reset for all player characters.
My only request is to have it compatible with yanfly's scripts.
Please let me know if anyone can help with this!
I'm looking for a snippet that creates a "death timer" of sorts.
In my game, when the death state is applied to the player, it (currently) has a three turn duration. When that timer runs out, the state is removed like any other state, and the player character is revived with half their HP.
I've got that part working, but what I want to do is add an additional turn every time that same player character dies. The way I wanted it to work was the first time the player dies the timer is 2 turns. Then if that same player character dies again, the timer is increased to 3 turns.
This continues until the battle ends, where obviously in the next battle the timer is reset for all player characters.
My only request is to have it compatible with yanfly's scripts.
Please let me know if anyone can help with this!