//SarlaccPit_A //Sets // 1: Skiff Snipers // 2: Door Skiff 3: Freeplay Skiff state Base { Conditions { if Message "InitOnce_A" == 0 goto InitOnce if ForceComplete "grate6" == 0 goto TriggerBlowUps if AlwaysTrue == 1 goto Update } Actions { CnxController "from=plat1_a" "to=plat1_b" "off_flag=BLOCK" "obj=platform_barge_01" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=plat2_a" "to=plat2_b" "off_flag=BLOCK" "obj=platform_barge_02" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=plat3_a" "to=plat3_b" "off_flag=BLOCK" "obj=platform_barge_03" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=plat4_a" "to=plat4_b" "off_flag=BLOCK" "obj=platform_barge_03" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=zip1_a" "to=zip1_b" "off_flag=BLOCK" "obj=zipup_target2" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" ;CnxController "from=zip2_a" "to=zip2_b" "off_flag=BLOCK" "buildit=buildit5" "bothways" CnxController "from=zip2_a" "to=zip2_b" "off_flag=BLOCK" "obj=zipup_target" "checkvisible" "on_frames=1TOlastframe" "bothways" CnxController "from=gate1_a" "to=gate1_b" "off_flag=BLOCK" "obj=gate_01" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=gate2_a" "to=gate2_b" "off_flag=BLOCK" "obj=gate_02" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=gate3_a" "to=gate3_b" "off_flag=BLOCK" "obj=gate_03" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" //gate_04 not there? //CnxController "from=gate4_a" "to=gate4_b" "off_flag=BLOCK" "obj=gate_04" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" //Skiff Bridge Flags CnxController "from=bridge1_1a" "to=bridge1_1b" "off_flag=BLOCK" "obj=platform_03" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=bridge1_2a" "to=bridge1_2b" "off_flag=BLOCK" "obj=platform_03" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=bridge2_1a" "to=bridge2_1b" "off_flag=BLOCK" "obj=platform_08" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=bridge2_2a" "to=bridge2_2b" "off_flag=BLOCK" "obj=platform_08" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=bridge3_1a" "to=bridge3_1b" "off_flag=BLOCK" "obj=float_skiff_2" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=bridge3_2a" "to=bridge3_2b" "off_flag=BLOCK" "obj=float_skiff_2" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" //triggers not set up properly? ObstacleTriggerSet "trigger=pad_1" "trigger=pad_2" "trigger=pad_3" "oXbstacle=" //NOTE: ('Sid' typo in ai editor not here...) AddLocatorGroup "name=Sid_Sniper" AddLocatorGroup "name=Side_Spawn" AddLocatorGroup "name=Spawn_Door" AddLocatorGroup "name=boba_fight" } } state InitOnce { Conditions { if ForceComplete "grate6" == 0 goto TriggerBlowUps if AlwaysTrue == 1 goto Update } Actions { SetMessage "name=SpawnDoor" "value=5" SetMessage "name=FreeSpawn" "value=6" SetMessage "name=InitOnce_A" "value=1" } } //Should only be done once...? state TriggerBlowUps { Conditions { } Actions { Idle "5" TriggerBlowUp "name=grate7" Idle "0.25" TriggerBlowUp "name=grate8" Idle "0.25" TriggerBlowUp "name=grate6" TriggerBlowUp "name=grate4" TriggerBlowUp "name=grate5" SetState "Update" } } state Update { Conditions { if FreePlay == 0 and if Message "Met_ChewyAndHan" == 0 and if EitherPlayerInTriggerArea "ChewyAndHan" == 1 goto Activate_ChewyAndHan if Message "OpenGalley" == 0 and if EitherPlayerInTriggerArea "ChewyAndHan" == 1 goto OpenGalley if Message "Boba_Dead" == 0 and if NumInSetAlive "1" < 5 goto SpawnSideSnipers if EitherPlayerInTriggerArea "Door_Spawn" == 1 and if NumInSetAlive "2" < 2 and if Message "SpawnDoor" > 1 goto SpawnDoor if EitherPlayerInTriggerArea "FreeSpawn" == 1 and if NumInSetAlive "3" == 0 and if Message "FreeSpawn" > 1 goto SpawnFree } Actions { } } state Activate_ChewyAndHan { Conditions { } Actions { SetMessage "name=Met_ChewyAndHan" "value=1" ;CameraCut "use_current_campos" "tgt_character=HanSolo_Skiff" "FollowTgt" "blend_in_time=0.5" "blend_out_time=0.5" "end_time=2" "no_borders" CameraCut "range=3" "roty=320" "rotx=15" "tgt_character=HanSolo_Skiff" "FollowTgt" "blend_in_time=0.5" "blend_out_time=0.5" "end_time=2" "no_borders" CannotDropIn "character=Chewbacca" "FALSE" NotWithParty "character=Chewbacca" "FALSE" SetScriptState "character=Chewbacca" "state=JustMet" CannotDropIn "character=HanSolo_Skiff" "FALSE" NotWithParty "character=HanSolo_Skiff" "FALSE" SetScriptState "character=HanSolo_Skiff" "state=JustMet" SetState "OpenGalley" } } state OpenGalley { Conditions { } Actions { SetMessage "name=OpenGalley" "value=1" SetState "Update" } } state SpawnSideSnipers { Conditions { } Actions { Idle "3" CreateCreatures "type=Skiffguard" "script=galley_snipers" "locator_group=Side_Spawn" "addtoset=1" "oZff_screen" SetState "Update" } } state SpawnDoor { Conditions { } Actions { CreateCreatures "mingroupsize=1" "maxgroupsize=3" "type=Skiffguard" "script=SpawnAttack" "locator_group=Spawn_Door" "addtoset=2" SetMessage "name=SpawnDoor" "decrement=1" SetState "Update" } } state SpawnFree { Conditions { } Actions { CreateCreatures "type=Skiffguard" "script=SpawnAttack" "locator=freespawn" "addtoset=3" CreateCreatures "type=Skiffguard" "script=SpawnAttack" "locator=freespawn" "addtoset=3" CreateCreatures "type=Skiffguard" "script=SpawnAttack" "locator=freespawn" "addtoset=3" SetMessage "name=FreeSpawn" "decrement=3" SetState "Update" } }