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

Editing An Introduction to Variables

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 16: Line 16:
 
Variables come in a few types, Strings, Numbers and in the case of [[creature]]s, [[agent]]s too.
 
Variables come in a few types, Strings, Numbers and in the case of [[creature]]s, [[agent]]s too.
  
[[string|STRING]]S: Consider strings, a long string of characters(letters and numbers) joined together to produce something readable. In general, strings are things which can be read and written, but they are not numbers, which can be calculated , etc. For example,  "Greetings to the CC" is a string, as is "10 jellyfish",  "Satan666" , and "345".
+
[[STRING]]S: Consider strings, a long string of characters(letters and numbers) joined together to produce something readable. In general, strings are things which can be read and written, but they are not numbers, which can be calculated , etc. For example,  "Greetings to the CC" is a string, as is "10 jellyfish",  "Satan666" , and "345".
  
 
Note that the numbers included, even "345" (while it is a string) should not be considered a number, as such.
 
Note that the numbers included, even "345" (while it is a string) should not be considered a number, as such.
  
[[number|NUMBER]]S: We all know what they are, and the game kindly doesn't worry about positive/negative numbers and decimal points for the most part :D.  The difference between  345 and "345" (as a string) though is that 345 is a number, and if you add one to it you will get 346.... You can't add 1 to "345", cause the game thinks it's text. That's like trying to ask it to multiply "moop" by two.. you just can't!
+
[[NUMBER]]S: We all know what they are, and the game kindly doesn't worry about positive/negative numbers and decimal points for the most part :D.  The difference between  345 and "345" (as a string) though is that 345 is a number, and if you add one to it you will get 346.... You can't add 1 to "345", cause the game thinks it's text. That's like trying to ask it to multiply "moop" by two.. you just can't!
  
  
[[agent|AGENT]]S: This isn't standard to most any programming language, but with [[CAOS]] you'll be glad they're there. An agent in creatures is most ANYTHING you see in the world, from Norns, to the [[Hand]], to Butterflies, to the doors.  The only exclusion would be the background.
+
[[AGENT]]S: This isn't standard to most any programming language, but with [[CAOS]] you'll be glad they're there. An agent in creatures is most ANYTHING you see in the world, from Norns, to the [[Hand]], to Butterflies, to the doors.  The only exclusion would be the background.
  
  

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: