About Event Variables and Initial States
If an event handler has variables associated with it, those variables can be assigned an initial state. This set of values are assigned when the event handler starts to execute. Each initial state consists of:
- A name that identifies it in the system
- Any number of event variables with the initial values they are to have when the event handler starts to execute
For example, you want to use these initial values with your event handlers variables:
Name of variable | Initial value | Comments |
---|---|---|
Increment | 250 | |
ItemTypes | AB | |
TimesRemaining | GC(MaxTimes) | In this case, the value is determined by the value of the MaxTimes global constant. |
Initial states are defined by using the Event Variable Groups form. Once created, you can use a defined initial state with any other event handler by selecting it in the Initial State field on the Event Handlers form.