How to make an events mid battle when certains conditions are met in Chrono engine ABS?

● ARCHIVED · READ-ONLY
Started by Vladar458 10 posts View original ↗
  1. 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?
  2. You 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


    Vladar458 said:
    trigger a second phase when the boss is half health, without having a second healthbar. It would be possible to do events like those?
    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
  3. AquaEcho said:
    You 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



    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.
  4. 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
  5. AquaEcho said:
    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
    Ok, thank you so much! Now it works. You are going to include this in your guide about Chrono engine?
  6. Vladar458 said:
    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
  7. AquaEcho said:
    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?
  8. You should be able to replace $gameMap.event(BOSSEVENTID) with $gamePlayer
  9. AquaEcho said:
    You should be able to replace $gameMap.event(BOSSEVENTID) with $gamePlayer
    Ok, thank you again.
  10. 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.