Script parameters as global variables

There are several reasons to create global variables:

  • You want a variable that is global in scope across the application that you can change or reset through the application interface.
  • You want a variable to hold a value that you can use in any Gosu expression, and you want to change that value without editing the expression.

These two reasons for use of script parameters, while seemingly related, are entirely independent of each other.

  • Use script parameters to create variables that you can change or reset through the PolicyCenter interface.
  • Use Gosu class variables to create variables for use in Gosu expressions.

    For information on Gosu class variables, see Overview of Gosu classes and properties.