//SarlaccPit_B state Base { Conditions { } Actions { SetState "DiscoOff" } } state DiscoOff { Conditions { if ObstacleFinished "exit" == 1 and if Message "DiscoComplete" == 1 goto DiscoTurnedOn } Actions { SetState "DiscoOff" } } state DiscoTurnedOn { Conditions { if Message "DiscoComplete" == 0 goto DiscoOff if NumInSetAlive "1" > 1 goto DiscoTurnedOn } Actions { Idle "1" CreateCreatures "locator=spawn_1" "type=GamorreanGuard" "script=DancingGuard" "addtoset=1" Idle "1" CreateCreatures "locator=spawn_2" "type=GamorreanGuard" "script=DancingGuard" "addtoset=1" SetState "DiscoOn" } } state DiscoOn { Conditions { if Message "DiscoComplete" == 0 goto DiscoOff } Actions { } }