er2.setSeason ▲ 12

Available from Easy Red 2 2.1.1

Changes the look of the vegetation to a season: summer, autumn, winter, or auto to derive it from the month set in the battle data. Case does not matter.It only touches the vegetation. Snow on the ground is the snowAmount of setTimeAndWeather, and snowfall is setSnowing: a winter battle usually wants all three.Local: the change applies on this client only, so call it from a script that runs on everyone (er2.runEveryone), as the Conquest game mode does with its SEASON option.


Return value

Return TypeDescription
boolTrue if the season was applied. False if the name is unknown or no battle is running.

Parameters

ParameterTypeDescription
1stringsummer, autumn, winter or auto.

Examples

A winter battle

-- vegetation, snow on the ground and snowfall: the three parts of winter
er2.setSeason("winter")
er2.setTimeAndWeather(9, 30, 0.8, 0.9, 0.2) -- hour, minute, clouds, snow on the ground, fog
er2.setSnowing()
er2.synchWeather() -- the master sends time and sky to whoever joins later

Back to Scripting API