//Script controlls spawning creatures in Area D State Base { Conditions { } Actions { //SetState SpawnGroupD SetState Update } } State Update { Conditions { if NumInSetAlive "4" < 3 and if EitherPlayerInTriggerArea "Spawn_D" == 1 goto SpawnWait } Actions { } } State SpawnWait { Conditions { } Actions { Idle "mintime=0" "maxtime=10" SetState SpawnGroupD } } State SpawnTmpWait { Conditions { if NumInSetAlive "4" < 7 goto SpawnGroupD if AlwaysTrue == 1 goto Update } Actions { } } State SpawnGroupD { Conditions { } Actions { CreateCreatures "locator_group=spawnd" "type=StormTrooper" "type=ImperialOfficer" "type=BeachTrooper" "type=GamorreanGuard" "type=SkiffGuard" "type=ImperialGuard" "script=Attack" "addtoset=4" "yoffset=6" "dont_set_on_surface" "zipdown" Idle "0.1" SetState SpawnTmpWait } }