SETS

From Creatures Wikia

Jump to: navigation, search

SETS is a CAOS command used to set a variable to a string value.

Usage

Syntax: SETS var (variable) str (string)

Sets var to str. str can be any variable containing a string, any function that returns a string, or a string literal. Any previous value of var will be overwritten.

Examples

Setting a variable from a string literal, and from another variable:

SETS VA00 "Strings use backslash+n for newlines.\nSee?"
SETS VA01 VA00

See also

  • SETV and SETA for numeric values and agents
Personal tools