//JabbasPalace_d state Base { Conditions { if PartyUnderCover == 0 and if PlayerInTriggerArea "Start" == 1 and if NumInSetAlive "3" < 2 goto GetReadyToSpawn } Actions { ResetTimer } } state GetReadyToSpawn { Conditions { if Timer > 5 goto Spawn } Actions { } } state Spawn { Conditions { ;if Message "BridgeComplete" == 1 and if ObstacleAtStart "lid_cover_05" == 1 and if ObstacleAtStart "lid_cover_06" == 1 goto SpawnRandom ;if Message "BridgeComplete" == 1 and if ObstacleAtStart "lid_cover_05" == 1 goto Spawn_5 if ObstacleAtStart "lid_cover_06" == 1 goto Spawn_6 if AlwaysTrue == 1 goto Base } Actions { } } state SpawnRandom { Conditions { if Random < 0.5 goto Spawn_5 if AlwaysTrue == 1 goto Spawn_6 } Actions { } } state Spawn_5 { Conditions { } Actions { CreateCreatures "locator=SpawnTube_5" "type=GamorreanGuard" "script=GamorreanGuard" "addtoset=3" "alert_to_player" AlertCreatures "character=player" SetState "Base" } } state Spawn_6 { Conditions { } Actions { CreateCreatures "locator=SpawnTube_6" "type=GamorreanGuard" "script=GamorreanGuard" "addtoset=3" "alert_to_player" AlertCreatures "character=player" SetState "Base" } }