//EndorBattle B //Sets // 1: Scouttroopers appearing in airlock rubbish state Base { Conditions { if Message "InitOnce_B" == 0 goto InitOnce if AlwaysTrue == 1 goto Update } Actions { //Inital Gate CnxController "from=Door_1A" "to=Door_1B" "on_flag=BLOCK" "obj=firstgate1a" "checkvisible" "on_frames=1TOlastframe-1" "bothways" //zip up bridge CnxController "from=bridge_A" "to=bridge_B" "off_flag=BLOCK" "obj=fg_ramp" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" //2 gate airlocks CnxController "from=gate1a_1" "to=gate1a_2" "off_flag=BLOCK" "obj=gate1a" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=gate2a_1" "to=gate2a_2" "off_flag=BLOCK" "obj=gate2a" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=gate1b_1" "to=gate1b_2" "off_flag=BLOCK" "obj=gate1b" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=gate2b_1" "to=gate2b_2" "off_flag=BLOCK" "obj=gate2b" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=ramp_a" "to=ramp_b" "off_flag=BLOCK" "obj=buildramp_06_01b" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" ObstacleTriggerSet "trigger=pad1" "trigger=pad2" "trigger=pad3" "trigger=pad4" "trigger=pad5" "trigger=pad6" "obstacle=biglift_up" ObstacleTriggerSet "trigger=gate1a_pad1" "trigger=gate1a_pad2" "trigger=gate1a_pad3" "trigger=gate1b_pad1" "trigger=gate1b_pad2" "trigger=gate1b_pad3" "check_phase" "obstacle=gate1_allpadb" ObstacleTriggerSet "trigger=gate2a_pad1" "trigger=gate2a_pad2" "trigger=gate2b_pad1" "trigger=gate2b_pad2" "trigger=gate2b_pad3" "trigger=gate2b_pad4" "obstacle=gate2_padcheck" SetMessage "name=ATST_Snap_hack" "value=1" } } //Base state InitOnce { Conditions { } Actions { SetMessage "name=airlockSpawn" "value=10" SetState "Update" } } state Update { Conditions { if NumInSetAlive "1" > 0 goto Update if Timer > 10 and if EitherPlayerInTriggerArea "Airlock_A" == 1 and if NumInSetAlive "1" < 3 and if Message "airlockSpawn" > 0 goto SpawnAirLock } Actions { ResetTimer "mintime=0" "maxtime=2" } } state SpawnAirLock { Conditions { } Actions { CreateCreatures "locator=spawn" "mingroupsize=3" "maxgroupsize=6" "type=scouttrooper" "script=SpawnAttack" "addtoset=1" SetMessage "name=airlockSpawn" "decrement=1" SetState "Update" } }