//CloudCityTrap_A state Base { Conditions { } Actions { CnxController "from=bridge1_a" "to=bridge1_b" "off_flag=BLOCK" "obj=wing_wee" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=bridge1_b" "to=bridge1_c" "off_flag=BLOCK" "obj=bridge_2" "checkvisible" "on_frames=lastframeTOlastframe" CnxController "from=bridge1_c" "to=bridge1_b" "off_flag=BLOCK" "obj=wing_wee" "checkvisible" "on_frames=lastframeTOlastframe" CnxController "from=bridge1_c" "to=bridge1_d" "off_flag=BLOCK" "obj=bridge_2" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=door1_a" "to=door1_b" "off_flag=BLOCK" "obj=door_1" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=door2_a" "to=door2_b" "off_flag=BLOCK" "obj=door_2" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=door3_a" "to=door3_b" "off_flag=BLOCK" "obj=door_2" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=tunnel1_a" "to=tunnel1_b" "off_flag=BLOCK" "obj=door_tunnel_top" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=hover1_a" "to=hover1_b" "off_flag=BLOCK" "obj=r2_plat_1" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=hover1_b" "to=hover1_c" "off_flag=BLOCK" "obj=r2_plat_1" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" AddLocatorGroup "name=Steam" AddLocatorGroup "name=zipspawn" SetState "Update" } } state Update { Conditions { if ObstacleChainPhase "carbon_switch" == 1 and if BuildItComplete "buildit2" == 1 goto EnableSwitch if ObstacleChainPhase "chamber" == 2 and if BaddyInTriggerArea "chamber" == 1 goto TriggerChamber } Actions { } } state EnableSwitch { Conditions { } Actions { SetObstacleChainPhase "carbon_switch" "phase=2" SetState "Update" } } state TriggerChamber { Conditions { } Actions { SetObstacleChainPhase "chamber" "phase=3" SetState "Update" } }