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

Editing Basic plant script

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 35: Line 35:
 
  [[AERO]] 2
 
  [[AERO]] 2
  
*[[PERM|perm]] is the permeability of the object. It goes from 0 to 100, 0 meaning that it can go through anything, and 100 meaning it can't go through anything. In this case, it can go through some types of floor and wall, but mostly can't.
+
*[[PERM|perm]] is the permiability of the object. It goes from 0 to 100, 0 meaning that it can go through anything, and 100 meaning it can't go through anything. In this case, it can go through some types of floor and wall, but mostly can't.
 
*[[EMIT|emit]] is the [[smell]] an object emits. Creatures navigate using smells, so its important that objects emit them. In this case, it's emitting carbohydrate smell.
 
*[[EMIT|emit]] is the [[smell]] an object emits. Creatures navigate using smells, so its important that objects emit them. In this case, it's emitting carbohydrate smell.
 
*[[FRIC|fric]] is the friction of an object as a percentage of velocity while moving along the ground lost per [[tick]].
 
*[[FRIC|fric]] is the friction of an object as a percentage of velocity while moving along the ground lost per [[tick]].
Line 126: Line 126:
 
*Here we say: do only if ov10 isn't equal to 100.
 
*Here we say: do only if ov10 isn't equal to 100.
 
*'setv va01 ov10' means we set the value of ov10 in va01 - 'setv' can be used like this too.
 
*'setv va01 ov10' means we set the value of ov10 in va01 - 'setv' can be used like this too.
*'[[SUBV|subv]] va01 1' will subtract 1 from va01.
+
*'[[SUBV|subv]] va01 1' will substract 1 from va01.
 
*'endi' closes the 'doif' tag.
 
*'endi' closes the 'doif' tag.
 
*'[[UNTL|untl]] something' is the closing tag of the 'loop' command - the script will loop until the condition 'something' won't be true.
 
*'[[UNTL|untl]] something' is the closing tag of the 'loop' command - the script will loop until the condition 'something' won't be true.

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)