Page 1 of 1

LUA command for conditional message

Posted: Tue Aug 18, 2020 4:33 pm
by sarjen
I have two messages. One message should display if the player destroys a neutral. And one message should show if the OPFOR destroys a neutral. Additionaly the scenario ends instantly.

Have i to use LUA or is there a way with the event editor? I found no condition for a simple if side(NATO) destroys ship A then its message A, if side(OPFOR) destroys ship A then its message B.

Is there an easy way to do that? Thanks in advance.

RE: LUA command for conditional message

Posted: Tue Aug 18, 2020 6:38 pm
by KnightHawk75
Have you tried multiple actions (message and 2nd one end scenario) assigned to the opfor related trigger?

As for LUA...
Trigger (nato related) with lua script action:
ScenEdit_SpecialMessage("theSideName","YourMessageTextherePlainOrInHTML")

Trigger (opfor related) with lua script action:
ScenEdit_SpecialMessage("theSideName","YourOtherMessageTextherePlainOrInHTML");
ScenEdit_EndScenario();


RE: LUA command for conditional message

Posted: Thu Aug 20, 2020 8:08 am
by sarjen
Thanks for the input KnightHawk75. I will do some meddling with LUA.