TinyAdventure/ai/trees/pug.tres

107 lines
3.8 KiB
Plaintext

[gd_resource type="BehaviorTree" load_steps=30 format=3 uid="uid://blccr23qjixws"]
[ext_resource type="BehaviorTree" uid="uid://caxmpcyhpt6em" path="res://ai/trees/wander.tres" id="1_rsg0c"]
[ext_resource type="Script" path="res://ai/tasks/find_target_by_name.gd" id="1_v4edy"]
[ext_resource type="Script" path="res://ai/tasks/navigate_to_location.gd" id="2_k36i0"]
[ext_resource type="Script" path="res://ai/tasks/get_target_location.gd" id="2_ytv0s"]
[ext_resource type="Script" path="res://ai/tasks/calc_distance_to_location.gd" id="3_wfof3"]
[ext_resource type="Script" path="res://ai/tasks/check_target_node_visible.gd" id="4_dskwm"]
[ext_resource type="Script" path="res://ai/tasks/look_at_location.gd" id="5_s0awd"]
[sub_resource type="BlackboardPlan" id="BlackboardPlan_yg732"]
[sub_resource type="BTAction" id="BTAction_u48vm"]
script = ExtResource("1_v4edy")
target_name = "Player"
output_var = &"player_node"
[sub_resource type="BTAction" id="BTAction_iv8pd"]
script = ExtResource("2_ytv0s")
max_distance = 1.0
target_var = &"player_node"
output_var = &"player_location"
[sub_resource type="BTAction" id="BTAction_n4o2j"]
script = ExtResource("3_wfof3")
target_location_var = &"player_location"
output_var = &"player_distance"
[sub_resource type="BTAction" id="BTAction_dafbx"]
script = ExtResource("1_v4edy")
target_name = "Timmy"
output_var = &"owner_node"
[sub_resource type="BTAction" id="BTAction_byeb5"]
script = ExtResource("2_ytv0s")
max_distance = 1.0
target_var = &"owner_node"
output_var = &"owner_location"
[sub_resource type="BTAction" id="BTAction_6cy6k"]
script = ExtResource("3_wfof3")
target_location_var = &"owner_location"
output_var = &"owner_distance"
[sub_resource type="BBVariant" id="BBVariant_doyi6"]
type = 3
saved_value = 3.0
resource_name = "3"
[sub_resource type="BTCheckVar" id="BTCheckVar_nbtfc"]
variable = &"owner_distance"
check_type = 2
value = SubResource("BBVariant_doyi6")
[sub_resource type="BTAction" id="BTAction_6rb0n"]
script = ExtResource("2_k36i0")
target_var = &"owner_location"
[sub_resource type="BTSequence" id="BTSequence_bn3or"]
custom_name = "WanderNearTimmy"
children = [SubResource("BTCheckVar_nbtfc"), SubResource("BTAction_6rb0n")]
[sub_resource type="BBVariant" id="BBVariant_55npk"]
type = 3
saved_value = 5.0
resource_name = "5"
[sub_resource type="BTCheckVar" id="BTCheckVar_0y1pg"]
variable = &"player_distance"
check_type = 2
value = SubResource("BBVariant_55npk")
[sub_resource type="BTAction" id="BTAction_07lxa"]
script = ExtResource("4_dskwm")
target_node_var = &"player_node"
[sub_resource type="BTAction" id="BTAction_12d23"]
script = ExtResource("5_s0awd")
target_location_var = &"player_location"
[sub_resource type="BTAction" id="BTAction_euy6e"]
script = ExtResource("2_k36i0")
target_var = &"player_location"
[sub_resource type="BTParallel" id="BTParallel_ocd8a"]
children = [SubResource("BTAction_12d23"), SubResource("BTAction_euy6e")]
[sub_resource type="BTSequence" id="BTSequence_jneh0"]
custom_name = "FollowPlayerOrWanderSequence"
children = [SubResource("BTCheckVar_0y1pg"), SubResource("BTAction_07lxa"), SubResource("BTParallel_ocd8a")]
[sub_resource type="BlackboardPlan" id="BlackboardPlan_byw02"]
[sub_resource type="BTSubtree" id="BTSubtree_clqa0"]
subtree = ExtResource("1_rsg0c")
blackboard_plan = SubResource("BlackboardPlan_byw02")
[sub_resource type="BTSelector" id="BTSelector_dolqa"]
children = [SubResource("BTSequence_bn3or"), SubResource("BTSequence_jneh0"), SubResource("BTSubtree_clqa0")]
[sub_resource type="BTSequence" id="BTSequence_y2c1w"]
children = [SubResource("BTAction_u48vm"), SubResource("BTAction_iv8pd"), SubResource("BTAction_n4o2j"), SubResource("BTAction_dafbx"), SubResource("BTAction_byeb5"), SubResource("BTAction_6cy6k"), SubResource("BTSelector_dolqa")]
[resource]
blackboard_plan = SubResource("BlackboardPlan_yg732")
root_task = SubResource("BTSequence_y2c1w")