- Joined
- Jan 5, 2014
- Messages
- 3
- Reaction score
- 0
- First Language
- English
- Primarily Uses
As of late, I've been experimenting with some battle scripting, and as a big fan of SOTET's MP death feature, I've been trying to recreate it for my own RMVXAce games, and so far, I've worked out this line of code:
@hp == 0 || @mp == 0 ? add_state(death_state_id) : remove_state(death_state_id)So far, it's worked well, but during some playtests, I ran into a bit of an issue. When an actor's MP hits 0, they die, but they also lose all of their HP. Curiously, this does not work the other way around; an actor that loses all of their HP still dies, but retains their MP value. The main issue here is consistency, and I haven't been able to figure out how to make it so, which is why I'm posting here now.
@hp == 0 || @mp == 0 ? add_state(death_state_id) : remove_state(death_state_id)So far, it's worked well, but during some playtests, I ran into a bit of an issue. When an actor's MP hits 0, they die, but they also lose all of their HP. Curiously, this does not work the other way around; an actor that loses all of their HP still dies, but retains their MP value. The main issue here is consistency, and I haven't been able to figure out how to make it so, which is why I'm posting here now.

