Message box through Lua

Post new mods and scenarios here.

Moderator: MOD_Command

Post Reply
thewood1
Posts: 10292
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

Message box through Lua

Post by thewood1 »

What are the parameters for the style variable for the <ScenEdit_MsgBox (string, style)> in Lua? I know it is a number, but what do the variables represent? Is there a reference somewhere that I am missing?
ckfinite
Posts: 208
Joined: Fri Jul 19, 2013 10:33 pm

RE: Message box through Lua

Post by ckfinite »

I think that these are them, which correspond to these buttons. I don't think you can get which button was clicked though.
thewood1
Posts: 10292
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

RE: Message box through Lua

Post by thewood1 »

OK, that is what I thought...I wondered maybe Command had an altered syntax specific to the game.
thewood1
Posts: 10292
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

RE: Message box through Lua

Post by thewood1 »

Another quick Lua question...what is the syntax for the Set UnitSide function. I have played around with it and can't figure it out.
User avatar
snowburn
Posts: 188
Joined: Mon Sep 23, 2013 9:10 pm
Location: Bovril, Argentina

RE: Message box through Lua

Post by snowburn »

Can we add YES/NO buttons in message boxes?

something like:
msg: 'Use reserve aircrafts?'
option: YES --> Add 4 fighters --> lose 1000 points
NO --> No effect
thewood1
Posts: 10292
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

RE: Message box through Lua

Post by thewood1 »

Nevermind on my setside question...the syntax I was looking I deduced as "newside". It works great.
thewood1
Posts: 10292
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

RE: Message box through Lua

Post by thewood1 »

In standard Lua you can get the input from the response button. I am not sure if Command supports that. There are a bunch of options you could do if it could.
User avatar
snowburn
Posts: 188
Joined: Mon Sep 23, 2013 9:10 pm
Location: Bovril, Argentina

RE: Message box through Lua

Post by snowburn »

ORIGINAL: thewood1

In standard Lua you can get the input from the response button. I am not sure if Command supports that. There are a bunch of options you could do if it could.

i will try, thanks. :)
Post Reply

Return to “Mods and Scenarios”