I'm using Yanfly's Base Troop Events to set the lighting and battleback according to the time of the day. This works fairly well if a troop doesn't have any events. However, as an example I have a thief troop where the thief talks to the player and gives them the option to pay gold or engage in combat. Base Troop Events only runs after the conversation with the thief has ended, which means the battleback and lighting is incorrect until the conversation is over, only then does Base Troop Events run and the visuals change accordingly. How do I get Base Troop Events to run sooner or the troop events to run after?
Base Troop Events is set to [Condition: Turn 0] and [Span: Battle]
Thief Troop is set to [Condition: Turn 0] and [Span: Turn]
The decision on which events to run first (from current troop or from base troop) is a programming decision, which means you'll need a patch for the base troop plugin to change that.
I suggest considering if you want that to be changed in general or for specific cases and how, and then request a patch for the specifications you prefer
Hiya,
I believe you can offset the order in which the events trigger, if in your Thief Troop event, you set it to also require a switch.
And in your Base Troop Event, you could turn this switch on. (And then turn it off after if you want to reset it for future events in this manner, etc.)
Based on my own testing, this makes the Base Troop Event go first, and then the second troop specific one go off in turn.
I will add that I did this with the equivalent on MZ, so I'm not sure if the logic will be entirely the same--but I believe it should work! The only thing to be mindful of is that switch also getting reset properly at the end of fights if you have any logic in place to do so at the end of a battle or something. But if it's only for one specific troop fight maybe that's easy to work around.
It's also worth noting that no troop events are instantaneous. Turn 0 doesn't start until the battle loads and you see the "Enemy emerged!" text.
So unless you change these settings externally before battle, you will always see at least a moment of the wrong battleback and lighting.