Working on navigation
This commit is contained in:
1 parent
87fb6d4655
commit
f52b6872b0
17 files changed
+9030
-469
No files matched your search
@@ -1,4 +1,3 @@
|
||||
|
||||
print("Lua script loaded successfully!")
|
||||
|
||||
game_api.set_location_callbacks(
|
||||
@@ -14,62 +13,62 @@ game_api.set_location_callbacks(
|
||||
)
|
||||
|
||||
function darklands_exit001_enter_callback()
|
||||
if game_api.is_darklands() then
|
||||
print("Lua script start_darklands_transition")
|
||||
game_api.start_darklands_transition()
|
||||
end
|
||||
if game_api.is_darklands() then
|
||||
print("Lua script start_darklands_transition")
|
||||
game_api.start_darklands_transition()
|
||||
end
|
||||
end
|
||||
|
||||
function on_container_clicked()
|
||||
local player_container_aware = game_api.getIntValue("player_container_aware")
|
||||
local player_has_coursework = game_api.getIntValue("player_has_coursework")
|
||||
if (player_has_coursework == 1) then
|
||||
game_api.start_dialogue("dialog_contaier003")
|
||||
elseif player_container_aware == 1 then
|
||||
game_api.start_dialogue("dialog_contaier002")
|
||||
else
|
||||
game_api.start_dialogue("dialog_contaier001")
|
||||
end
|
||||
local player_container_aware = game_api.getIntValue("player_container_aware")
|
||||
local player_has_coursework = game_api.getIntValue("player_has_coursework")
|
||||
if (player_has_coursework == 1) then
|
||||
game_api.start_dialogue("dialog_contaier003")
|
||||
elseif player_container_aware == 1 then
|
||||
game_api.start_dialogue("dialog_contaier002")
|
||||
else
|
||||
game_api.start_dialogue("dialog_contaier001")
|
||||
end
|
||||
end
|
||||
|
||||
function dialog_contaier002_get_coursework()
|
||||
game_api.pickup_item("coursework")
|
||||
game_api.quest_set_objective_completed("ghost_coursework", "ghost_coursework_find")
|
||||
game_api.quest_set_objective_completed("ghost_coursework", "ghost_coursework_find")
|
||||
game_api.pickup_item("coursework")
|
||||
game_api.quest_set_objective_completed("ghost_coursework", "ghost_coursework_find")
|
||||
game_api.quest_set_objective_completed("ghost_coursework", "ghost_coursework_find")
|
||||
end
|
||||
|
||||
game_api.set_enter_night_callback(
|
||||
function()
|
||||
game_api.start_dialogue("dialog_video001")
|
||||
end
|
||||
function()
|
||||
game_api.start_dialogue("dialog_video001")
|
||||
end
|
||||
)
|
||||
|
||||
function on_darklands_over()
|
||||
game_api.set_player_hp(10)
|
||||
game_api.set_player_hp(10)
|
||||
end
|
||||
|
||||
game_api.set_darklands_callbacks(
|
||||
nil,
|
||||
function()
|
||||
game_api.start_cutscene("darklands_exit001")
|
||||
print("Setting to day 1----")
|
||||
game_api.setIntValue("day", 1)
|
||||
game_api.set_dawn()
|
||||
game_api.start_cutscene("darklands_exit001")
|
||||
print("Setting to day 1----")
|
||||
game_api.setIntValue("day", 1)
|
||||
game_api.set_dawn()
|
||||
end
|
||||
)
|
||||
|
||||
|
||||
game_api.set_location_callbacks(
|
||||
function()
|
||||
print("Enter location uni exterior")
|
||||
print("Enter location uni exterior")
|
||||
local hp = game_api.getFloatValue("player_hp")
|
||||
game_api.set_player_hp(hp)
|
||||
game_api.set_teleport_active(0, false)
|
||||
game_api.set_player_hp(hp)
|
||||
game_api.set_teleport_active(0, false)
|
||||
end,
|
||||
function()
|
||||
print("Exit location uni exterior")
|
||||
print("Exit location uni exterior")
|
||||
local hp = game_api.get_player_hp()
|
||||
game_api.setFloatValue("player_hp", hp)
|
||||
game_api.setFloatValue("player_hp", hp)
|
||||
end
|
||||
)
|
||||
|
||||
@@ -88,16 +87,15 @@ game_api.set_trigger_zone_callbacks("darklands_exit003",
|
||||
|
||||
|
||||
function taxi_zone001_enter_callback()
|
||||
game_api.start_dialogue("dialog_taxi001")
|
||||
game_api.set_trigger_zone_enabled(0, false)
|
||||
game_api.start_dialogue("dialog_taxi001")
|
||||
game_api.set_trigger_zone_enabled(0, false)
|
||||
end
|
||||
|
||||
|
||||
game_api.set_call_taxi_callback(
|
||||
function()
|
||||
game_api.set_teleport_active(0, true)
|
||||
game_api.set_trigger_zone_enabled(0, false)
|
||||
end
|
||||
function()
|
||||
game_api.set_teleport_active(0, true)
|
||||
game_api.set_trigger_zone_enabled(0, false)
|
||||
end
|
||||
)
|
||||
|
||||
|
||||
@@ -105,4 +103,3 @@ game_api.set_trigger_zone_callbacks("taxi_zone001",
|
||||
taxi_zone001_enter_callback,
|
||||
nil
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user