Page 1 of 1
Message box through Lua
Posted: Wed Oct 07, 2015 3:29 pm
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?
RE: Message box through Lua
Posted: Wed Oct 07, 2015 3:38 pm
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.
RE: Message box through Lua
Posted: Wed Oct 07, 2015 4:10 pm
by thewood1
OK, that is what I thought...I wondered maybe Command had an altered syntax specific to the game.
RE: Message box through Lua
Posted: Wed Oct 07, 2015 4:34 pm
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.
RE: Message box through Lua
Posted: Wed Oct 07, 2015 4:38 pm
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
RE: Message box through Lua
Posted: Wed Oct 07, 2015 4:47 pm
by thewood1
Nevermind on my setside question...the syntax I was looking I deduced as "newside". It works great.
RE: Message box through Lua
Posted: Wed Oct 07, 2015 4:49 pm
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.
RE: Message box through Lua
Posted: Wed Oct 07, 2015 7:27 pm
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.
