Common event for when actors HP reaches 1

● ARCHIVED · READ-ONLY
Started by Thanos 7 posts View original ↗
  1. How would I go about making a common event that gets triggered when my characters HP reaches 1?
  2. When can your character's HP reach one? Only in battle? Outside of battle?


    If only in battle, use troop events, which allow you to trigger them based on an actor's HP.


    If outside of battle (and I don't like this idea), use a parallel processing common event to continually check the actor's HP. If it's 1, turn on a switch. If it's not 1, turn the switch off. Add a Wait 10 frames or something at the start so it's not doing it 60 times a second. Then condition your other common event by that switch.
  3. Outside of battle, there are no battles in this game. (HP is used for something else)

    Shaz said:
    use a parallel processing common event to continually check the actor's HP. If it's 1, turn on a switch. If it's not 1, turn the switch off. Add a Wait 10 frames or something at the start so it's not doing it 60 times a second. Then condition your other common event by that switch.
    That's my issue, I don't know how to have it continuously check the actor's HP, how do I do that?

    Sorry, I'm fairly new to this.
  4. you could either put the value of the actor's hp on a variable, or use the Script option of the fork.
  5. You need to put your common event to parallel process, which requires a switch to start. So pick out a switch, and in the beginning of your game (ideally on the starting map hidden in your opening cutscene event) you turn this switch on so that this common event is always active.
  6. Got it working, thank you all for the help.
  7. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.