Check if an Enemy in Troop Died

● ARCHIVED · READ-ONLY
Started by HalestormXV 3 posts View original ↗
  1. Just curious to know if there is a script call that can run to check if an enemy in a troop has died. I am using Yanfly's Row formation:
    http://yanfly.moe/2016/01/02/yep-54-row-formation/

    I am doing some Lunatic mode row modification and I am trying to have an enemy switch rows when one of his "companions" dies. In other words. I kill the enemy in the first row and the enemy in the second row moves up one and the enemy in the last row moves up one. Then I kill the enemy in the first row and the enemy who was now in the second row moves up to the first row. I know there are plugin commands to switch rows during battle and that is fine. But I need the condition check to see if a member of the troop has died.

    Any suggestions are appreciated.
  2. Try this on conditional Branch in the events troops box .
    To check if a troop member has died.
    -The list of individual enemies (in a troop) is generated based on your customized troop configuration
    -just choose the enemy individually and you're done

    Example:
    You enter a battle with a troop consisting of 5 rats, then the automatically generated list by the engine will be like this:
    number 1: rat => IF rat [1] died THEN do stuff...
    number 2: rat => IF rat [2] died THEN do stuff...
    number 3: rat => IF rat [3] died THEN do stuff...
    number 4: rat => IF rat [4] died THEN do stuff...
    number 5: rat => IF rat [5] died THEN do stuff...

    Untitledj.jpg
  3. Got it alright. Thanks for the help.