fix timetyper and dialog start by click on npc
This commit is contained in:
1 parent
422ff1fbe3
commit
db8b9b7a18
2 files changed
+16
-7
No files matched your search
+6
-1
@@ -32,7 +32,12 @@ end
|
||||
|
||||
function on_npc_interact(npc_index)
|
||||
print("[Lua] NPC interaction! Index: " .. tostring(npc_index))
|
||||
game_api.receive_npc_gift(npc_index)
|
||||
|
||||
if npc_index == 1 then
|
||||
game_api.start_dialogue("test_line_dialogue")
|
||||
else
|
||||
game_api.receive_npc_gift(npc_index)
|
||||
end
|
||||
end
|
||||
|
||||
print("Lua script loaded successfully!")
|
||||
Reference in new issue
Block a user