//JabbasPalace_d state Base { Conditions { if PartyUnderCover == 0 and if NumInSetAlive "1" < 2 goto GetReadyToSpawn } Actions { ResetTimer } } state GetReadyToSpawn { Conditions { if Timer > 5 goto Spawn } Actions { } } state Spawn { Conditions { if ObstacleAtStart "lid_cover_01" == 1 and if ObstacleAtStart "lid_cover_02" == 1 goto SpawnRandom if ObstacleAtStart "lid_cover_01" == 1 goto Spawn_1 if ObstacleAtStart "lid_cover_02" == 1 goto Spawn_2 if AlwaysTrue == 1 goto Base } Actions { } } state SpawnRandom { Conditions { if Random < 0.5 goto Spawn_1 if AlwaysTrue == 1 goto Spawn_2 } Actions { } } state Spawn_1 { Conditions { } Actions { CreateCreatures "locator=SpawnTube_1" "type=GamorreanGuard" "script=GamorreanGuard" "addtoset=1" AlertCreatures "character=player" SetState "Base" } } state Spawn_2 { Conditions { } Actions { CreateCreatures "locator=SpawnTube_2" "type=GamorreanGuard" "script=GamorreanGuard" "addtoset=1" AlertCreatures "character=player" SetState "Base" } }