{ "dm_type": "/datum/ai_controller/basic_controller/mothroach", "type": "selector", "children": [ { "type": "decorator", "decorator": "/datum/bt_node/decorator/override_id_set", "vars": { "observer_abort": "BT_ABORT_LOWER_PRIORITY", "override_id": "SUBPLAN_ID_PET_COMMAND" }, "child": { "type": "subtree", "subtype": "/datum/bt_node/subtree", "override_id": "SUBPLAN_ID_PET_COMMAND" } }, { "type": "parallel", "failure_policy": "BT_PARALLEL_FAILURE_CHILD_ONE", "success_policy": "BT_PARALLEL_SUCCESS_CHILD_ONE", "repeat_secondary": true, "repeat_secondary_delay": "1 SECONDS", "finish_on_primary": true, "children": [ { "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": { "key": "BB_CURRENT_TARGET", "observer_abort": "BT_ABORT_SELF" }, "child": { "type": "subtree", "subtype": "/datum/bt_node/subtree/run_away_from_target" } }, { "type": "subtree", "subtype": "/datum/bt_node/subtree/move_to_and_eat" }, { "type": "subtree", "subtype": "/datum/bt_node/subtree/random_walk" } ] }, { "type": "leaf", "behavior": "/datum/bt_node/ai_behavior/acquire_target/target_from_retaliate_list/nearest", "vars": { "target_key": "BB_CURRENT_TARGET", "targeting_strategy": "BB_FLEE_TARGETING_STRATEGY", "hiding_location_key": "BB_CURRENT_TARGET_HIDING_LOCATION" } }, { "type": "subtree", "subtype": "/datum/bt_node/subtree/find_food" } ] }, { "type": "leaf", "behavior": "/datum/bt_node/ai_behavior/random_speech/mothroach" } ] } ] }