Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

LUA command for conditional message

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> LUA command for conditional message Page: [1]
Login
Message << Older Topic   Newer Topic >>
LUA command for conditional message - 8/18/2020 7:33:26 PM   
sarjen

 

Posts: 111
Joined: 7/14/2004
Status: offline
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.
Post #: 1
RE: LUA command for conditional message - 8/18/2020 9:38:24 PM   
KnightHawk75

 

Posts: 1450
Joined: 11/15/2018
Status: offline
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();


(in reply to sarjen)
Post #: 2
RE: LUA command for conditional message - 8/20/2020 11:08:32 AM   
sarjen

 

Posts: 111
Joined: 7/14/2004
Status: offline
Thanks for the input KnightHawk75. I will do some meddling with LUA.

(in reply to KnightHawk75)
Post #: 3
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> LUA command for conditional message Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

2.262