I have a big ol' Barbarossa multiplayer map just sitting idle because I don't know how to change the weather properly. ...it needs seasons or else it will be kinda silly.

Moderator: Panzer Corps 2 Moderators
I have seen the example in the manual. It doesn't help me much.jeannot le lapin wrote: ↑Sun Nov 22, 2020 6:30 am Lua Scripting Manual...there is an example with weather.
Be more precise in your request.
hi netscape,NETSCAPE wrote: ↑Tue Nov 24, 2020 4:04 am
I want to change the weather from summer, to fall, to winter - all within one scenario (Barbarossa AGC/AGN Multiplayer map).
I see this going one of two ways:
a) manually set all weather parameters for every turn, or a range of turns (ie a season)
-or-
b) adjust the percentage chances of clouds, rain ect to simulate season changes (this would obviously include changing to sub-zero temp in winter)
I understand all the weather options in the editor and there effects. I just don't know how to go about lua scripting the first method. I am not sure if the second method is even possible via lua.
As currently implemented, you'd have to go with option a. The relevant fields are:NETSCAPE wrote: ↑Tue Nov 24, 2020 4:04 am I want to change the weather from summer, to fall, to winter - all within one scenario (Barbarossa AGC/AGN Multiplayer map).
I see this going one of two ways:
a) manually set all weather parameters for every turn, or a range of turns (ie a season)
-or-
b) adjust the percentage chances of clouds, rain ect to simulate season changes (this would obviously include changing to sub-zero temp in winter)
I understand all the weather options in the editor and there effects. I just don't know how to go about lua scripting the first method. I am not sure if the second method is even possible via lua.
Code: Select all
world.weather
world.ground_state
world.humidity
world.weather_forecast
world.cold_winter