SETS

From Creatures Wiki

Jump to: navigation, search

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

[edit] 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.

[edit] Examples

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

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

[edit] See also

  • SETV and SETA for numeric values and agents
Personal tools