1
//The different states:
4
//------------------------------------------------------------------
10
DoAction //Closed animation
13
//------------------------------------------------------------------
14
// Someone cast an unlock spell
17
tmpy = 491 // The unique code for an unlock order
19
tmpargument = 0 // Is it closed?
22
SendMessageNear //Tell it dint work
23
PlaySound //Funky sound
25
//------------------------------------------------------------------
26
//Open if both keys are used
29
SetTargetToWhoeverIsInPassage
41
//------------------------------------------------------------------
42
// Handle the animation and sound
44
tmpargument = passage // Is the passage clear?
47
IfStateIs //Don't loop
48
tmpargument = ACTIONMG
55
//------------------------------------------------------------------
56
End // Finished with this character
57
//------------------------------------------------------------------