Plot:Variable

From OHRRPGCE-Wiki

Jump to: navigation, search
variable (name)

Creates a local variable that can only be used inside the script where it was created. The value of this variable is lost when the script ends. If you need a variable who's value persists between calls to a script, or that is automatically saved when the player saves their game, you will need to use a global variable instead.

[edit] Examples

variable(points) # make a new variable
variable+=1 # add one to it
Personal tools