//BlockadeRunner_B state Base { Conditions { if MissionMode == 1 goto MissionMode if FreePlay == 1 goto GetRidOfChokingDarth if AlwaysTrue == 1 goto Update } Actions { CnxController "from=plat1_a" "to=plat1_b" "off_flag=BLOCK" "obj=bridge_1" "checkvisible" "on_frames=lastframeTOlastframe" "bXothways" CnxController "from=plat1_b" "to=plat1_a" "off_flag=FORBADDIES" "obj=bridge_1" "checkvisible" "on_frames=lastframeTOlastframe" "bXothways" CnxController "from=door1_a" "to=door1_b" "off_flag=BLOCK" "obj=door_01" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=door2_a" "to=door2_b" "off_flag=BLOCK" "obj=door_02" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=door3_a" "to=door3_b" "off_flag=BLOCK" "obj=door_03" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=door4_a" "to=door4_b" "off_flag=BLOCK" "obj=door_04" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=door8_a" "to=door8_b" "off_flag=BLOCK" "obj=door_08" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=forcefield_a" "to=forcefield_b" "off_flag=BLOCK" "obj=force_field" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=secretdoor_a" "to=secretdoor_b" "on_flag=BLOCK" "obj=doorway_cover" "checkvisible" "on_frames=1TOlastframe" "bothways" AddLocatorGroup "name=Phase1" AddLocatorGroup "name=Phase2" AddLocatorGroup "name=Phase3" AddLocatorGroup "name=Storm1" } } state GetRidOfChokingDarth { Conditions { } Actions { DeActivate "set=5" SetState "Update" } } state Update { Conditions { if Message "PhaseB" == 0 and if IsAlive "AI_Vader2" == 0 and if ObstacleFinished "door_01" == 1 goto SetPhase1 if Message "PhaseB" == 0 and if IsAlive "AI_Vader2" == 0 and if ObstacleFinished "storm_door1" == 1 goto SetPhase1 if Message "PhaseB" == 1 and if IsSetAlive "1" == 0 goto SetPhase2 if Message "PhaseB" == 2 and if IsSetAlive "2" == 0 goto SetPhase3 } Actions { } } state SetPhase1 { Conditions { } Actions { SetMessage "name=PhaseB" "value=1" Activate "set=1" SetScriptState "set=1" "state=Update" Activate "set=3" SetScriptState "set=3" "state=StartPhase1" SetState "Update" } } state SetPhase2 { Conditions { } Actions { SetMessage "name=PhaseB" "value=2" Activate "set=2" SetScriptState "set=2" "state=Update" SetScriptState "set=3" "state=StartPhase2" SetState "Update" } } state SetPhase3 { Conditions { } Actions { SetMessage "name=PhaseB" "value=3" SetScriptState "set=3" "state=StartPhase3" SetState "Update" } } state MissionMode { Conditions { } Actions { } }