Is there a built-in way to set effect to the battle field?
Just like status effect to combatant, I wanna make effect on field. Eg. if it's raining, then the water ability will power up for both player group and enemy group. Or shield on player field so that all damage taken by player combatants is half.
Basically, I need the effect to have global effect and can auto end after several turns.
You could do this in battle start event or pick one of the event triggers in Battle System tab. Battle settings has some and the individual battle types the others.
As to how to customize the types of effects per battle. Hmm...
Maybe instead of using battle object to start battles use Event Interaction.
So you'd have your ordinary game event object, it would have Object Variables component. Then in event you'd convert Object Variable to Global variable and then use "Start Battle" node to start battle on Battle Object.
Then in Battle Start event you'd check the global variable to see which kind of effect you want to apply.
There could be a simpler way, but I can't think of it atm.
So with your method, I need to also add and delete status effect for each combatant when changing members.
It will work, but I think it's better that ork has a system for this.
Another way would be using the event system, e.g. a Trigger Enter event interaction around the whole scene, so that every combatant entering/spawning would be used. For this to work on others (i.e. not only the player), enable Start by Other, maybe adding a component check to check for CombatantComponent to limit it to only use combatants.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!