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 3: Line 3:
 
[[File:Sharmflower.png|right|Sharmflower sprite images.]]
 
[[File:Sharmflower.png|right|Sharmflower sprite images.]]
 
Here is a very simple, base plant script which you can use for virtually any C3/DS [[plant]] [[agent]].
 
Here is a very simple, base plant script which you can use for virtually any C3/DS [[plant]] [[agent]].
It uses a few basic [[variable]]s.
+
It uses a few basic variables.
  
 
==The Install Script==
 
==The Install Script==
Line 178: Line 178:
 
*Note that this death script does not progress to the wilting frames.  The plant now grows backwards, from its adult pose to its seedling.   
 
*Note that this death script does not progress to the wilting frames.  The plant now grows backwards, from its adult pose to its seedling.   
 
*'wait' tells that between each sprite changing, the script will wait a bit - else, the animation will be too quick.
 
*'wait' tells that between each sprite changing, the script will wait a bit - else, the animation will be too quick.
*The command '[[ALPH|alph]]' will set the transparency of an agent - 'alph integer yes/no' is the syntax of the command.  ('''Note that this is a [[DS]] only command, and slow.''')
+
*The command '[[ALPH|alph]]' will set the transparency of an agent - 'alph integer yes/no' is the syntax of the command.  (Not that this is a [[DS]] only command, and slow.)
 
*'kill ownr' means that the owner of the script will be killed - here, the owner is the plant.
 
*'kill ownr' means that the owner of the script will be killed - here, the owner is the plant.
  
Line 217: Line 217:
 
*[[Basic interactive plant script]] - uses another approach to handle the growth and allows for [[stimuli]] to be felt by creatures.
 
*[[Basic interactive plant script]] - uses another approach to handle the growth and allows for [[stimuli]] to be felt by creatures.
 
   
 
   
[[Category:Tutorials]][[Category:C3/DS CAOS]]
+
[[Category:Tutorials]][[Category:C3 CAOS]]

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)