summaryrefslogtreecommitdiffstats
path: root/cinematics/test1.gd
diff options
context:
space:
mode:
Diffstat (limited to 'cinematics/test1.gd')
-rw-r--r--cinematics/test1.gd15
1 files changed, 15 insertions, 0 deletions
diff --git a/cinematics/test1.gd b/cinematics/test1.gd
new file mode 100644
index 0000000..9ef48b7
--- /dev/null
+++ b/cinematics/test1.gd
@@ -0,0 +1,15 @@
+class_name CinematicTest1
+extends Cinematic
+
+func _ready():
+ var player: Player = get_room_node("Player")
+ var npc: Node2D = get_room_node("CinematicTestNPC")
+ 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, answer %s" % answer)