Welcome to the Creatures Wiki! Log in and join the community.
SCRP
Jump to navigation
Jump to search
SCRP is a CAOS command used to mark the beginning of a script.
Usage[edit]
Syntax:
scrp family(int) genus(int) species(int) script_number(int)
*events to happen
endm
Where family, genus, and species are Classifiers; and script_number is one of the CAOS Script Numbers.
Note that a SCRP command needs to have its closing command, ENDM.
Wildcards[edit]
Family, genus, or species can be entered as 0 for wildcard matching, like the mating script for creatures:
scrp 4 0 0 34 *stuff endm
Using wildcard matching, you can have 1 script instead of having 6 scripts (one for each species and sex).
Examples[edit]
The following script will change the name of the Hand to Banana when any gadget is activated (pushed):
scrp 3 8 0 1 hand "Banana" endm