New method VP_GetScenario() (1147.10) (Full Version)

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



Message


michaelm75au -> New method VP_GetScenario() (1147.10) (9/11/2020 10:50:07 PM)

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





KnightHawk75 -> RE: New method VP_GetScenario() (1147.10) (9/11/2020 11:09:08 PM)

Thank you for this addition, very helpful.

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




michaelm75au -> RE: New method VP_GetScenario() (1147.10) (9/12/2020 12:45:35 AM)

quote:

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


in 1147.10




tiag -> RE: New method VP_GetScenario() (1147.10) (9/13/2020 9:37:51 AM)

Thank you, Michael. This is what was missing for the AI to adapt tactics depending on the scenario.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.765625