//EndorBattle A //Sets: // 1: Ewoks (kill them all...) // 2: Zip up storm troopers (kill these too) state Base { Conditions { if MissionMode == 1 goto MissionMode if AlwaysTrue == 1 goto Update } Actions { CnxController "from=bridge1a" "to=bridge1b" "off_flag=BLOCK" "obj=bridge_01" "checkvisible" "on_frames=lastframeTOlastframe" CnxController "from=bridge1b" "to=bridge1a" "off_flag=R2D2GLIDE" "obj=bridge_01" "checkvisible" "on_frames=lastframeTOlastframe" CnxController "from=bridge2a" "to=bridge2b" "off_flag=BLOCK" "obj=bridge_02" "checkvisible" "on_frames=lastframeTOlastframe" CnxController "from=bridge2b" "to=bridge2a" "off_flag=R2D2GLIDE" "obj=bridge_02" "checkvisible" "on_frames=lastframeTOlastframe" CnxController "from=freelift_c" "to=freelift_d" "off_flag=BLOCK" "obj=spin_plat_01b" "checkvisible" "on_frames=1TO2" CnxController "from=freelift_a" "to=freelift_b" "off_flag=BLOCK" "obj=spin_plat_01b" "checkvisible" "on_frames=lastframe-1TOlastframe" "bothways" CnxController "from=minikit_a" "to=minikit_b" "off_flag=BLOCK" "obj=minikit_gate" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=lift_down_a" "to=lift_down_b" "off_flag=BLOCK" "obj=biglift_1down" "checkvisible" "on_frames=1TO1" "bothways" ObstacleTriggerSet "trigger=pad1" "trigger=pad2" "trigger=pad3" "trigger=pad4" "trigger=pad5" "trigger=pad6" "obstacle=biglift_down" AddLocatorGroup "name=talk" } } //Base state Update { Conditions { if NumInSetAlive "1" < 6 and if Random > 0.5 goto spawnEwok if EitherPlayerInTriggerArea "Spawn" == 1 and if NumInSetAlive "2" < 6 goto spawnZipUpStorm } Actions { } } state spawnEwok { Conditions { } Actions { CreateCreatures "mingroupsize=1" "maxgroupsize=2" "locator_group=Talk" "type=ewok" "script=citizen" "addtoset=1" "off_screen" SetState "Update" } } state spawnZipUpStorm { Conditions { } Actions { CreateCreatures "mingroupsize=1" "maxgroupsize=2" "not_grouped" "zipup=zipup_2" "zipup=zipup_3" "zipup=zipup_4" "zipup=zipup_5" "type=stormtrooper" "type=scouttrooper" "script=spawnAttack" "addtoset=2" Idle "0.25" //CreateCreatures "mingroupsize=1" "maxgroupsize=2" "not_grouped" "zipup=zipup_2" "zipup=zipup_3" "zipup=zipup_4" "zipup=zipup_5" "type=stormtrooper" "type=scouttrooper" "script=spawnAttack" "addtoset=2" //Idle "0.25" SetState "Update" } } state MissionMode { Conditions { } Actions { } }