How to use constants

Constants are extremely easy to use. They are just like variables. As opposed to having 1, 2, and 3 to represent weather, constants can be used instead, such as in this example.

switch(global.weather){ case constRain: scrRain; break; case constSnow: scrSnow; break; case constNothing: scrNothing; break; }