Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Messages via Lua or the Log?

 
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 >> Messages via Lua or the Log? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Messages via Lua or the Log? - 9/19/2016 1:36:35 AM   
kevinkins


Posts: 2257
Joined: 3/8/2006
Status: offline
Is there a standard convention for the type of message the designer should place in the message log vs. in a Lua message box. My thinking is the message box is used for the most critical material. It's "in your face".

ScenEdit_MsgBox ("You idiot, an Iranian PT boat sank your trillion dollar carrier!", 1)
Post #: 1
RE: Messages via Lua or the Log? - 9/19/2016 4:08:05 AM   
Rory Noonan

 

Posts: 2816
Joined: 12/18/2014
From: Brooklyn, NY
Status: offline
When designing scenarios, I prefer the special message format. You can actually format these using HTML tags. I've transitioned from using events with multiple actions (e.g. A Lua script, points and a message) to just using Lua to do the points and message as well as the scripted event.

Using UnitX and other Lua functions actually allows a lot of flexibility in these messages. You can see an example of this in my TF Normandy scenario http://www.matrixgames.com/forums/tm.asp?m=4061677

(in reply to kevinkins)
Post #: 2
RE: Messages via Lua or the Log? - 9/19/2016 4:42:01 AM   
kevinkins


Posts: 2257
Joined: 3/8/2006
Status: offline
Thanks. So when the event fires the resulting action runs a Lua script that displays a message (HTML) and/or modifies the score if either are required by the event(?) I will look into that.

(in reply to Rory Noonan)
Post #: 3
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Messages via Lua or the Log? 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

1.578