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

Difference between revisions of "EMIT"

From Creatures Wiki
Jump to navigation Jump to search
(Created page with "'''EMIT''' is a CAOS command that causes an object to smell. Most often used upon the creation of an object - however, if an object is initially invisible and inedibl...")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''EMIT''' is a [[CAOS]] command that causes an object to [[smell]].  Most often used upon the creation of an object - however, if an object is initially invisible and inedible (like the [[apple]]s are when growing), it may be included in the [[pick up script]] instead.   
+
'''EMIT''' is a [[CAOS]] command that causes an object to [[smell]].  Most often used upon the creation of an object - however, if an object is initially invisible and inedible (like the [[apple (C3)|apple]]s are when growing), it may be included in the [[pick up script]] instead.   
  
 
==Description==
 
==Description==
Line 8: Line 8:
 
==Examples==
 
==Examples==
  
*[http://www.creaturescaves.com/forum.php?view=12&thread=3592 Guide to Making Seasonal CA] by [[Liam]].
+
 
 +
Example of using EMIT in the pickup script:
 +
 
 +
<pre>
 +
*This is the fruit pickup script
 +
scrp 2 8 1000 4
 +
lock
 +
*If it hasn't been picked up before
 +
doif ov00 eq 0
 +
*make it smell
 +
emit 6 0.5
 +
*tell the fruit it has been picked up
 +
setv ov00 1
 +
*end the not-picked-up doif
 +
endi
 +
doif attr eq 67
 +
attr 195
 +
endi
 +
perm 60
 +
endm
 +
</pre>
 +
 
 +
*[https://www.creaturescaves.com/forum.php?view=12&thread=3592 Guide to Making Seasonal CA] by [[Liam]].
  
 
==See also==
 
==See also==
 
*[[CACL]] - which causes creatures to mentally link the smell to an object type.
 
*[[CACL]] - which causes creatures to mentally link the smell to an object type.
 +
*[[ALTR]]
  
 
[[Category:C3 CAOS Commands]]
 
[[Category:C3 CAOS Commands]]

Latest revision as of 21:56, 13 July 2022

EMIT is a CAOS command that causes an object to smell. Most often used upon the creation of an object - however, if an object is initially invisible and inedible (like the apples are when growing), it may be included in the pick up script instead.

Description[edit]

EMIT (command) ca_index (integer) amount (float)

Target now constantly emits an amount of a CA into the room it is in.

Examples[edit]

Example of using EMIT in the pickup script:

*This is the fruit pickup script
scrp 2 8 1000 4
lock
*If it hasn't been picked up before
doif ov00 eq 0
*make it smell
emit 6 0.5
*tell the fruit it has been picked up
setv ov00 1
*end the not-picked-up doif
endi
doif attr eq 67
attr 195
endi
perm 60
endm

See also[edit]

  • CACL - which causes creatures to mentally link the smell to an object type.
  • ALTR