//SarlaccPit_B state Base { Conditions { } Actions { ;CnxController "from=door1_a" "to=door1_b" "off_flag=BLOCK" "obj=push_door_1" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" ;CnxController "from=door2_a" "to=door2_b" "off_flag=BLOCK" "obj=force_field" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" ;CnxController "from=door3_a" "to=door3_b" "off_flag=BLOCK" "obj=door_02" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=door1_a" "to=door1_b" "on_flag=BLOCK" "obj=cannon_pop1" "checkvisible" "on_frames=1TOlastframe" "bothways" CnxController "from=door2_a" "to=door2_b" "on_flag=BLOCK" "obj=deton_gate" "checkvisible" "on_frames=1TOlastframe" "bothways" CnxController "from=door3_a" "to=door3_b" "off_flag=BLOCK" "obj=Jabba_door1" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=blowup_a" "to=blowup_b" "on_flag=BLOCK" "obj=blowup_pap" "checkvisible" "on_frames=1TOlastframe" "bothways" SetMessage "name=Met_ChewyAndHan" "value=1" AddLocatorGroup "name=WatchDisco" AddLocatorGroup "name=DiscoTile" AddLocatorGroup "name=Safe_Loc" SetState "Update" } } state Update { Conditions { if FreePlay == 0 and if Message "Met_Droids" == 0 and if EitherPlayerInTriggerArea "Droids" == 1 goto Activate_Droids if Message "DiscoFloorOpen" == 0 and if ObstacleFinished "disco_floor" == 1 goto DiscoFloorOpen if Debug == 4 and if ObstacleAtStart "disco_floor" == 1 goto TestOpenDisco } Actions { } } state TestOpenDisco { Conditions { } Actions { ;PlayObstacle "disco_floor" OpenDoor "disco_floor" "stayopen" SetState "Update" } } state Activate_Droids { Conditions { } Actions { SetMessage "name=Met_Droids" "value=1" CannotDropIn "character=C3PO" "FALSE" NotWithParty "character=C3PO" "FALSE" SetTaggable "character=C3PO" SetScriptState "character=C3PO" "state=NormalUpdate" CannotDropIn "character=R2D2" "FALSE" NotWithParty "character=R2D2" "FALSE" SetTaggable "character=R2D2" SetScriptState "character=R2D2" "state=NormalUpdate" SetState "Update" } } state DiscoFloorOpen { Conditions { } Actions { SetMessage "name=DiscoFloorOpen" "value=1" SetState "Update" } }