Traditional Culture Encyclopedia - Weather forecast - How does the frozen throne map editor of Warcraft make the weather of a map change with time? ?

How does the frozen throne map editor of Warcraft make the weather of a map change with time? ?

Open after creation. Do not close, use delete. Global variables are used to record weather effects, but local variables are not.

Wind, rain, snow, light and fog can only have one weather effect, for example, you create and turn on heavy rain and light rain at the same time. There will only be one kind of rain. But there can be heavy rain and heavy snow, heavy rain and strong wind, heavy rain and moonlight, light rain and red mist underground city. For example, you created a heavy rain and didn't turn it on. Then other triggers behind created light rain and heavy snow and turned it on. There will only be heavy snow as a result. Do not close and delete variables directly. If you want time to trigger the weather. For example, check whether the two kinds of weather conflict and whether the last kind of weather is over.

Trigger 1 Event: (Game-game time changes) Game time becomes 8: 00 Condition: (None) Action: (Environment-Create weather effect) Create a weather effect as gale in the setting variable weatherwind = Last created weather effect. Set the state of weatherwind to on. Set local variable (timer) loc_time 1= new timer. Go against the sky {{YDWE}} and run loc_time 1 immediately. The time is set to 120 seconds. One-time parameter: then operation: environment-delete weatherwind. Trigger 2 Event: (Game-game time changes) Game time becomes 14: 00 Condition: (None) Action: (Environment-creating weather effect) The weather effect created in the game is heavy rain. Set the variable weatherrainbig = the last weather effect created. Set the state of weatherrainbig to on. Set local variable (timer) loc_time 1= new timer. Go against the sky {{YDWE}} and run loc_time 1 immediately. The time is set to 120 seconds. One-time parameter: then action: environment-delete weather rain big.