{ "dm_type": "/datum/ai_controller/basic_controller/bot/secbot", "type": "selector", "children": [ { "type": "subtree", "subtype": "/datum/bt_node/subtree/escape_captivity/pacifist" }, { "type": "subtree", "subtype": "/datum/bt_node/subtree/bot_respond_to_summon" }, { "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": "selector", "children": [ { "type": "decorator", "decorator": "/datum/bt_node/decorator/bb_key_set", "vars": { "observer_abort": "BT_ABORT_BOTH", "key": "BB_CURRENT_TARGET" }, "child": { "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": "subplan", "success_policy": "BT_SUBPLAN_LOOP_ON_SUCCESS", "failure_policy": "BT_SUBPLAN_LOOP_ON_FAILURE", "children": [ { "type": "leaf", "behavior": "/datum/bt_node/ai_behavior/basic_melee_attack", "vars": { "target_key": "BB_CURRENT_TARGET", "targeting_strategy": "BB_TARGETING_STRATEGY", "hiding_location_key": "BB_CURRENT_TARGET_HIDING_LOCATION" } } ] }, { "type": "leaf", "behavior": "/datum/bt_node/ai_behavior/move_to_target", "vars": { "target_key": "BB_CURRENT_TARGET", "required_dist": 1, "finish_on_arrival": true, "movement_type": "/datum/ai_movement/basic_avoidance" } } ] } }, { "type": "subtree", "subtype": "/datum/bt_node/subtree/bot_patrol" } ] }, { "type": "leaf", "behavior": "/datum/bt_node/ai_behavior/acquire_target/update_combat_targets", "vars": { "target_key": "BB_CURRENT_TARGET", "targeting_strategy": "BB_TARGETING_STRATEGY", "hiding_location_key": "BB_CURRENT_TARGET_HIDING_LOCATION" } } ] } ] }