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
(oops)
 
(One intermediate revision by the same user not shown)
Line 30: Line 30:
 
</pre>
 
</pre>
  
*[http://www.creaturescaves.com/forum.php?view=12&thread=3592 Guide to Making Seasonal CA] by [[Liam]].
+
*[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