creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Development Forum
old
Doif I'm pretending to be?   
Malkin

Malkin
Australia  
Manager


 visit Malkin's website: Malkin's page at CWiki
  4/6/2012

Is it valid to make a doif statement that checks if the cato is set to 'portal' before stimming a creature with the portal-associated stims?


doif cato eq 34
stim writ from 27 1
endi


My TCR Norns
 
Papriko
Peppery One

Papriko



  4/6/2012

According to the docs is CATO a command that has to stand alone.

The CAOS Documentation wrote:
CATO (command) category (integer)
Change the target's category to the one specified. The default is -1 which means the category is based on classifier and the catalogue as described in CATI. See also CATX and CATA.



In case your TARG is still the agent whose category you wanna check, you can use CATA instead.

The CAOS Documentation wrote:
CATA (integer)
Returns the target's category. This either depends on its classifier as described in CATI, or is its own individual override set with CATO.



Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Ghosthande
Prodigal Sock

Ghosthande


 visit Ghosthande's website: Breeders Beware
  4/6/2012

I suppose if you needed to differentiate, you could check its GNUS too.


 
AquaShee

AquaShee



  4/6/2012  1

The short answer is:
In your example, you'd need CATA. CATA will tell you the CATO the object has been set to. :)


The Community Scribble: make (y)our own metaroom!
 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  4/6/2012

Thanks everyone! :D



*If I am a door, stim the from with 'I have travelled through a door'
doif cata eq 2
stim writ from 95 1
*or if I'm a button, stim the from with 'I have pushed a button'
elif cata eq 12
stim writ from 89 1
*or if I'm a toy, stim the from with 'I have played with a toy'
elif cata eq 21
stim writ from 97 1
*or if I'm a tool, send a message to the norn that's just like the one the pickups do.
elif cata eq 24
mesg wrt+ from 12345 40 5 0
*or if I'm a portal, stim the norn with 'I have travelled through a portal' and invisibly stim them with 'I have retreated', in case they're a C3 norn.
elif cata eq 34
stim writ from 27 1
stim writ from 17 0
*If I'm a teleporter, invisibly stim the norn with 'I have retreated', because there is no stim associated with teleporters...
elif cata eq 27
stim writ from 17 0
*if I'm a lift, stim the norn with 'I have travelled in a lift'
elif cata eq 26
stim writ from 94 1
*just in case, invisibly stim with 'I have retreated'
else
stim writ from 17 0
*phew! do I need more than just this endi?
endi


My TCR Norns
 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  12/14/2012

Hi everyone!

MK-Grendel has let me make an update for the Torii.

When you use the Torii changer in the 1.1 version, no matter what the Torii looks like to the creatures, it will always feel like a door.

With this small update (which I have called 1.15), when the Torii is pretending to be a portal, it will feel like a portal to the creatures. When the Torii is pretending to be a button, it will feel like a button to the creatures, etc, etc.

I hope everyone enjoys it!

Download the Torii 1.15


My TCR Norns
 


downloads
cobs
adoptions
creaturelink
metarooms
breeds
 
gallery
art
wallpaper
screenshots
graphics
promos
sprites
dev
hack shack
script reservations
dev resources
active projects
dev forum
 
community
links
advice
chat
polls
resources
creatchi
 
forum
bookmarks
general
news
help
development
strangeo
survivor
mycaves
log in
register
lost pw
0 online
creatures caves is your #1 resource for the creatures artificial life game series: creatures, creatures 2, creatures 3, docking station, and the upcoming creatures family.

contact    help    privacy policy    terms & conditions    rules    donate    wiki