Working on scripts

This commit is contained in:
Vladislav Khorev committed 2026-05-17 14:39:02 +03:00
1 parent c086fe1ef0
commit 4044acefb2
35 files changed
+107190 -185

No files matched your search

+13
View File
@@ -59,5 +59,18 @@ game_api.set_trigger_zone_callbacks("ladder_zone001",
nil
)
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
game_api.start_dialogue("dialog_no_sleep001")
else
game_api.start_cutscene("sleep_cutscene001")
game_api.setIntValue("need_sleep", 0)
game_api.set_player_hp(200)
end
end
print("Lua script loaded successfully--!")