Choose


Description

With this action you can give a number of different options (this can be a real number, a string, resource ID or a constant) from which the action will choose one to return. You can add additional options by clicking the plus icon beside the action, and giving another value that could be returned. The returned value will then be stored in the target variable which can have been created previously or can be a new temporary one (if you check the "Temp" check-box). You can add additional variables in the same action by clicking the plus icon beside the action, and giving another variable name and value.


Action Syntax:

Choose Syntax


Arguments:

Argument Description
Option The option that can be returned by the choose action.


Example:

Choose Example

The above action block code chooses one of four room resources and stores the returned ID in a temporary local variable. This is then used to change the room.