From 3a8f35b19e43850c7afa376c7684fce9f4d3177d Mon Sep 17 00:00:00 2001 From: yvmou_ Date: Fri, 2 Oct 2026 03:36:50 +0800 Subject: [PATCH] demo\ai --- demo/ai/trees/01_agent_melee_simple.tres | 8 +++---- demo/ai/trees/02_agent_charger.tres | 10 ++++---- demo/ai/trees/03_agent_imp.tres | 10 ++++---- demo/ai/trees/04_agent_skirmisher.tres | 18 +++++++-------- demo/ai/trees/05_agent_ranged.tres | 20 ++++++++-------- demo/ai/trees/06_agent_melee_combo.tres | 18 +++++++-------- demo/ai/trees/07_agent_melee_nuanced.tres | 26 ++++++++++----------- demo/ai/trees/08_agent_demon.tres | 22 +++++++++--------- demo/ai/trees/09_agent_summoner.tres | 28 +++++++++++------------ 9 files changed, 80 insertions(+), 80 deletions(-) diff --git a/demo/ai/trees/01_agent_melee_simple.tres b/demo/ai/trees/01_agent_melee_simple.tres index b0b58a7..2aa28bb 100644 --- a/demo/ai/trees/01_agent_melee_simple.tres +++ b/demo/ai/trees/01_agent_melee_simple.tres @@ -37,8 +37,8 @@ var/var5/hint = 0 var/var5/hint_string = "" [sub_resource type="BBNode" id="BBNode_nrd4b"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_qiw21"] animation_player = SubResource("BBNode_nrd4b") @@ -54,8 +54,8 @@ custom_name = "Pause before action" children = [SubResource("BTPlayAnimation_qiw21"), SubResource("BTRandomWait_xlud8")] [sub_resource type="BBNode" id="BBNode_wpj6d"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_olf37"] animation_player = SubResource("BBNode_wpj6d") @@ -70,8 +70,8 @@ group = &"player" script = ExtResource("2_h5db5") [sub_resource type="BTTimeLimit" id="BTTimeLimit_xek5v"] -children = [SubResource("BTAction_a4jqi")] time_limit = 2.0 +children = [SubResource("BTAction_a4jqi")] [sub_resource type="BTSequence" id="BTSequence_1xfnq"] custom_name = "Pursue player" @@ -84,8 +84,8 @@ script = ExtResource("3_bpmfp") duration = 0.1 [sub_resource type="BBNode" id="BBNode_s8evu"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_ppmxd"] await_completion = 2.0 diff --git a/demo/ai/trees/02_agent_charger.tres b/demo/ai/trees/02_agent_charger.tres index ba59c7e..a628e22 100644 --- a/demo/ai/trees/02_agent_charger.tres +++ b/demo/ai/trees/02_agent_charger.tres @@ -19,8 +19,8 @@ var/charge_speed/hint = 1 var/charge_speed/hint_string = "10,1000,10" [sub_resource type="BBNode" id="BBNode_yrurg"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_ha2ag"] animation_player = SubResource("BBNode_yrurg") @@ -45,8 +45,8 @@ range_max = 600 position_var = &"flank_pos" [sub_resource type="BBNode" id="BBNode_xh3wr"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_h0poo"] animation_player = SubResource("BBNode_xh3wr") @@ -58,8 +58,8 @@ script = ExtResource("3_u2ra5") target_position_var = &"flank_pos" [sub_resource type="BTTimeLimit" id="BTTimeLimit_is5ag"] -children = [SubResource("BTAction_87mi0")] time_limit = 3.0 +children = [SubResource("BTAction_87mi0")] [sub_resource type="BTSequence" id="BTSequence_p6pgg"] custom_name = "Flank target" @@ -69,8 +69,8 @@ children = [SubResource("BTAction_pp23y"), SubResource("BTAction_pmvd0"), SubRes script = ExtResource("4_xwjl7") [sub_resource type="BBNode" id="BBNode_bfijg"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_4okoy"] await_completion = 2.0 @@ -86,8 +86,8 @@ custom_name = "Anticipation" children = [SubResource("BTAction_q5g4a"), SubResource("BTPlayAnimation_4okoy"), SubResource("BTWait_ovu3r")] [sub_resource type="BBNode" id="BBNode_kpp70"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_8s1wq"] animation_player = SubResource("BBNode_kpp70") diff --git a/demo/ai/trees/03_agent_imp.tres b/demo/ai/trees/03_agent_imp.tres index 292783d..6f85ac0 100644 --- a/demo/ai/trees/03_agent_imp.tres +++ b/demo/ai/trees/03_agent_imp.tres @@ -14,8 +14,8 @@ var/speed/hint = 1 var/speed/hint_string = "10,1000,10" [sub_resource type="BBNode" id="BBNode_3y70b"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_klk26"] animation_player = SubResource("BBNode_3y70b") @@ -37,8 +37,8 @@ children = [SubResource("BTPlayAnimation_klk26"), SubResource("BTAction_chmiy"), children = [SubResource("BTSequence_k184c")] [sub_resource type="BBNode" id="BBNode_nrd4b"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_qiw21"] animation_player = SubResource("BBNode_nrd4b") @@ -54,8 +54,8 @@ custom_name = "Pause before action" children = [SubResource("BTPlayAnimation_qiw21"), SubResource("BTRandomWait_xlud8")] [sub_resource type="BBNode" id="BBNode_wpj6d"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_olf37"] animation_player = SubResource("BBNode_wpj6d") @@ -70,8 +70,8 @@ group = &"player" script = ExtResource("4_jlgat") [sub_resource type="BTTimeLimit" id="BTTimeLimit_xek5v"] -children = [SubResource("BTAction_a4jqi")] time_limit = 2.0 +children = [SubResource("BTAction_a4jqi")] [sub_resource type="BTSequence" id="BTSequence_1xfnq"] custom_name = "Pursue player" @@ -84,8 +84,8 @@ script = ExtResource("5_o4ggh") duration = 0.1 [sub_resource type="BBNode" id="BBNode_s8evu"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_ppmxd"] await_completion = 2.0 diff --git a/demo/ai/trees/04_agent_skirmisher.tres b/demo/ai/trees/04_agent_skirmisher.tres index 2a5d6a4..824bed8 100644 --- a/demo/ai/trees/04_agent_skirmisher.tres +++ b/demo/ai/trees/04_agent_skirmisher.tres @@ -30,8 +30,8 @@ script = ExtResource("1_2883n") group = &"player" [sub_resource type="BBNode" id="BBNode_nrd4b"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_qiw21"] animation_player = SubResource("BBNode_nrd4b") @@ -54,8 +54,8 @@ script = ExtResource("5_p5dih") distance_max = 300.0 [sub_resource type="BBNode" id="BBNode_7c0g0"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_sty80"] animation_player = SubResource("BBNode_7c0g0") @@ -67,8 +67,8 @@ speed = 1.2 script = ExtResource("2_lpckh") [sub_resource type="BTTimeLimit" id="BTTimeLimit_lkphr"] -children = [SubResource("BTAction_jryg6")] time_limit = 1.0 +children = [SubResource("BTAction_jryg6")] [sub_resource type="BTAction" id="BTAction_kidxn"] script = ExtResource("4_57x51") @@ -77,8 +77,8 @@ script = ExtResource("4_57x51") duration = 0.2 [sub_resource type="BBNode" id="BBNode_kcqly"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_hngi6"] await_completion = 2.0 @@ -93,16 +93,16 @@ custom_name = "Melee attack" children = [SubResource("BTCondition_uk4dg"), SubResource("BTPlayAnimation_sty80"), SubResource("BTTimeLimit_lkphr"), SubResource("BTAction_kidxn"), SubResource("BTWait_tadkc"), SubResource("BTPlayAnimation_hngi6"), SubResource("BTWait_cm8jy")] [sub_resource type="BTCooldown" id="BTCooldown_ksvfy"] -children = [SubResource("BTSequence_ww5v2")] duration = 2.0 +children = [SubResource("BTSequence_ww5v2")] [sub_resource type="BTCondition" id="BTCondition_fpufi"] script = ExtResource("5_p5dih") distance_max = 300.0 [sub_resource type="BBNode" id="BBNode_3iqcf"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_ee0ff"] animation_player = SubResource("BBNode_3iqcf") @@ -115,15 +115,15 @@ script = ExtResource("6_fkv0k") speed_var = &"slow_speed" [sub_resource type="BTTimeLimit" id="BTTimeLimit_cns1i"] -children = [SubResource("BTAction_4ye2y")] time_limit = 1.5 +children = [SubResource("BTAction_4ye2y")] [sub_resource type="BTAlwaysSucceed" id="BTAlwaysSucceed_nw4ep"] children = [SubResource("BTTimeLimit_cns1i")] [sub_resource type="BBNode" id="BBNode_81x7t"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_e61er"] animation_player = SubResource("BBNode_81x7t") @@ -137,8 +137,8 @@ custom_name = "Disengage" children = [SubResource("BTCondition_fpufi"), SubResource("BTPlayAnimation_ee0ff"), SubResource("BTAlwaysSucceed_nw4ep"), SubResource("BTPlayAnimation_e61er"), SubResource("BTRandomWait_jw0cm")] [sub_resource type="BBNode" id="BBNode_wpj6d"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_olf37"] animation_player = SubResource("BBNode_wpj6d") diff --git a/demo/ai/trees/05_agent_ranged.tres b/demo/ai/trees/05_agent_ranged.tres index e78c1c0..35ffe9c 100644 --- a/demo/ai/trees/05_agent_ranged.tres +++ b/demo/ai/trees/05_agent_ranged.tres @@ -19,8 +19,8 @@ var/run_speed/hint = 1 var/run_speed/hint_string = "10,1000,10" [sub_resource type="BBNode" id="BBNode_nrd4b"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_qiw21"] animation_player = SubResource("BBNode_nrd4b") @@ -40,8 +40,8 @@ custom_name = "Take a break" children = [SubResource("BTPlayAnimation_qiw21"), SubResource("BTRandomWait_xlud8"), SubResource("BTAction_c4cxo")] [sub_resource type="BBNode" id="BBNode_ok0r5"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_unftu"] animation_player = SubResource("BBNode_ok0r5") @@ -61,8 +61,8 @@ speed_var = &"run_speed" avoid_var = &"target" [sub_resource type="BTTimeLimit" id="BTTimeLimit_gadc6"] -children = [SubResource("BTAction_ycjun")] time_limit = 7.0 +children = [SubResource("BTAction_ycjun")] [sub_resource type="BTAction" id="BTAction_poqpu"] script = ExtResource("5_aexyq") @@ -72,12 +72,12 @@ custom_name = "Change flank" children = [SubResource("BTPlayAnimation_unftu"), SubResource("BTAction_op6l6"), SubResource("BTTimeLimit_gadc6"), SubResource("BTAction_poqpu")] [sub_resource type="BTCooldown" id="BTCooldown_2lneu"] -children = [SubResource("BTSequence_0gdqn")] duration = 7.0 +children = [SubResource("BTSequence_0gdqn")] [sub_resource type="BTProbability" id="BTProbability_6sydk"] -children = [SubResource("BTCooldown_2lneu")] run_chance = 0.3 +children = [SubResource("BTCooldown_2lneu")] [sub_resource type="BTAction" id="BTAction_kuuw2"] script = ExtResource("4_53hao") @@ -86,8 +86,8 @@ range_max = 1000 position_var = &"shoot_pos" [sub_resource type="BBNode" id="BBNode_kc64r"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_panch"] animation_player = SubResource("BBNode_kc64r") @@ -109,8 +109,8 @@ script = ExtResource("2_a8qex") tolerance = 150.0 [sub_resource type="BBNode" id="BBNode_s6vt4"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_qa8jy"] animation_player = SubResource("BBNode_s6vt4") @@ -120,8 +120,8 @@ blend = 0.1 [sub_resource type="BTWait" id="BTWait_gbcyb"] [sub_resource type="BBNode" id="BBNode_qkfqt"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_0ktds"] await_completion = 1.0 @@ -130,8 +130,8 @@ animation_name = &"throw" blend = 0.05 [sub_resource type="BBNode" id="BBNode_1yxc5"] -resource_name = "." saved_value = NodePath(".") +resource_name = "." [sub_resource type="BTCallMethod" id="BTCallMethod_yx4fk"] node = SubResource("BBNode_1yxc5") @@ -146,8 +146,8 @@ children = [SubResource("BTPlayAnimation_qa8jy"), SubResource("BTWait_gbcyb"), S metadata/_weight_ = 1.0 [sub_resource type="BTRepeat" id="BTRepeat_g08ia"] -children = [SubResource("BTSequence_rgbq3")] times = 3 +children = [SubResource("BTSequence_rgbq3")] [sub_resource type="BTSequence" id="BTSequence_lhg7f"] custom_name = "Get into position" diff --git a/demo/ai/trees/06_agent_melee_combo.tres b/demo/ai/trees/06_agent_melee_combo.tres index c29eb6b..e19d196 100644 --- a/demo/ai/trees/06_agent_melee_combo.tres +++ b/demo/ai/trees/06_agent_melee_combo.tres @@ -19,8 +19,8 @@ var/charge_speed/hint = 0 var/charge_speed/hint_string = "" [sub_resource type="BBNode" id="BBNode_nrd4b"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_qiw21"] animation_player = SubResource("BBNode_nrd4b") @@ -43,8 +43,8 @@ children = [SubResource("BTPlayAnimation_qiw21"), SubResource("BTRandomWait_xlud script = ExtResource("2_5nwkp") [sub_resource type="BBNode" id="BBNode_wpj6d"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_olf37"] animation_player = SubResource("BBNode_wpj6d") @@ -65,8 +65,8 @@ children = [SubResource("BTAction_85keo"), SubResource("BTPlayAnimation_olf37"), script = ExtResource("4_hi228") [sub_resource type="BBNode" id="BBNode_giv5l"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_usdja"] animation_player = SubResource("BBNode_giv5l") @@ -77,8 +77,8 @@ blend = 0.1 duration = 0.4 [sub_resource type="BBNode" id="BBNode_s8evu"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_ppmxd"] await_completion = 2.0 @@ -90,15 +90,15 @@ script = ExtResource("5_au5yc") speed_var = &"charge_speed" [sub_resource type="BTParallel" id="BTParallel_ec2e3"] -children = [SubResource("BTPlayAnimation_ppmxd"), SubResource("BTAction_u22bc")] num_successes_required = 2 +children = [SubResource("BTPlayAnimation_ppmxd"), SubResource("BTAction_u22bc")] [sub_resource type="BTWait" id="BTWait_c0lo0"] duration = 0.2 [sub_resource type="BBNode" id="BBNode_3oljv"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_q4uis"] await_completion = 2.0 @@ -110,15 +110,15 @@ script = ExtResource("5_au5yc") speed_var = &"charge_speed" [sub_resource type="BTParallel" id="BTParallel_thojy"] -children = [SubResource("BTPlayAnimation_q4uis"), SubResource("BTAction_yuxl3")] num_successes_required = 2 +children = [SubResource("BTPlayAnimation_q4uis"), SubResource("BTAction_yuxl3")] [sub_resource type="BTWait" id="BTWait_y3pmv"] duration = 0.2 [sub_resource type="BBNode" id="BBNode_ot40l"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_ye5pt"] await_completion = 2.0 @@ -130,8 +130,8 @@ script = ExtResource("5_au5yc") speed_var = &"charge_speed" [sub_resource type="BTParallel" id="BTParallel_qmdfb"] -children = [SubResource("BTPlayAnimation_ye5pt"), SubResource("BTAction_rwp18")] num_successes_required = 2 +children = [SubResource("BTPlayAnimation_ye5pt"), SubResource("BTAction_rwp18")] [sub_resource type="BTWait" id="BTWait_nxyko"] duration = 0.5 diff --git a/demo/ai/trees/07_agent_melee_nuanced.tres b/demo/ai/trees/07_agent_melee_nuanced.tres index d2933a7..d2b51e2 100644 --- a/demo/ai/trees/07_agent_melee_nuanced.tres +++ b/demo/ai/trees/07_agent_melee_nuanced.tres @@ -19,8 +19,8 @@ var/flank_speed/hint = 1 var/flank_speed/hint_string = "10,1000,10" [sub_resource type="BBNode" id="BBNode_nrd4b"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_qiw21"] animation_player = SubResource("BBNode_nrd4b") @@ -40,8 +40,8 @@ custom_name = "Pause before action" children = [SubResource("BTPlayAnimation_qiw21"), SubResource("BTRandomWait_xlud8"), SubResource("BTAction_c4cxo")] [sub_resource type="BBNode" id="BBNode_kc64r"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_panch"] animation_player = SubResource("BBNode_kc64r") @@ -74,13 +74,13 @@ children = [SubResource("BTPlayAnimation_panch"), SubResource("BTAction_6e48s"), metadata/_weight_ = 1.0 [sub_resource type="BTCooldown" id="BTCooldown_skw41"] -children = [SubResource("BTSequence_lhg7f")] duration = 6.0 +children = [SubResource("BTSequence_lhg7f")] metadata/_weight_ = 2.0 [sub_resource type="BBNode" id="BBNode_wpj6d"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_olf37"] animation_player = SubResource("BBNode_wpj6d") @@ -91,8 +91,8 @@ blend = 0.1 script = ExtResource("5_r1ou0") [sub_resource type="BTTimeLimit" id="BTTimeLimit_xek5v"] -children = [SubResource("BTAction_a4jqi")] time_limit = 2.0 +children = [SubResource("BTAction_a4jqi")] [sub_resource type="BTAction" id="BTAction_kidxn"] script = ExtResource("4_mvsyw") @@ -101,8 +101,8 @@ script = ExtResource("4_mvsyw") duration = 0.1 [sub_resource type="BBNode" id="BBNode_g8qww"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_a8yqu"] await_completion = 2.0 @@ -113,8 +113,8 @@ animation_name = &"attack_2" duration = 0.1 [sub_resource type="BBNode" id="BBNode_rfop0"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_8oyw6"] await_completion = 2.0 @@ -132,8 +132,8 @@ range_min = 350 range_max = 600 [sub_resource type="BBNode" id="BBNode_cx111"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_mfbeu"] animation_player = SubResource("BBNode_cx111") @@ -144,15 +144,15 @@ blend = 0.1 script = ExtResource("3_svwk8") [sub_resource type="BTTimeLimit" id="BTTimeLimit_tidwl"] -children = [SubResource("BTAction_6nx58")] time_limit = 3.0 +children = [SubResource("BTAction_6nx58")] [sub_resource type="BTAction" id="BTAction_8q20y"] script = ExtResource("4_mvsyw") [sub_resource type="BBNode" id="BBNode_s6vt4"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_qa8jy"] animation_player = SubResource("BBNode_s6vt4") @@ -163,8 +163,8 @@ speed = 0.7 [sub_resource type="BTWait" id="BTWait_gbcyb"] [sub_resource type="BBNode" id="BBNode_qkfqt"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_0ktds"] await_completion = 1.0 @@ -173,8 +173,8 @@ animation_name = &"throw" blend = 0.05 [sub_resource type="BBNode" id="BBNode_1yxc5"] -resource_name = "." saved_value = NodePath(".") +resource_name = "." [sub_resource type="BTCallMethod" id="BTCallMethod_yx4fk"] node = SubResource("BBNode_1yxc5") @@ -189,8 +189,8 @@ children = [SubResource("BTAction_mf87t"), SubResource("BTPlayAnimation_mfbeu"), metadata/_weight_ = 2.0 [sub_resource type="BTProbabilitySelector" id="BTProbabilitySelector_rjsiq"] -children = [SubResource("BTCooldown_skw41"), SubResource("BTSequence_1xfnq"), SubResource("BTSequence_rgbq3")] abort_on_failure = true +children = [SubResource("BTCooldown_skw41"), SubResource("BTSequence_1xfnq"), SubResource("BTSequence_rgbq3")] [sub_resource type="BTSequence" id="BTSequence_pxl2k"] custom_name = "Main" diff --git a/demo/ai/trees/08_agent_demon.tres b/demo/ai/trees/08_agent_demon.tres index 1070df2..31f0b58 100644 --- a/demo/ai/trees/08_agent_demon.tres +++ b/demo/ai/trees/08_agent_demon.tres @@ -15,8 +15,8 @@ var/speed/hint = 1 var/speed/hint_string = "10,1000,10" [sub_resource type="BBNode" id="BBNode_lpri5"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_p3e7a"] animation_player = SubResource("BBNode_lpri5") @@ -32,8 +32,8 @@ custom_name = "Chill" children = [SubResource("BTPlayAnimation_p3e7a"), SubResource("BTRandomWait_j6cjm")] [sub_resource type="BTCooldown" id="BTCooldown_oms7a"] -children = [SubResource("BTSequence_5thv4")] trigger_on_failure = true +children = [SubResource("BTSequence_5thv4")] [sub_resource type="BTAction" id="BTAction_ohfp7"] script = ExtResource("1_ce4la") @@ -47,8 +47,8 @@ distance_max = 150.0 script = ExtResource("3_3mw7l") [sub_resource type="BBNode" id="BBNode_c4nfu"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_yytkn"] await_completion = 3.0 @@ -57,8 +57,8 @@ animation_name = &"attack_3" blend = 0.1 [sub_resource type="BTCooldown" id="BTCooldown_ejg6q"] -children = [SubResource("BTPlayAnimation_yytkn")] duration = 3.0 +children = [SubResource("BTPlayAnimation_yytkn")] [sub_resource type="BTSequence" id="BTSequence_eikr4"] custom_name = "Melee" @@ -72,8 +72,8 @@ distance_max = 300.0 script = ExtResource("3_3mw7l") [sub_resource type="BBNode" id="BBNode_iv62h"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_wnaul"] animation_player = SubResource("BBNode_iv62h") @@ -85,8 +85,8 @@ speed = -1.0 script = ExtResource("4_6dr32") [sub_resource type="BTTimeLimit" id="BTTimeLimit_wm5g2"] -children = [SubResource("BTAction_h2efl")] time_limit = 1.0 +children = [SubResource("BTAction_h2efl")] [sub_resource type="BTSequence" id="BTSequence_wh4dl"] custom_name = "Back away" @@ -96,8 +96,8 @@ children = [SubResource("BTCondition_h75v8"), SubResource("BTAction_wpt7j"), Sub custom_name = "Get into position" [sub_resource type="BBNode" id="BBNode_edmui"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_vjtpq"] animation_player = SubResource("BBNode_edmui") @@ -121,8 +121,8 @@ custom_name = "Short break before action" script = ExtResource("3_3mw7l") [sub_resource type="BBNode" id="BBNode_lh25u"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_vcjeq"] animation_player = SubResource("BBNode_lh25u") @@ -136,8 +136,8 @@ duration = 0.2 custom_name = "Spit fire!" [sub_resource type="BBNode" id="BBNode_cqw71"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_214yn"] await_completion = 3.0 @@ -146,8 +146,8 @@ animation_name = &"spit" blend = 0.1 [sub_resource type="BBNode" id="BBNode_dv5b5"] -resource_name = "." saved_value = NodePath(".") +resource_name = "." [sub_resource type="BTCallMethod" id="BTCallMethod_lk7i6"] node = SubResource("BBNode_dv5b5") @@ -157,8 +157,8 @@ method = &"spit_fire" custom_name = "Wind down" [sub_resource type="BBNode" id="BBNode_m68ui"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_m7gyp"] animation_player = SubResource("BBNode_m68ui") diff --git a/demo/ai/trees/09_agent_summoner.tres b/demo/ai/trees/09_agent_summoner.tres index 2b6edbb..9c9970d 100644 --- a/demo/ai/trees/09_agent_summoner.tres +++ b/demo/ai/trees/09_agent_summoner.tres @@ -16,8 +16,8 @@ var/summon_cooldown/hint = 0 var/summon_cooldown/hint_string = "" [sub_resource type="BBNode" id="BBNode_b7euf"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_sot6a"] animation_player = SubResource("BBNode_b7euf") @@ -34,9 +34,9 @@ children = [SubResource("BTPlayAnimation_sot6a"), SubResource("BTRandomWait_0wc6 children = [SubResource("BTSequence_kwkxc")] [sub_resource type="BBVariant" id="BBVariant_y3x7n"] -resource_name = "6" -saved_value = 6 type = 2 +saved_value = 6 +resource_name = "6" [sub_resource type="BTCheckAgentProperty" id="BTCheckAgentProperty_olmdj"] property = &"summon_count" @@ -47,18 +47,18 @@ value = SubResource("BBVariant_y3x7n") custom_name = "Variable $summon_cooldown is updated by the Cooldown task below" [sub_resource type="BBVariant" id="BBVariant_hgde2"] -resource_name = "false" -saved_value = false type = 1 +saved_value = false +resource_name = "false" [sub_resource type="BTCheckVar" id="BTCheckVar_hc3o3"] -children = [SubResource("BTComment_ef6y0")] variable = &"summon_cooldown" value = SubResource("BBVariant_hgde2") +children = [SubResource("BTComment_ef6y0")] [sub_resource type="BBNode" id="BBNode_q8bei"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_6leni"] animation_player = SubResource("BBNode_q8bei") @@ -73,14 +73,14 @@ script = ExtResource("1_sgn0p") position_var = &"minion_pos" [sub_resource type="BBVariant" id="BBVariant_wfjwy"] -resource_name = "$minion_pos" +type = 5 value_source = 1 variable = &"minion_pos" -type = 5 +resource_name = "$minion_pos" [sub_resource type="BBNode" id="BBNode_v271m"] -resource_name = "." saved_value = NodePath(".") +resource_name = "." [sub_resource type="BTCallMethod" id="BTCallMethod_4ath5"] node = SubResource("BBNode_v271m") @@ -88,9 +88,9 @@ method = &"summon_minion" args = Array[BBVariant]([SubResource("BBVariant_wfjwy")]) [sub_resource type="BTCooldown" id="BTCooldown_25f70"] -children = [SubResource("BTCallMethod_4ath5")] duration = 6.0 cooldown_state_var = &"summon_cooldown" +children = [SubResource("BTCallMethod_4ath5")] [sub_resource type="BTWait" id="BTWait_tdhfn"] @@ -103,8 +103,8 @@ script = ExtResource("1_sgn0p") range_max = 700.0 [sub_resource type="BBNode" id="BBNode_w5fh2"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_qbxm8"] animation_player = SubResource("BBNode_w5fh2") @@ -115,12 +115,12 @@ blend = 0.1 script = ExtResource("2_pshl2") [sub_resource type="BTTimeLimit" id="BTTimeLimit_i05cm"] -children = [SubResource("BTAction_dfifw")] time_limit = 3.0 +children = [SubResource("BTAction_dfifw")] [sub_resource type="BBNode" id="BBNode_vinxt"] -resource_name = "AnimationPlayer" saved_value = NodePath("AnimationPlayer") +resource_name = "AnimationPlayer" [sub_resource type="BTPlayAnimation" id="BTPlayAnimation_t7drr"] animation_player = SubResource("BBNode_vinxt")