//JabbasPalace_b: This script controls the respawning of creatures down the tubes the 1st room state Base { Conditions { if ObstacleAtStart "lid_cover_01" == 1 and if EitherPlayerInTriggerArea "Spawn_Box1" == 1 and if PartyUnderCover == 0 and if NumInSetAlive "1" < 3 goto GetReadyToSpawn1 if ObstacleAtStart "lid_cover_02" == 1 and if EitherPlayerInTriggerArea "Spawn_Box2" == 1 and if PartyUnderCover == 0 and if NumInSetAlive "1" < 3 goto GetReadyToSpawn2 } Actions { ResetTimer } } ///////// state GetReadyToSpawn1 { Conditions { if ObstacleAtStart "lid_cover_01" == 0 goto Base if Timer > 5 goto Spawn1 } Actions { } } state Spawn1 { Conditions { } Actions { CreateCreatures "locator=spawn_lid_01" "type=GamorreanGuard" "script=GamorreanGuard" "addtoset=1" AlertCreatures "character=player" SetState "Base" } } ///////// state GetReadyToSpawn2 { Conditions { if ObstacleAtStart "lid_cover_02" == 0 goto Base if Timer > 5 goto Spawn2 } Actions { } } state Spawn2 { Conditions { } Actions { CreateCreatures "locator=spawn_lid_02" "type=GamorreanGuard" "script=GamorreanGuard" "addtoset=1" AlertCreatures "character=player" SetState "Base" } }