Choose Icon Choose

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 Expand 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 local one (if you check the "Temp" check-box).

 

Action Syntax:

Choose Action

Arguments:

 

ArgumentDescription
OptionThe option that can be returned by the choose action.

 

Example:

Choose ExampleThe 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.