blob: 9ef48b72723865f5a3058d2c025ff93c1bca0c8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)
|