diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-12-04 23:40:19 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-12-04 23:40:19 +0200 |
| commit | 9e9f6984a500ec6eab02fa651eaaf3472c281c2a (patch) | |
| tree | fcf4e698f185897a1b60236d9fcaeab0e88ac246 /dialogues | |
| parent | 872d1f9200584973b2156102f0e7f03b3d271687 (diff) | |
Improve dialogue
Diffstat (limited to 'dialogues')
| -rw-r--r-- | dialogues/test1.gd | 6 |
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) |
