creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Development Forum
old
Set to NULL?   
Geek2Nurse

Geek2Nurse
United States  

 visit Geek2Nurse's website: Adventures in Nornia
  6/15/2012

How do you set a value to NULL? I can't seem to find the right syntax. I've tried
setv va00 NULL

and a whole bunch of other iterations I can't think of at the moment, and the CAOS Tool didn't approve of any of them.

Also, while I'm thinking of it, if I use SETA to set a reference to an agent, e.g.
seta ov16 ownr

is there any way to see that value when debugging like I can do for other values using dbg: outs / dbg: outv? There's no outa, so I'm stuck not knowing what's in there and therefore how to get it back out where I can see it!


---
Optimist: the glass is half full.
Pessimist: the glass is half empty.
Engineer: the glass is twice as big as it needs to be.

 
Moe

Moe


 visit Moe's website: Creatures 2 to Docking Station
  6/15/2012

You can set a variable to a NULL object handle by using seta vaXX NULL. Naturally you can also use ov's, name, eame, and game variable types to hold object references.

As for seeing what object is stored in an agent variable, there's not a lot you can do without manually grabbing information about the agent held in the variable and DBG: outv's and outs'ing that information. You could for instance, outs the fmly, gnus, and spcs of the agent, and it's location.

An easy way I always use in developing to see if an agent is correctly targeting something, is to move it's target, tint it, and/or kill it. :p Brutal and archaic, but effective. Now a-days I actually have developed what I call an "Agent Eye" that lets me "see" what an agent is currently looking at. I'll release it at some point, once I work out the bugs and maybe add an option to track custom variables. :)

 
Geek2Nurse

Geek2Nurse


 visit Geek2Nurse's website: Adventures in Nornia
  6/15/2012

Wow, Moe! All sorts of good info in one post, thank you!

---
Optimist: the glass is half full.
Pessimist: the glass is half empty.
Engineer: the glass is twice as big as it needs to be.

 


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
1 online
RisenAngel
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