//DeathStarEscape_C //Sets // 2: Big Melee Creatures // 3: Hanger Creatures // 4: Hanger Phase Creatures state Base { Conditions { if Message "init_C" == 0 goto Init if Message "init_C" == 1 goto Update } Actions { CnxController "from=zip1_a" "to=zip1_b" "off_flag=BLOCK" "obj=fix_it1_1_2" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=zip2_a" "to=zip2_b" "off_flag=BLOCK" "obj=fix_it1_1_4" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=door1_a" "to=door1_b" "off_flag=BLOCK" "obj=door_1" "checkvisible" "on_frames=1TO1" "bothways" CnxController "from=door2_a" "to=door2_b" "off_flag=BLOCK" "obj=door_2" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=door3_a" "to=door3_b" "off_flag=BLOCK" "obj=door_2" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=door4_a" "to=door4_b" "on_flag=BLOCK" "obj=door_2_r_1b" "checkvisible" "on_frames=1TOlastframe" "bothways" CnxController "from=door5_a" "to=door5_b" "on_flag=BLOCK" "obj=door_2_r_2b" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=door6_a" "to=door6_b" "off_flag=BLOCK" "obj=door_2_l_3" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=door7_a" "to=door7_b" "off_flag=BLOCK" "obj=door_6" "checkvisible" "on_frames=1TO1" "bothways" CnxController "from=door8_a" "to=door8_b" "off_flag=BLOCK" "obj=door_5" "checkvisible" "on_frames=1TO1" "bothways" CnxController "from=doorfight_a" "to=doorfight_b" "off_flag=BLOCK" "obj=door_fight" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=plat1_a" "to=plat1_b" "off_flag=BLOCK" "obj=lift" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=plat2_a" "to=plat2_b" "off_flag=BLOCK" "obj=lift" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=plat3_a" "to=plat3_b" "off_flag=BLOCK" "obj=lift" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" //Donesnt seem to work... ;CnxController "from=droid_rescue_a" "to=droid_rescue_b" "off_flag=BLOCK" "obj=door_push" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" AddLocatorGroup "name=doora" AddLocatorGroup "name=hngr_a" AddLocatorGroup "name=hngr_phase" } } state Init { Conditions { } Actions { SetMessage "name=hanger_a_spawn" "value=12" SetMessage "name=FalconPhase" "value=15" SetMessage "init_C" "value=1" SetState Update } } state Update { Conditions { if EitherPlayerInTriggerArea "hanger_a" == 1 and if Message "hanger_a_spawn" > 0 and if NumInSetAlive "3" < 3 goto Spawn_A if ObstacleAtStart "blowup_door_1" == 0 goto DoorClosed if Timer > 3 and if BuildItComplete "fixit_1" == 0 and if NumInSetAlive "1" < 2 goto Spawn } Actions { ResetTimer } } state DoorClosed { Conditions { if ObstacleAtStart "blowup_door_1" == 0 goto DoorClosed if Timer > 7 goto Update } Actions { ResetTimer } } state Spawn { Conditions { } Actions { CreateCreatures "locator=spawna" "type=Stormtrooper" "type=TIEFighterPilot" "script=door_spawn" "addtoset=1" SetState "Update" } } state Spawn_A { Conditions { } Actions { CreateCreatures "locator_group=hngr_a" "type=StormTrooper" "script=SpawnAttack" "addtoset=3" "dont_set_on_surface" "yoffset=10" "zipdown" CreateCreatures "locator_group=hngr_a" "type=StormTrooper" "script=SpawnAttack" "addtoset=3" "dont_set_on_surface" "yoffset=10" "zipdown" SetMessage "name=hanger_a_spawn" "decrement=2" SetState "Update" } }