//GunganC state Base { Conditions { } Actions { CnxController "from=LOG_FROM" "to=LOG_TO" "off_flag=BLOCK" "obj=log_move" "checkvisible" "on_frames=lastframetolastframe" CnxController "from=door1_a" "to=door1_b" "off_flag=BLOCK" "obj=block_1" "checkvisible" "on_frames=lastframetolastframe" SetPathCnxFlag "from=bonus_a" "to=bonus_b" "BLOCK" "bothways" SetPathCnxFlag "from=bonus_b" "to=bonus_c" "BLOCK" "bothways" SetPathCnxFlag "from=bonus_c" "to=bonus_d" "BLOCK" "bothways" SetPathCnxFlag "from=bonus_d" "to=bonus_e" "BLOCK" "bothways" SetPathCnxFlag "from=bonus_e" "to=bonus_f" "BLOCK" "bothways" SetMessage "name=mtt_blocked" "value=1" SetState "Update" } } state Update { Conditions { if Message "mtt_blocked" == 1 and if ObstacleChainPhase "mtt_chain" > 3 goto UnBlockMTT } Actions { } } state UnBlockMTT { Conditions { } Actions { SetPathCnxFlag "from=bonus_a" "to=bonus_b" "BLOCK" "FALSE" "bothways" SetPathCnxFlag "from=bonus_b" "to=bonus_c" "BLOCK" "FALSE" "bothways" SetPathCnxFlag "from=bonus_c" "to=bonus_d" "BLOCK" "FALSE" "bothways" SetPathCnxFlag "from=bonus_d" "to=bonus_e" "BLOCK" "FALSE" "bothways" SetPathCnxFlag "from=bonus_e" "to=bonus_f" "BLOCK" "FALSE" "bothways" SetMessage "name=mtt_blocked" "value=0" SetState "Update" } }