creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Development Forum
old
Command to lock doors?   
Nutter
Senior Wrangler

Nutter
United Kingdom  


  9/23/2013

Hi folks,

I'm trying to code an agent for the IQ tests. I've a timer script that re-shows the hand and gives an alert when the time's up, but it'd be good to be able to lock all the doors at that point so I could export norns at leisure. Is there any CAOS command to identify, and then lock, a door? I can't see anything in the reference that would do the trick.

 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  9/23/2013

Which doors do you want to lock? It might depend on how the doors code their lock...

My TCR Norns
 
Nutter
Senior Wrangler

Nutter



  9/23/2013

I'm running the IQ test in Capillata, and I lock the agent room door anyway. But it would be good at the end of the run to automatically lock the other two doors, so that norns were stopped in the room they were in; that way I could see who'd passed and where the others had got to (and wouldn't have to babysit the whole process, which does get boring with a lot of norns!)
 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  9/23/2013

So, just the official DS doors?

When the Hub-to-Meso door is created, it has a line of code which goes

mesg writ targ 1000


With the comment "Lock Grendels Out!"

There are these three scripts:

****lock icon events
*grendel lock
scrp 2 2 25 1000
inst
part 1
* if you're open
doif pose eq 1
* lock
addv ov01 1
pose 2
* else you're locked
elif pose eq 2
* unlock
subv ov01 1
pose 1
endi
endm
*ettin lcok
scrp 2 2 25 1001
inst
part 2
* if you're open
doif pose eq 1
* lock
addv ov01 2
pose 2
* else you're locked
elif pose eq 2
* unlock
subv ov01 2
pose 1
endi
endm
*norn lock
scrp 2 2 25 1002
inst
part 3
* if you're open
doif pose eq 1
* lock
addv ov01 4
pose 2
* else you're locked
elif pose eq 2
* unlock
subv ov01 4
pose 1
endi
endm


I'm thinking that if you enumerated all of the doors and sent a mesg to them saying that they should lock... then that might work????

Check out doors.cos in your bootstrap folder for more. :)


My TCR Norns
 
Nutter
Senior Wrangler

Nutter



  9/23/2013

Sweet, thank you - I never thought to check the door.cos file! XD
 
savagebeast

savagebeast



  10/19/2013

O3O All I have to say is thank you!!!!!! :D

~^._.^~
 


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
Zurinsel13
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