{ "dm_type": "/datum/ai_controller/basic_controller/simple/simple_hostile_obstacles", "type": "selector", "children": [ { "type": "subtree", "subtype": "/datum/bt_node/subtree/escape_captivity" }, { "type": "parallel", "failure_policy": "BT_PARALLEL_FAILURE_CHILD_ONE", "success_policy": "BT_PARALLEL_SUCCESS_CHILD_ONE", "repeat_secondary": true, "repeat_secondary_delay": "BASIC_MOB_FIND_TARGET_RATE", "finish_on_primary": true, "children": [ { "type": "parallel", "failure_policy": "BT_PARALLEL_FAILURE_CHILD_ONE", "success_policy": "BT_PARALLEL_SUCCESS_CHILD_ONE", "repeat_secondary": true, "finish_on_primary": true, "children": [ { "type": "subtree", "subtype": "/datum/bt_node/subtree/run_away_from_target" }, { "type": "subplan", "success_policy": "BT_SUBPLAN_LOOP_ON_SUCCESS", "failure_policy": "BT_SUBPLAN_LOOP_ON_FAILURE", "loop_delay": "1 SECONDS", "children": [ { "type": "leaf", "behavior": "/datum/bt_node/ai_behavior/basic_melee_attack" } ] } ] }, { "type": "subtree", "subtype": "/datum/bt_node/subtree/pick_retaliate_target" } ] } ] }