Question on Event conditionality

Take command of air and naval assets from post-WW2 to the near future in tactical and operational scale, complete with historical and hypothetical scenarios and an integrated scenario editor.

Moderator: MOD_Command

Post Reply
Knightpawn
Posts: 475
Joined: Mon Dec 02, 2024 12:28 pm

Question on Event conditionality

Post by Knightpawn »

I want a certain Event Y to become active only if another Event X has being triggered.

1. What is the appropriate sub-forum to post this question?
2. How do I achieve that?
User avatar
blu3s
Posts: 1237
Joined: Fri Jul 08, 2022 9:45 am

Re: Question on Event conditionality

Post by blu3s »

When Event X triggers, create a lua to store a key in the scenario, (stored it as a key so it is saved into scenario data)


https://commandlua.github.io/assets/Fun ... Value.html

On Event Y checks, check for that variable using GetKeyValue.

https://commandlua.github.io/assets/Fun ... Value.html

Probably Mods & Scenarios is the best subforum for this Q.
Knightpawn
Posts: 475
Joined: Mon Dec 02, 2024 12:28 pm

Re: Question on Event conditionality

Post by Knightpawn »

Thanks. Appreciated
Post Reply

Return to “Command: Modern Operations series”