summaryrefslogtreecommitdiffstats
path: root/dialogues
diff options
context:
space:
mode:
Diffstat (limited to 'dialogues')
-rw-r--r--dialogues/test1.gd6
1 files changed, 4 insertions, 2 deletions
diff --git a/dialogues/test1.gd b/dialogues/test1.gd
index e7752b3..d411484 100644
--- a/dialogues/test1.gd
+++ b/dialogues/test1.gd
@@ -5,10 +5,12 @@ extends Dialogue
@onready var npc: Node2D = parent.get_node("DialogueTestNPC")
func _ready():
- player.request_state_init()
+ player.request_state_forced("DROP")
await say(player, "hello")
await say(npc, "well hi")
+ var answer = await ask(npc, "buy or sell?", ["buy", "sell"])
+ await say(npc, "it's %s time" % answer)
player.request_state_normal()
- print("dialogue done")
+ print("dialogue done, answer %s" % answer)