End Phase Triggers

● ARCHIVED · READ-ONLY
Started by Tsukihime 7 posts View original ↗




  1. Have you ever had a situation where your troop events didn't seem to run in battle? For example, when the last enemy has been defeated and you want more enemies to appear, you found that instead of the enemies appearing, you simply won the battle?

    By default, when the last actor or enemy has been defeated, the game will immediately go to victory or defeat processing. This means that if you have an event that should run after the last enemy has fallen, that event will be ignored.

    You may have discovered workarounds such as setting your enemies to "immortal" so that you can run your events, but is there an easier way to handle this?

    The purpose of this plugin is to address the issue that I have described. By simply inserting this into your project, the game will perform an extra check before the end of battle to see whether there are any events that can be run, and proceed to run them!
     
    More information and downloads are available at HimeWorks
  2. they should have fix this problem :D . thanks for another great plugin. :D .
  3. Good job! It opens up a lot of possibilities! Thanks :)
  4. Excellent! Fantastic as always Tsukihime.

    I was having to do an immortal state, then a 0% HP Moment to trigger a knockout and eventually +1 a variable (for a monster slayer quest).

    But this - just cuts out the nonsense and gets right to it!!

    Thanks very much.
  5. Someone reported that when end phase triggers are used with yanfly's victory aftermath, any common events that are reserved during the victory processing will be executed as well during this time.

    This is not a bug. This is in fact the expected result because my plugin will attempt to run events *whenever it can*, if it is given an opportunity to do so.

    In the case of yanfly's victory aftermath, in between the time exp, gold, and drops are given to the party and when the victory windows appear, events can run at this point.

    So for example, when used in conjunction with Level Up Events, when the actors level up during battle, the common events will run BEFORE the victory windows appear because the EXP is awarded beforehand.

    If this is undesirable, you would need to provide a patch to your game that will further control when events can run.

    I have updated the plugin to a new version to make this process easier, but it would still require someone to go and provide a plugin patch to change when the events can run.

    Code:
    /* Determines whether events can run or not */BattleManager.canRunEvents = function() {  return true;}
    So for example, if you don't want any events to run during yanfly's victory phase, you would modify this to say something like

    Code:
    /* Determines whether events can run or not */BattleManager.canRunEvents = function() {  if (BattleManager.isVictoryPhase()){    return false;  }  return true;}
  6. Hi. Does this work with YEP_BattleEngineCore? Thanks
  7. ramedina1234 said:
    Hi. Does this work with YEP_BattleEngineCore? Thanks
    It does work with YEP_BattleEngineCore, yes.