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

P1

From Creatures Wiki
Revision as of 16:20, 5 February 2006 by Alexwatson (talk) (c2e caos)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

_P1_ and _P2_ are CAOS commands used in message passing.

Usage

_P1_ and _P2_ are the names of two local variables in agent scripts. Sometimes, the engine needs to pass data to a script which are not accessible from one of the usual commands (FROM and so on) which usually contain message information. In this case the engine uses the parameters _P1_ and _P2_. For instance, script 73 (Raw Key Down) is sent the keycode in _P1_.

_P1_ and _P2_ can be modified within scripts. This has no more effect on the outside of the script than does modifying VAxx variables.

See also