Working with scripts, testing new chair
This commit is contained in:
1 parent
4044acefb2
commit
49501e32ce
9 files changed
+63646
-88
No files matched your search
@@ -27,19 +27,26 @@ end
|
||||
game_api.set_darklands_callbacks(
|
||||
nil,
|
||||
function()
|
||||
print("Lua script start_darklands_transition callback")
|
||||
game_api.start_cutscene("darklands_exit001")
|
||||
game_api.setIntValue("day", 1)
|
||||
game_api.setIntValue("need_sleep", 1)
|
||||
local need_sleep = game_api.getIntValue("need_sleep")
|
||||
print("Lua script need sleep =")
|
||||
print(need_sleep)
|
||||
print("Lua script set need sleep 1")
|
||||
game_api.set_player_hp(10)
|
||||
end
|
||||
)
|
||||
|
||||
|
||||
game_api.set_location_callbacks(
|
||||
function()
|
||||
print("Enter location uni exterior")
|
||||
local hp = game_api.getIntValue("player_hp")
|
||||
game_api.set_player_hp(hp)
|
||||
end,
|
||||
function()
|
||||
local hp = game_api.get_player_hp()
|
||||
game_api.setIntValue("player_hp", hp)
|
||||
end
|
||||
)
|
||||
|
||||
game_api.set_trigger_zone_callbacks("darklands_exit001",
|
||||
darklands_exit001_enter_callback,
|
||||
nil
|
||||
|
||||
Reference in new issue
Block a user