Added some dialogs for transitions
This commit is contained in:
1 parent
59e0b2d77a
commit
1d3bea452c
11 files changed
+224
-24
No files matched your search
@@ -90,10 +90,7 @@ game_api.set_trigger_zone_callbacks("ladder_zone001",
|
||||
)
|
||||
|
||||
function on_bed_sleep()
|
||||
local need_sleep = game_api.getIntValue("need_sleep")
|
||||
print("Lua script need sleep =")
|
||||
print(need_sleep)
|
||||
if (need_sleep==0) then
|
||||
if (not game_api.is_night()) then
|
||||
game_api.start_dialogue("dialog_no_sleep001")
|
||||
else
|
||||
game_api.start_cutscene("sleep_cutscene001")
|
||||
|
||||
Reference in new issue
Block a user