Page 1 of 1

Trigger for side posture change

Posted: Mon Jan 13, 2025 2:39 pm
by ThunderCBR
I was looking into an event trigger for a posture change of a side and surprisingly I couldn't find it in the drop down. I could swear there was a way to have a trigger for when a side has a posture change against an opposing force.

My intent is to have a trigger activate some actions and lua scripts in the event that a nation attacks a neutral party. I don't want to have their missions such as CAPs and strikes active unless they see country X as hostile. So what I'd like to do is basically have it set so if country X goes hostile against country Y, activate missions A, B, C, etc.

Anyone have any ideas or suggestions or am I misremembereing a feature that doesn't exist? I don't know if there is a way to do this in LUA since there isn't an option to have LUA triggers.

Re: Trigger for side posture change

Posted: Mon Jan 13, 2025 5:19 pm
by thewood1
I don't remember side changes being an organic part of Actions. I have always use "ScenEdit_SetUnitSide" from a lua Action within the event.

edit: Sorry...thought you were looking for an action. You want to execute missions based on a side becoming hostile, correct. So you want to detect the change in posture. I know at one time there was a sample script under lua legions sub-forum about that.

This is theone I was thinking of. I used it a few years ago.

https://www.matrixgames.com/forums/view ... e#p4544584

Re: Trigger for side posture change

Posted: Mon Jan 13, 2025 11:13 pm
by ThunderCBR
thewood1 wrote: Mon Jan 13, 2025 5:19 pm I don't remember side changes being an organic part of Actions. I have always use "ScenEdit_SetUnitSide" from a lua Action within the event.

edit: Sorry...thought you were looking for an action. You want to execute missions based on a side becoming hostile, correct. So you want to detect the change in posture. I know at one time there was a sample script under lua legions sub-forum about that.

This is theone I was thinking of. I used it a few years ago.

https://www.matrixgames.com/forums/view ... e#p4544584
Gotcha! Thanks so much for the link. I'll give it a shot.