Welcome to the Creatures Wiki! Log in and join the community.

ADDV

From Creatures Wiki
Revision as of 22:25, 16 February 2019 by ScoobyGambit (talk | contribs) (→‎Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ADDV is a CAOS command used to perform addition.

Usage[edit]

Syntax: ADDV X (variable) Y (number)

Adds Y to X, and stores the result in X. Equivalent to X = X + Y.

Example[edit]

Increment a variable:

ADDV va02 1

Adapted from the basic interactive plant script, used to grow the plant:

doif pose lt 5  
   setv va00 pose   
   addv va00 1   
   pose va00  
endi   

See also[edit]