Files
experiment-adventure-ai/scripts/test_dialogue.gd
2025-08-01 20:07:40 -07:00

11 lines
404 B
GDScript

extends Node2D
func _ready():
# Find the character and trigger dialogue after a short delay
var character = $Character/BaseCharacter
print("HELLO AND HERE")
if character:
# Wait a bit to let the scene load properly, then trigger dialogue
await get_tree().create_timer(1.0).timeout
character.trigger_dialogue("Hello! This is a test dialogue line that will reveal character by character.", 5.0)