//Dagobah_E //Snake generation on the middle island. state Base { Conditions { } Actions { AddLocatorGroup "name=snake" SetState "WaitForPlayer" } } state WaitForPlayer { Conditions { if FreePlay == 0 and if Message "DagobahTraining" == 1 and if EitherPlayerInTriggerArea "Snakes" == 1 goto SpawnSnake if FreePlay == 1 and if EitherPlayerInTriggerArea "Snakes" == 1 goto SpawnSnake } Actions { } } state SpawnSnake { Conditions { if NumInSetAlive "1" == 0 goto WaitBeforeRespawning } Actions { CreateCreatures "locator_group=Snake" "type=Snake" "script=Snake" "addtoset=1" "yGGoffset=2" "dxont_set_on_surface" } } state WaitBeforeRespawning { Conditions { } Actions { Idle "mintime=10" "maxtime=20" SetState "WaitForPlayer" } }