Page 1 of 1

[Q] Lua trigger for change of posture - help

Posted: Tue Apr 07, 2026 11:00 am
by Knightpawn
I want to create an event where the action is 'Change Mission Status' and the trigger is side A becoming Hostile (it is unfriendly at start). I don't see an ready trigger for that nor an option to "lua script" a trigger. How would you do it?
Is it 'Scenario is loaded' as a trigger for an event and then in the lua script of the action that event one sets the above as a 'hidden event' ?

Re: [Q] Lua trigger for change of posture - help

Posted: Tue Apr 07, 2026 11:04 am
by Nikel
Why side A becomes hostile?

Re: [Q] Lua trigger for change of posture - help

Posted: Tue Apr 07, 2026 11:15 am
by Knightpawn
Because side A is player and he chooses the time to attack. (Player side becomes hostile for the computer player). Until then each side treats the other as unfriendly

Re: [Q] Lua trigger for change of posture - help

Posted: Tue Apr 07, 2026 11:27 am
by Nikel
If the player is attacking, then is damaging or destroying the computer side units.

Those are valid triggers.

Re: [Q] Lua trigger for change of posture - help

Posted: Tue Apr 07, 2026 12:13 pm
by Knightpawn
Nikel wrote: Tue Apr 07, 2026 11:27 am If the player is attacking, then is damaging or destroying the computer side units.

Those are valid triggers.
You are right!