//Vehicle Bonus State Base { Conditions { } Actions { AddLocatorGroup "name=spawn" SetState Update } } State Update { Conditions { if NumInSetAlive "1" < 8 and if Random > 0.5 goto Spawn if NumInSetAlive "1" < 8 goto SpawnLand } Actions { } } state Spawn { Conditions { if Random < 0.8 goto SpawnAir if AlwaysTrue == 1 goto SpawnLand } Actions { } } State SpawnAir { Conditions { } Actions { CreateCreatures "locator_group=spawn" "type=mini_tie_advanced" "type=Mini_Tie_fighter" "type=Mini_Tie_Interceptor" "type=Mini_Tie_bomber" "type=Mini_atat" "type=Mini_atst" "script=enemy" "nearest_player" "addtoset=1" "off_screen" SetState Update } } State SpawnLand { Conditions { } Actions { CreateCreatures "locator_group=spawn" "type=Mini_atat" "type=Mini_atst" "script=enemyLand" "nearest_player" "addtoset=1" "off_screen" SetState "Update" } }