//Vader B state Base { Conditions { } Actions { SetState "GoToDoorTrigger" } } state GoToDoorTrigger { Conditions { if DoorOpen "door_1" == 1 goto Part2 if StuckTime > 0 goto SmashPot } Actions { CycleCharacter "time=0.5" "Catagory=Jedi" GoToDoorTrigger "name" "door_1" "waittime=1" } } state SmashPot { Conditions { } Actions { PressJumpButton UseWeapon SetState "GoToDoorTrigger" } } ///////////////////Part2 state Part2 { Conditions { if Message "SteamPuzzleComplete" == 1 goto Part3 if Message "SteamPuzzleComplete" == 0 and if PlayerUsingForce "tap_1" == 1 goto GoToTap2 if Message "SteamPuzzleComplete" == 0 and if InTriggerArea "tap_2" == 1 goto GoToTap2 } Actions { GoToLocator "name" "Wait2" } } state GoToTap2 { Conditions { if Message "SteamPuzzleComplete" == 1 goto Part3 if PlayerUsingForce "tap_1" == 0 and if InTriggerArea "tap_2" == 0 goto Part2 } Actions { GoToLocator "name" "tap_2" "0.5" SetState "UseTap2" } } state UseTap2 { Conditions { if Message "SteamPuzzleComplete" == 1 goto Part3 if PlayerUsingForce "tap_1" == 0 and if InTriggerArea "tap_2" == 0 goto Part2 } Actions { UseForce "tap_2" } } ////////////////Part 3 state Part3 { Conditions { } Actions { SetState "UseCell2" } } state UseCell1 { Conditions { if ObstacleChainPhase "arm_puzzle" > 1 goto Part4 if PlayerUsingForce "cell_1" == 1 goto UseCell2 } Actions { GoToLocator "name" "cell" "0.5" UseForce "cell_1" } } state UseCell2 { Conditions { if ObstacleChainPhase "arm_puzzle" > 1 goto Part4 if PlayerUsingForce "cell_2" == 1 goto UseCell1 } Actions { GoToLocator "name" "cell" "0.5" UseForce "cell_2" } } state Part4 { Conditions { } Actions { GoToLocator "name" "end2" } }