Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

New method VP_GetScenario() (1147.10)

 
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 >> Lua Legion >> New method VP_GetScenario() (1147.10) Page: [1]
Login
Message << Older Topic   Newer Topic >>
New method VP_GetScenario() (1147.10) - 9/11/2020 10:50:07 PM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
Here are the details on this new method (Command Lua to be updated yet)

quote:

Method:

VP_GetScenario()
Exposes current scenario information.

Returns Scenario (wrapper)

Wrapper:
Scenario

Details of the current scenario
Note the mixed case of the field names

Fields:
FileName string Name of the scenario file (.scen/.save)
Title string Title
ScenSetting string The setting of the scenario
ScenDate number Year of setting
Difficulty number Difficulty rating
Complexity number Complexity rating
StartTime datetime Starting time
Duration time Length of scenario as days:hours:minutes:seconds
CurrentTime datetime Current scenario time
DBUsed string Name of database being used
SaveVersion string Game version last saved under
CampaignScore number Current campaign score
CampaignSessionID string Current campaign session id
CampaignID string Campaign guid
InCampaignMode boolean Currently in standalone or campaign mode
StartTimeNum number Starting time as a number (of seconds) equivalent
DurationNum time Length of scenario as a number (of seconds) equivalent
CurrentTime datetime Current scenario time as a number (of seconds) equivalent
guid string Scenario GUID
PlayerSide string Current player GUID
HasStarted boolean Scenario in play
TimeCompression number Compression mode
Sides number Number of sides in scenario



< Message edited by michaelm75au -- 9/11/2020 10:51:49 PM >


_____________________________

Michael
Post #: 1
RE: New method VP_GetScenario() (1147.10) - 9/11/2020 11:09:08 PM   
KnightHawk75

 

Posts: 1450
Joined: 11/15/2018
Status: offline
Thank you for this addition, very helpful.

Also, is this 1147.10, or in a forthcoming update?

(in reply to michaelm75au)
Post #: 2
RE: New method VP_GetScenario() (1147.10) - 9/12/2020 12:45:35 AM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
quote:

* Added: [Lua] VP_GetScenario method (Exposes some scenario data such as duration, start time, complexity & difficulty, DB file used etc)


in 1147.10

< Message edited by michaelm75au -- 9/12/2020 12:47:04 AM >


_____________________________

Michael

(in reply to KnightHawk75)
Post #: 3
RE: New method VP_GetScenario() (1147.10) - 9/13/2020 9:37:51 AM   
tiag

 

Posts: 91
Joined: 6/21/2018
Status: offline
Thank you, Michael. This is what was missing for the AI to adapt tactics depending on the scenario.

(in reply to michaelm75au)
Post #: 4
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> New method VP_GetScenario() (1147.10) 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.547