IDK if I asked this already (because I am old and forgetful) but I wanted to have an achievement pop up if the boss died last. I already have 2 events where the 1st one triggers at the start where the enemies gain 'embolden. A second one triggers where they lose 'embolden' after the boss is defeated. What I want to add is an achievement that only triggers if the boss is defeated last.
VXAce Need help with boss battle mechanics
RPG Maker VXAce SupportI'm guessing this is a state related to your game?
Funny thing, if your don't use scripts altering this, battle events won't trigger when no enemies are left.
So what you could do is set a switch to true when your boss dies (in the same event as the one removing your 'embolden' state).
And when the battle is won, check on your map events if your switch is false: if that is the case, then your boss should have been killed last and you can put your achievement. (assuming that your boss must be killed for the battle to be won)
Yes, it is the same thing that removes the embolden state. I've tried using a switch but can't get it to work. Yes, the boss must be defeated as well for the battle to be over. Can you provide screenshots on how this is supposed to look?
Put this battle event in your troop (with condition based on the boss hps):
And the map event that called the boss battle:
And the map event that called the boss battle:
How does this check what order the other enemies die in?
It only checks if the boss was defeated before the other enemies. If the boss is the last to fall, the battle ends and the switch doesn't turn on, since nothing from the troop pages gets processed any more (that's how it works in Ace, as Timtrack said). If there are still enemies left, when the boss falls, the page is processed and the switch turns on.
What I would do :
Use a troop event on turn 0 that adds an "immortal" state to the boss (the state cannot expire).
Use a troop event that is triggered when the boss' HP is 0% or below.
In this troop event, check if the other enemies are dead, if they are add the achievement.
Then remove the immortal state.
Use a troop event on turn 0 that adds an "immortal" state to the boss (the state cannot expire).
Use a troop event that is triggered when the boss' HP is 0% or below.
In this troop event, check if the other enemies are dead, if they are add the achievement.
Then remove the immortal state.
Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-boss-battle-mechanics.180833/