Fixing Android stuff
This commit is contained in:
1 parent
fc93eb6680
commit
2e749ed26e
20 files changed
+716
-32
No files matched your search
@@ -5,7 +5,6 @@ hall_door_opened = false
|
||||
teacher_door_opened = false
|
||||
|
||||
player_hold_book = false
|
||||
player_hold_knife = false
|
||||
teacher_arrived_to_library = false
|
||||
teacher_told_about_book = false
|
||||
|
||||
@@ -60,9 +59,10 @@ game_api.set_trigger_zone_callbacks("lection_hall_zone001",
|
||||
function knife_dialog_zone001_enter_callback()
|
||||
local day = game_api.getIntValue("day")
|
||||
local player_hold_key = game_api.getIntValue("player_hold_key")
|
||||
local player_hold_knife = game_api.getIntValue("player_hold_knife")
|
||||
|
||||
if (day == 0) then
|
||||
if (player_hold_knife == false) then
|
||||
if (player_hold_knife == 0) then
|
||||
local lection_is_over = game_api.getIntValue("lection_is_over")
|
||||
if lection_is_over == 1 then
|
||||
game_api.npc_stop_and_rotate_to_player(1)
|
||||
@@ -111,7 +111,8 @@ function on_knife_pickup()
|
||||
game_api.pickup_item("knife")
|
||||
game_api.deactivate_interactive_object("Knife001")
|
||||
game_api.set_npc_enabled(1, false)
|
||||
player_hold_knife = true
|
||||
game_api.setIntValue("player_hold_knife", 1)
|
||||
|
||||
game_api.set_trigger_zone_enabled(2, true)
|
||||
game_api.npc_walk_to(0, -4.57412, 0, 6.78495, on_teacher_arrived2)
|
||||
game_api.quest_set_objective_completed("aiperi_knife", "aiperi_knife_take")
|
||||
@@ -1171,8 +1172,9 @@ function callback_aiperi_chat()
|
||||
local aiperi_knife_aware = game_api.getIntValue("aiperi_knife_aware")
|
||||
local aiperi_talked_after_knife = game_api.getIntValue("aiperi_talked_after_knife")
|
||||
local lection_is_over = game_api.getIntValue("lection_is_over")
|
||||
|
||||
if (player_hold_knife) and (aiperi_talked_after_knife == 0) then
|
||||
local player_hold_knife = game_api.getIntValue("player_hold_knife")
|
||||
|
||||
if (player_hold_knife==1) and (aiperi_talked_after_knife == 0) then
|
||||
game_api.start_dialogue("dialog_chat_aiperi003")
|
||||
game_api.setIntValue("aiperi_talked_after_knife", 1)
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user