|
Development Forum |
 |
|
 Senior Wrangler
Nutter
    
|
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
     Manager

|
9/23/2013 | |
Which doors do you want to lock? It might depend on how the doors code their lock...
My TCR Norns |
 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
     Manager

|
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
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 |
 Senior Wrangler
Nutter
    
|
9/23/2013 | |
Sweet, thank you - I never thought to check the door.cos file! XD |

savagebeast

|
10/19/2013 | |
O3O All I have to say is thank you!!!!!! 
~^._.^~ |