Trigger an Event after the enemy dies

● ARCHIVED · READ-ONLY
Started by Klunky2 2 posts View original ↗
  1. Is it possible to execute any additional event commands after an enemy of a troop (or the entire troop) died?
    I tried to activate a switch in the damage formula, after a b.die().
    I do have a instant kill spell, and after using the spell I want to show a full-screen animation where the head of my actor turns big and is maniacally laughing. This event is triggered by the switch after the b.die().

    But unfortunately, the animation happens always before the enemy died.
  2. Here's what I just did:

    1) I made an "Insta-Kill" spell and in the "Effects" section, I placed a Common Event trigger.
    Screenshot (31).png

    2) Then, in the matching Common Event, I put it whatever I wanted to happen.
    Screenshot (32).png

    Now, once the initial damage was shown, the common event "script" would run, dealing the finishing blow.

    To have what you want, I recommend using:
    - "Change Enemy State" trigger
    - "Wait X Seconds" trigger
    - Whatever script(s) you want to run

    If you need anything else, just let me know!