More art assets and implemented names and jobs.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
@tool
|
||||
extends BTDecorator
|
||||
|
||||
|
||||
@export var activity : String = ""
|
||||
var prev_busy : bool
|
||||
var prev_activity : String
|
||||
|
||||
func _get_task_icon():
|
||||
return load("res://ai/icons/stopwatch.png")
|
||||
@@ -11,11 +12,15 @@ func _get_task_icon():
|
||||
func _enter() -> void:
|
||||
if agent.get("busy") != null:
|
||||
prev_busy = agent.busy
|
||||
prev_activity = agent.activity
|
||||
agent.busy = true
|
||||
if activity != "":
|
||||
agent.activity = activity
|
||||
|
||||
func _exit() -> void:
|
||||
if agent.get("busy") != null:
|
||||
agent.busy = prev_busy
|
||||
agent.activity = prev_activity
|
||||
|
||||
# Called to generate a display name for the task (requires @tool).
|
||||
func _generate_name() -> String:
|
||||
|
||||
@@ -47,6 +47,7 @@ children = [SubResource("BTSetVar_mtixs"), SubResource("BTAction_0kac8"), SubRes
|
||||
[sub_resource type="BTDecorator" id="BTDecorator_nqy1p"]
|
||||
children = [SubResource("BTSequence_s3kkm")]
|
||||
script = ExtResource("2_mtixs")
|
||||
activity = "Arriving"
|
||||
|
||||
[sub_resource type="BTRunLimit" id="BTRunLimit_1441p"]
|
||||
children = [SubResource("BTDecorator_nqy1p")]
|
||||
@@ -72,6 +73,7 @@ children = [SubResource("BTCondition_s18yy"), SubResource("BTAction_700su"), Sub
|
||||
[sub_resource type="BTDecorator" id="BTDecorator_700su"]
|
||||
children = [SubResource("BTSequence_1441p")]
|
||||
script = ExtResource("2_mtixs")
|
||||
activity = "Registering as an adventurer"
|
||||
|
||||
[sub_resource type="BTCondition" id="BTCondition_mtixs"]
|
||||
script = ExtResource("4_1441p")
|
||||
@@ -91,6 +93,7 @@ children = [SubResource("BTCondition_mtixs"), SubResource("BTAction_fe6jf"), Sub
|
||||
[sub_resource type="BTDecorator" id="BTDecorator_s18yy"]
|
||||
children = [SubResource("BTSequence_nqy1p")]
|
||||
script = ExtResource("2_mtixs")
|
||||
activity = "Getting a quest"
|
||||
|
||||
[sub_resource type="BTProbability" id="BTProbability_s3kkm"]
|
||||
children = [SubResource("BTDecorator_s18yy")]
|
||||
@@ -101,6 +104,7 @@ custom_name = "TODO: Make them talk to a random other adventurer"
|
||||
[sub_resource type="BTDecorator" id="BTDecorator_jq6fo"]
|
||||
children = [SubResource("BTComment_mwsop")]
|
||||
script = ExtResource("2_mtixs")
|
||||
activity = null
|
||||
|
||||
[sub_resource type="BTCooldown" id="BTCooldown_mtixs"]
|
||||
duration = 5.0
|
||||
|
||||
Reference in New Issue
Block a user