Skip to content

Change Weather

Change Weather

Modifies the input switches and variables of an existing weather effect identified by its unique ID.

Properties

System

Name Explanation Type
Input Switches The input switches to update on the weather effect. Switch or Value
Input Variables The input variables to update on the weather effect. Variable or Value
Weather Unique ID The unique ID of the weather effect to modify. This is the ID returned when the weather effect was added. Variable or Value

Examples

Change Weather Instance Using Unique ID from Global Variable 0

This changes the weather instance identified by the Unique ID stored in Global Variable 0, passing updated switch and variable inputs.

change_weather($gv[0], switches: [true], variables: [50]);
{"Data":{"InputSwitches":[{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"SwitchIndex":0,"Value":true}],"InputVariables":[{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"50","VariableIndex":0,"Metadata":null}],"Target":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Map.MapWeatherChangeCommand"}