In battle, when an actor dies, Is there a way to push it down to the last place in the party ?
Change actor position upon death
RPG Maker MV SupportIf it only needs to happen at the end of the turn, you can add a Troop event that runs a common event at the end of every turn that checks every party member’s HP. If the actor’s HP equals zero, remove the actor from the party and then add them back to the party; this will put them at the bottom of the list.
If you’re wanting it to happen in mid-turn, it’s still doable, but the version I came up with (assuming a four actor party) involves six pages of Troop events and four switches to pull off:
The first page checks if they’re alive at the start of the battle. On if yes, off if no.
The second page does the same thing, but at the end of each turn, to account for reviving actors.
The other pages will trigger as soon as its associated actor’s HP hits zero, so long as the actor was alive beforehand. It removes and adds that actor to the party (sending them to the bottom) and turns off their switch (to make the event page no longer meet the criteria and keep its Moment span from softlocking the game).
…Cumbersome setup, yeah, and you’d have to do that on every Troop, but it’s a purely evented method that doesn’t require any scripting or plugins.
If you’re wanting it to happen in mid-turn, it’s still doable, but the version I came up with (assuming a four actor party) involves six pages of Troop events and four switches to pull off:
- Check actor for Knockout state. If yes, turn off a switch off that shows whether they’re alive or not; else turn on that switch on. (Conditions: Turn 0 — Span: Turn)
- Identical to previous page, but Turn End instead of Turn 0.
- One page for each actor that removes them from the party, adds them back to the party, and turns off the switch showing them to be alive. (Conditions: Actor HP <= 0, Actor Alive switch on — Span: Moment)
The first page checks if they’re alive at the start of the battle. On if yes, off if no.
The second page does the same thing, but at the end of each turn, to account for reviving actors.
The other pages will trigger as soon as its associated actor’s HP hits zero, so long as the actor was alive beforehand. It removes and adds that actor to the party (sending them to the bottom) and turns off their switch (to make the event page no longer meet the criteria and keep its Moment span from softlocking the game).
…Cumbersome setup, yeah, and you’d have to do that on every Troop, but it’s a purely evented method that doesn’t require any scripting or plugins.
Original thread: https://forums.rpgmakerweb.com/threads/change-actor-position-upon-death.140955/