Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Question: lua

 
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 >> Question: lua Page: [1]
Login
Message << Older Topic   Newer Topic >>
Question: lua - 3/27/2015 2:52:44 PM   
tjhkkr


Posts: 2428
Joined: 6/3/2010
Status: offline
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!

_____________________________

Remember that the evil which is now in the world will become yet more powerful, and that it is not evil which conquers evil, but only love -- Olga Romanov.
Post #: 1
RE: Question: lua - 3/27/2015 3:57:53 PM   
Tomcat84

 

Posts: 1952
Joined: 7/10/2013
Status: offline
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

_____________________________

My Scenarios and Tutorials for Command

(Scenarios focus on air-warfare :) )

(in reply to tjhkkr)
Post #: 2
RE: Question: lua - 3/28/2015 4:51:24 AM   
tjhkkr


Posts: 2428
Joined: 6/3/2010
Status: offline
Thank you; good idea.

_____________________________

Remember that the evil which is now in the world will become yet more powerful, and that it is not evil which conquers evil, but only love -- Olga Romanov.

(in reply to Tomcat84)
Post #: 3
RE: Question: lua: Random number of victory points. - 3/31/2015 3:23:41 PM   
tjhkkr


Posts: 2428
Joined: 6/3/2010
Status: offline
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).


_____________________________

Remember that the evil which is now in the world will become yet more powerful, and that it is not evil which conquers evil, but only love -- Olga Romanov.

(in reply to tjhkkr)
Post #: 4
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Question: lua 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.203