/*** * Groups: * 1: Probe Droids * 2: ATSTs * 3: Speeders */ state Base { Conditions { } Actions { AddLocatorGroup "name=spawn" AddLocatorGroup "name=respawn" AddLocatorGroup "name=Patrol_ATST" SetState "Update" } } state Update { Conditions { if NumInSetAlive "1" < 3 goto RespawnProbe if NumInSetAlive "2" < 4 goto RespawnATST if NumInSetAlive "3" < 1 goto RespawnSpeeder } Actions { } } state RespawnProbe { Conditions { } Actions { CreateCreatures "locator_group=spawn" "type=ProbeDroid" "script=probedroid" "addtoset=1" "off_screen" SetState Update } } state RespawnATST { Conditions { } Actions { CreateCreatures "locator_group=respawn" "type=ATST_LowRes" "script=rider" "addtoset=2" "off_screen" SetState Update } } state RespawnSpeeder { Conditions { } Actions { CreateCreatures "locator_group=respawn" "type=SpeederBike_snow" "script=riderSpeeder" "addtoset=3" "off_screen" SetState Update } }