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