Loading A Scenario
Posted: Mon Apr 12, 2021 6:22 am
Morning Folks,
I was wondering is it possible to load a scenario via Lua? I have a idea where a side has 3 possible force levels, I was thinking of perhaps randomising the force levels when the scenario starts so I was thinking the way to achieve that is have 3 different scenarios one for each level and a fourth "Lobby Scenario" that the player starts, then 1 second in to the scenario a trigger runs the event, "Randomise forces" where the trigger is a time trigger, the event action is a random
"Math Seed 0-10
- If <3 then
(XXXXX Scen_Load "Low Unit Readiness")
If >3 then
(XXXXX Scen_Load "Medium Unit Readiness")
Else
(XXXXX Scen_Load "High Unit Readiness")
End
Ect Ect
Is this even possible?
As an alternative I could make the groups and save them but am not sure if its possible to load a saved group using Lua
Any thoughts would be appreciated
Regards
Butch
I was wondering is it possible to load a scenario via Lua? I have a idea where a side has 3 possible force levels, I was thinking of perhaps randomising the force levels when the scenario starts so I was thinking the way to achieve that is have 3 different scenarios one for each level and a fourth "Lobby Scenario" that the player starts, then 1 second in to the scenario a trigger runs the event, "Randomise forces" where the trigger is a time trigger, the event action is a random
"Math Seed 0-10
- If <3 then
(XXXXX Scen_Load "Low Unit Readiness")
If >3 then
(XXXXX Scen_Load "Medium Unit Readiness")
Else
(XXXXX Scen_Load "High Unit Readiness")
End
Ect Ect
Is this even possible?
As an alternative I could make the groups and save them but am not sure if its possible to load a saved group using Lua
Any thoughts would be appreciated
Regards
Butch