For example i would like to make enemies speak mid battle when they reach 50% health. Like a boss, saying something like: "I can´t lose against someone like you!", or a taunt when is the player who have low health. Also trigger a second phase when the boss is half health, without having a second healthbar. It would be possible to do events like those?
How to make an events mid battle when certains conditions are met in Chrono engine ABS?
RPG Maker MV SupportYou could either have a parallel common event regularly checking the boss HP or a conditional statement in their move route or event page regularly checking their HP.
Use
$gameMap.event(BOSSEVENTID).battler().hp
Use
$gameMap.event(BOSSEVENTID).battler().hp
You would just self switch (or regular switch) the boss event to a new event page with a new attack pattern in the autonomous move route
How i would make that parallel common event exactly? I´m trying it and i´m not getting results.
If:$gameMap.event(BOSSEVENTID).battler().hp<=$gameMap.event(BOSSEVENTID).battler().mhp/2
Put a wait 60 frames or so because you don't need to be checking their HP every frame. Also have the parallel event switch itself off once it triggers
Put a wait 60 frames or so because you don't need to be checking their HP every frame. Also have the parallel event switch itself off once it triggers
Ok, thank you so much! Now it works. You are going to include this in your guide about Chrono engine?
I guess I could since it's pretty simple but it seems oddly specific
And one more thing, how it would be if is the player who lose health?
You should be able to replace $gameMap.event(BOSSEVENTID) with $gamePlayer
Ok, thank you again.
I did such thing for my game, not in MV but in VX, but the method is exactly the same. You have acsess to all the event commands in your battle. All you need is to create a page that will have condition "enemy hp" or "hp of character X" and whatever will happen on that page will occur once it reaches this condition. Treat it like usual event pages, but with extra conditions for battle only. No need for plugins or script commands.
Note that the battle conditions are set on page with enemy encounters, and not on page with singular characters.
Note that the battle conditions are set on page with enemy encounters, and not on page with singular characters.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-an-events-mid-battle-when-certains-conditions-are-met-in-chrono-engine-abs.170692/