/tg/ Station 13 - Modules - Types

code/datums/ai/bots/bot_subtrees.dm

/datum/bt_node/ai_behavior/bot_searchSearches for a valid target in oview and sets a blackboard key when found. Subtypes override valid_target() to refine selection criteria. looking_for is an optional typecache pre-filter; pass null to check all atoms via valid_target().
/datum/bt_node/ai_behavior/bot_speechPerforms bot speech from a list of options
/datum/bt_node/ai_behavior/bot_interactInteract with an object. Could probably be moved to a generic behavior as the only unique thing is the blacklist.
/datum/bt_node/ai_behavior/bot_interact/keep_targetVariant that keeps the target key after interacting (caller must clear it).
/datum/bt_node/ai_behavior/find_delivery_beaconSearches GLOB.deliverybeacons for a beacon whose location matches the tag in tag_key, and sets it as target_key.
/datum/bt_node/ai_behavior/find_first_beacon_targetFind the closest beacon and set it as the target
/datum/bt_node/ai_behavior/find_next_beacon_targetFind the next beacon from a previous target and set it as the new target
/datum/bt_node/ai_behavior/arrive_at_beaconRecords the beacon as visited and clears the target key once the bot is on the same turf.
/datum/bt_node/ai_behavior/complete_summon_travelCompletes summon travel once the bot reaches the summon target's turf.
/datum/bt_node/ai_behavior/find_valid_authorityFind a valid authority to salute and set them as the target
/datum/bt_node/ai_behavior/salute_authoritySalute the authority /(o.o)
/datum/bt_node/subtree/bot_respond_to_summonTravel to BB_BOT_SUMMON_TARGET if set, completing when on the same turf.
/datum/bt_node/subtree/bot_salute_authoritySalute any commissioned officer in range
/datum/bt_node/subtree/bot_patrolPatrol to navbeacons in sequence when autopatrol is enabled and not on cooldown. Priority: travel to current target -> find next in chain -> find first (nearest) beacon.