Question: lua (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios



Message


tjhkkr -> Question: lua (3/27/2015 2:52:44 PM)

Is there a lua command to add victory points to a side?
If not, is there a property I can interrogate and add points with?

Thank you!




Tomcat84 -> RE: Question: lua (3/27/2015 3:57:53 PM)

Well you have the "points" action in the event editor.

If that doesn't work and you want to somehow Lua activate that maybe you could make a repeatable event that has an action of adding 1 point (or however many you want) and is triggered by a "jeep" or some unit on a non player side entering an RP defined area in Siberia or somewhere away from the action.

Then whenever you want Lua to add a point you use Lua to add that exact type of mobile unit at a coordinate just outside the area, and assign it to a mission to move into the RP marked area.

Does that make sense? Never tried it, just what I could think of right now




tjhkkr -> RE: Question: lua (3/28/2015 4:51:24 AM)

Thank you; good idea.




tjhkkr -> RE: Question: lua: Random number of victory points. (3/31/2015 3:23:41 PM)

Okay I found the answer with the stuff the Developers provided...

NNNN = the maximum number of points possible...
The Developers really gave us some great tools to use with LUA...
====
newScore = ScenEdit_GetScore (side)
r = math.random(1, NNN)
newScore = NewScore + r
ScenEdit_SetScore (side, newScore)
====
Now, if I can only figure out how many points to award for surviving uptown Kate (as opposed to Kate Upton).




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.78125