//Sets: // // 2 - 2nd half creatures // 3 - Flyin A Creatures // 4 - Flyin A Creatures // 6 - ATSTs state Base { Conditions { if Message "InitOnce_C" == 0 goto InitOnce if AlwaysTrue == 1 goto Update } Actions { //Hard Coded... CXXnxController "from=ice_a" "to=ice_b" "off_flag=BLOCK" "obj=main_gate3" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=end_wall_a" "to=end_wall_b" "obj=main_gate" "on_flag=BLOCK" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" AddLocatorGroup "name=spawn" AddLocatorGroup "name=spawn1" AddLocatorGroup "name=spawn2" //for 2nd half spawing AddLocatorGroup "name=spawn3" //Final battle view spawning AddLocatorGroup "name=flyina" AddLocatorGroup "name=flyinb" AddLocatorGroup "name=AT_BM" AddLocatorGroup "name=ICE" ResetTimer } } state InitOnce { Conditions { } Actions { SetMessage "name=ATST_Waves" "value=10" SetMessage "name=InitOnce_C" "value=1" SetState Update } } state Update { Conditions { if NumInSetAlive "6" < 3 and if Timer > 20 goto SpawnATST if NumInSetAlive "3" < 4 and if Random < 0.1 goto FlyByA_goodie if NumInSetAlive "3" < 4 and if Random < 0.3 goto FlyByA_baddie if NumInSetAlive "4" < 4 and if Random < 0.1 goto FlyByB_goodie if NumInSetAlive "4" < 4 and if Random < 0.3 goto FlyByB_baddie } Actions { } } sZtate SpawnSecondHalf { Conditions { } Actions { SetMessage "name=SpawnSecondHalf" "value=8" //CreateCreatures "locator_group=spawn2" "type=ProbeDroid" "script=probedroid" "addtoset=2" "off_screen" //CreateCreatures "locator_group=spawn2" "type=ProbeDroid" "script=probedroid" "addtoset=2" "off_screen" //CreateCreatures "locator_group=spawn2" "type=SpeederBike_snow" "script=riderSpeeder" "addtoset=2" "off_screen" //CreateCreatures "locator_group=spawn2" "type=SpeederBike_snow" "script=riderSpeeder" "addtoset=2" "off_screen" //CreateCreatures "locator_group=spawn2" "type=ATST" "script=ATST" "addtoset=2" "off_screen" //CreateCreatures "locator_group=spawn2" "type=ATST" "script=ATST" "addtoset=2" "off_screen" //CreateCreatures "locator_group=spawn2" "type=ATST" "script=ATST" "addtoset=2" "off_screen" //CreateCreatures "locator_group=spawn2" "type=ATST" "script=ATST" "addtoset=2" "off_screen" CreateCreatures "locator_group=spawn3" "type=ProbeDroid" "script=probedroid" "addtoset=2" "off_screen" //CreateCreatures "locator_group=spawn3" "type=SpeederBike_snow" "script=riderSpeeder" "addtoset=2" "off_screen" CreateCreatures "locator_group=spawn3" "type=ATST_LowRes" "script=rider" "addtoset=2" "off_screen" CreateCreatures "locator_group=spawn3" "type=ATST_LowRes" "script=rider" "addtoset=2" "off_screen" SetMessage "name=spawnIce" "value=1" } } state SpawnATST { Conditions { } Actions { ResetTime "maxtime=10" CreateCreatures "locator=respawn" "type=ATST_LOWRES" "script=rider" "addtoset=6" "off_screen" SetState "Update" } } state FlyByA_goodie { Conditions { } Actions { CreateCreatures "locator_group=flyina" "type=SnowSpeeder" "script=flyinA_goodie" "addtoset=3" SetState "Update" } } state FlyByA_baddie { Conditions { } Actions { CreateCreatures "locator_group=flyina" "type=ProbeDroid" "type=SpeederBike_snow" "script=flyinA" "addtoset=3" SetState "Update" } } state FlyByB_goodie { Conditions { } Actions { CreateCreatures "locator_group=flyinb" "type=SnowSpeeder" "script=flyinB" "addtoset=4" SetState "Update" } } state FlyByB_baddie { Conditions { } Actions { CreateCreatures "locator_group=flyinb" "type=ProbeDroid" "type=SpeederBike_snow" "script=flyinB" "addtoset=4" SetState "Update" } }