IF
Global("CVAR3000","GLOBAL",0)
ITHEN
RESPONSE #100
SetGlobal("CVAR3000","GLOBAL",1)
SetGlobal("HelmRitualDone","GLOBAL",25)
Continue()
END
IF
Global("HelmRitualDone","GLOBAL",25)
OR(2)
Global("DemoGorgonIsDead","GLOBAL",1)
Global("DestroyHelmScroll","GLOBAL",1)
THEN
RESPONSE #100
SetGlobal("HelmRitualDone","GLOBAL",1)
Continue()
END
IF
Global("ItemWKscrl","GLOBAL",0)
PartyHasItem("plot01a")
PartyHasItem("plot01b")
THEN
RESPONSE #100
SetGlobal("ItemWKscrl","GLOBAL",1)
END
IF
Global("OpenDungeonDoor2","GLOBAL",1)
OpenState("DOOR03",FALSE)
Global("HelmRitualDone","GLOBAL",25)
THEN
RESPONSE #100
AmbientActivate("DoorMist03",TRUE)
OpenDoor("DOOR03")
SetGlobal("OpenDungeonDoor2","GLOBAL",2)
END
IF
Global("OpenDungeonDoor2","GLOBAL",2)
OpenState("DOOR03",FALSE)
Global("HelmRitualDone","GLOBAL",25)
THEN
RESPONSE #100
OpenDoor("DOOR03")
END
IF
Global("OpenDungeonDoor1","GLOBAL",1)
OpenState("DOOR04",FALSE)
Global("HelmRitualDone","GLOBAL",25)
THEN
RESPONSE #100
AmbientActivate("DoorMist04",TRUE)
OpenDoor("DOOR04")
SetGlobal("OpenDungeonDoor1","GLOBAL",2)
END
IF
Global("OpenDungeonDoor1","GLOBAL",2)
OpenState("DOOR04",FALSE)
Global("HelmRitualDone","GLOBAL",25)
THEN
RESPONSE #100
OpenDoor("DOOR04")
END
IF
Global("OpenDungeonDoor3","GLOBAL",1)
OpenState("DOOR05",FALSE)
Global("HelmRitualDone","GLOBAL",25)
THEN
RESPONSE #100
AmbientActivate("DoorMist05",TRUE)
OpenDoor("DOOR05")
SetGlobal("OpenDungeonDoor3","GLOBAL",2)
END
IF
Global("OpenDungeonDoor3","GLOBAL",2)
OpenState("DOOR05",FALSE)
Global("HelmRitualDone","GLOBAL",25)
THEN
RESPONSE #100
OpenDoor("DOOR05")
END
IF
Global("OpenDungeonDoor4","GLOBAL",1)
OpenState("DOOR01",FALSE)
Global("HelmRitualDone","GLOBAL",25)
THEN
RESPONSE #100
AmbientActivate("DoorMist01",TRUE)
OpenDoor("DOOR01")
SetGlobal("OpenDungeonDoor4","GLOBAL",2)
END
IF
Global("OpenDungeonDoor4","GLOBAL",2)
OpenState("DOOR01",FALSE)
Global("HelmRitualDone","GLOBAL",25)
THEN
RESPONSE #100
OpenDoor("DOOR01")
END
IF
Global("OpenDungeonDoor5","GLOBAL",1)
OpenState("DOOR02",FALSE)
Global("HelmRitualDone","GLOBAL",25)
THEN
RESPONSE #100
AmbientActivate("DoorMist02",TRUE)
OpenDoor("DOOR02")
SetGlobal("OpenDungeonDoor5","GLOBAL",2)
END
IF
Global("OpenDungeonDoor5","GLOBAL",2)
OpenState("DOOR02",FALSE)
Global("HelmRitualDone","GLOBAL",25)
THEN
RESPONSE #100
OpenDoor("DOOR02")
END