//Vader B - the steam vent. state Base { Conditions { } Actions { SetMessage "name=VaderBComplete" "value=0" SetMessage "name=SteamPuzzleComplete" "value=0" ; CnxController "from=steam1_a" "to=steam1_b" "on_flag=BLOCK" "obj=steam_1" "checkvisible" "on_frames=1TOlastframe" "bXXothways" CnxController "from=jump1_a" "to=jump1_b" "off_flag=BLOCK" "obj=arm_1b" "checkvisible" "on_frames=1TOlastframe" "bothways" ; CnxController "from=plat1_a" "to=plat1_b" "obj=door_1a" "off_flag=BLOCK" "checkvisible" "on_frames=1TOlastframe" "bothways" ; CnxController "from=plat1_b" "to=plat1_c" "obj=door_1a" "off_flag=BLOCK" "checkvisible" "on_frames=1TOlastframe" "bothways" LockDoor "door_1" CloseDoor "door_1" SetState "WaitForSteamToStart" } } state WaitForSteamToStart { Conditions { if GadgetActive "coveroff" == 1 goto SteamOn } Actions { SetVisibility "name=steam_1" "FALSE" SetVisibility "name=steam_2" "FALSE" } } state SteamOn { Conditions { if PlayerUsingForce "tap_1" == 1 goto SteamHeldOff if ForceComplete "tap_2" == 1 goto SteamHeldOff } Actions { SetVisibility "name=steam_1" "TRUE" SetVisibility "name=steam_2" "FALSE" } } state SteamHeldOff { Conditions { if ForceComplete "tap_2" == 1 goto SteamPermanentlyOff if PlayerUsingForce "tap_1" == 0 goto SteamOn } Actions { SetVisibility "name=steam_1" "FALSE" SetVisibility "name=steam_2" "TRUE" } } state SteamPermanentlyOff { Conditions { } Actions { SetVisibility "name=steam_1" "FALSE" SetVisibility "name=steam_2" "FALSE" SetMessage "name=SteamPuzzleComplete" "value=1" } }