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

Editing P1

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 5: Line 5:
 
_P1_ and _P2_ are the names of two local variables in agent [[script]]s. 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_ are the names of two local variables in agent [[script]]s. 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_.
  
Parameters can also be sent to scripts using [[MESG WRT+]].
+
Parameters can also be sent to scripts using [[MESG WRT|MESG WRT+]].
  
 
_P1_ and _P2_ can be modified within scripts. This has no more effect on the outside of the script than does modifying [[VAxx|VA''xx'']] variables.
 
_P1_ and _P2_ can be modified within scripts. This has no more effect on the outside of the script than does modifying [[VAxx|VA''xx'']] variables.

All contributions to Creatures Wiki are considered to be released under the CC-BY-SA and GFDL (see Creatures Wiki:Copyrights for details).

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Template used on this page:

Retrieved from "https://creatures.wiki/P1"