bool SceneScriptUG17::ClickedOnExit(int exitId) { if (exitId == 0) { if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, 1000.0f, 67.96f, -1539.0f, 0, 1, false, 0)) { Ambient_Sounds_Remove_All_Non_Looping_Sounds(1); Ambient_Sounds_Remove_All_Looping_Sounds(1); Game_Flag_Set(353); Set_Enter(87, kSceneUG15); } return true; } if (exitId == 1) { if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, 1013.0f, 67.96f, -1892.0f, 0, 1, false, 0)) { Actor_Face_Heading(kActorMcCoy, 89, false); if (Global_Variable_Query(kVariableChapter) == 5) { Actor_Says(kActorMcCoy, 8522, 14); } else { Loop_Actor_Travel_Ladder(kActorMcCoy, 10, 1, 0); Ambient_Sounds_Remove_All_Non_Looping_Sounds(1); Ambient_Sounds_Remove_All_Looping_Sounds(1); Game_Flag_Set(448); Set_Enter(17, kSceneTB03); } } return true; } return false; }
bool ScriptBB08::ClickedOnExit(int exitId) { if (exitId == 0) { if (!Loop_Actor_Walk_To_XYZ(0, 204.0f, 0.1f, 94.0f, 0, 1, false, 0)) { Actor_Face_Heading(0, 256, false); Footstep_Sound_Override_On(2); Loop_Actor_Travel_Ladder(0, 8, 1, 0); Footstep_Sound_Override_Off(); Ambient_Sounds_Remove_All_Non_Looping_Sounds(1); Ambient_Sounds_Remove_All_Looping_Sounds(1); Game_Flag_Set(218); Set_Enter(24, 10); } return true; } if (exitId == 1) { if (!Loop_Actor_Walk_To_XYZ(0, 247.0f, 0.1f, 27.0f, 0, 1, false, 0)) { Ambient_Sounds_Remove_All_Non_Looping_Sounds(1); Ambient_Sounds_Remove_All_Looping_Sounds(1); Game_Flag_Set(506); Set_Enter(102, 120); } return true; } return false; }
bool SceneScriptUG01::ClickedOnExit(int exitId) { if (exitId == 0) { if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -32.0f, -50.13f, -1350.0f, 12, true, false, 0)) { Game_Flag_Set(kFlagUG01toUG10); Set_Enter(kSetUG10, kSceneUG10); } return true; } if (exitId == 1) { if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -70.0f, -50.13f, -500.0f, 0, true, false, 0)) { Actor_Face_Heading(kActorMcCoy, 768, false); Loop_Actor_Travel_Ladder(kActorMcCoy, 12, true, 0); Game_Flag_Set(kFlagUG01toRC03); Game_Flag_Reset(kFlagMcCoyInUnderground); Game_Flag_Set(kFlagMcCoyInRunciters); Set_Enter(kSetRC03, kSceneRC03); } return true; } if (exitId == 2) { if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -126.0f, -50.13f, -286.0f, 0, true, false, 0)) { Game_Flag_Set(kFlagUG01toUG02); Set_Enter(kSetUG02, kSceneUG02); } return true; } return false; }
void ScriptBB08::PlayerWalkedIn() { if (Game_Flag_Query(219)) { Actor_Set_At_XYZ(0, 204.0f, 96.1f, 94.0f, 256); Footstep_Sound_Override_On(2); Loop_Actor_Travel_Ladder(0, 8, 0, 0); Footstep_Sound_Override_Off(); Actor_Face_Heading(0, 768, false); Game_Flag_Reset(219); } else { Loop_Actor_Walk_To_XYZ(0, 188.0f, 0.1f, 28.0f, 0, 0, false, 0); } }
bool SceneScriptUG10::ClickedOnExit(int exitId) { float x, y, z; Actor_Query_XYZ(kActorMcCoy, &x, &y, &z); if (exitId == 0) { if ((!Game_Flag_Query(474) && x > 125.0f) || Game_Flag_Query(474)) { if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, 235.0f, 1.15f, 29.0f, 0, 1, false, 0)) { Game_Flag_Set(317); Set_Enter(74, kSceneUG01); return true; } } else if (!Game_Flag_Query(474)) { Actor_Says(kActorMcCoy, 8521, 3); } } else if (exitId == 1) { if ((!Game_Flag_Query(474) && x < 120.0f) || Game_Flag_Query(474)) { if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -1.83f, 1.15f, -410.8f, 0, 1, false, 0)) { Actor_Face_Heading(kActorMcCoy, 0, false); Loop_Actor_Travel_Stairs(kActorMcCoy, 9, 1, 0); Loop_Actor_Walk_To_XYZ(kActorMcCoy, -92.0f, 81.83f, -652.0f, 0, 0, false, 0); Game_Flag_Set(337); Set_Enter(76, kSceneUG03); return true; } } else if (!Game_Flag_Query(474)) { Actor_Says(kActorMcCoy, 6165, 3); } } else if (exitId == 2) { if ((!Game_Flag_Query(474) && x < 120.0f) || Game_Flag_Query(474)) { if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -385.0f, 1.15f, 57.44f, 0, 1, false, 0)) { Actor_Face_Heading(kActorMcCoy, 1001, false); Loop_Actor_Travel_Ladder(kActorMcCoy, 1, 1, 0); Game_Flag_Set(424); Set_Enter(80, kSceneUG07); return true; } } else if (!Game_Flag_Query(474)) { Actor_Says(kActorMcCoy, 6165, 3); } } else if (exitId == 3) { if ((!Game_Flag_Query(474) && x < 120.0f) || Game_Flag_Query(474)) { if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, 2.5f, 1.15f, 405.0f, 0, 1, false, 0)) { Game_Flag_Set(347); Set_Enter(86, kSceneUG14); return true; } } else if (!Game_Flag_Query(474)) { Actor_Says(kActorMcCoy, 6165, 3); } } return false; }
void SceneScriptUG01::PlayerWalkedIn() { if (Game_Flag_Query(kFlagUG02toUG01)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, -55.0f, -50.13f, -288.0f, 12, 0, false, 0); Game_Flag_Reset(kFlagUG02toUG01); } if (Game_Flag_Query(kFlagRC03toUG01)) { Actor_Set_At_XYZ(kActorMcCoy, -70.0f, 93.87f, -500.0f, 768); Loop_Actor_Travel_Ladder(kActorMcCoy, 12, 0, 0); Loop_Actor_Walk_To_XYZ(kActorMcCoy, -58.0f, -50.13f, -488.0f, 0, 0, false, 0); Game_Flag_Reset(kFlagRC03toUG01); } if (Actor_Query_Goal_Number(kActorLucy) == 310) { Music_Play(21, 35, 0, 3, -1, 0, 0); Actor_Set_Goal_Number(kActorLucy, 311); } //return false; }
bool SceneScriptUG02::ClickedOnExit(int exitId) { if (exitId == 0) { if (Game_Flag_Query(498) || !sub_402354()) { int v2 = Player_Query_Combat_Mode(); if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -202.0f, 120.16f, -74.0f, 0, 1, v2, 0)) { Actor_Face_Heading(kActorMcCoy, 270, false); Footstep_Sound_Override_On(2); Loop_Actor_Travel_Stairs(kActorMcCoy, 4, 0, 0); Footstep_Sound_Override_Off(); int v3 = Player_Query_Combat_Mode(); Loop_Actor_Walk_To_XYZ(kActorMcCoy, -96.57f, 74.87f, -271.28f, 0, 0, v3, 0); int v4 = Player_Query_Combat_Mode(); Loop_Actor_Walk_To_XYZ(kActorMcCoy, -95.0f, 74.87f, -503.0f, 0, 0, v4, 0); Game_Flag_Set(315); Set_Enter(74, kSceneUG01); } } return true; } if (exitId == 1) { if (Game_Flag_Query(498)) { if (sub_402354()) { return true; } Loop_Actor_Walk_To_XYZ(kActorMcCoy, -368.75f, 155.75f, -63.0f, 0, 0, false, 0); Loop_Actor_Walk_To_XYZ(kActorMcCoy, -340.75f, 155.75f, -119.0f, 0, 0, false, 0); } Loop_Actor_Walk_To_XYZ(kActorMcCoy, -304.75f, 155.75f, -171.0f, 0, 0, false, 0); Actor_Face_Heading(kActorMcCoy, 14, false); Loop_Actor_Travel_Ladder(kActorMcCoy, 9, 1, 0); Game_Flag_Set(318); Game_Flag_Reset(259); Game_Flag_Set(479); if (!Game_Flag_Query(403)) { Game_Flag_Set(388); Game_Flag_Set(403); Item_Remove_From_World(121); } Set_Enter(8, kSceneHC03); return true; } return false; }
void SceneScriptUG02::PlayerWalkedIn() { if (Game_Flag_Query(314)) { Actor_Set_At_XYZ(kActorMcCoy, -106.01f, 84.13f, -228.62f, 575); Loop_Actor_Walk_To_XYZ(kActorMcCoy, -148.0f, 84.13f, -67.0f, 0, 0, false, 0); Actor_Face_Heading(kActorMcCoy, 761, false); Footstep_Sound_Override_On(2); Loop_Actor_Travel_Stairs(kActorMcCoy, 4, 1, 0); Footstep_Sound_Override_Off(); Game_Flag_Reset(314); Game_Flag_Set(498); } else if (Game_Flag_Query(319)) { Actor_Set_At_XYZ(kActorMcCoy, -304.75f, 265.0f, -171.0f, 0); Loop_Actor_Travel_Ladder(kActorMcCoy, 9, 0, 0); Game_Flag_Reset(319); Game_Flag_Reset(498); } else { Actor_Set_At_XYZ(kActorMcCoy, -269.24f, 120.16f, -9.94f, 477); Game_Flag_Set(498); } Game_Flag_Reset(499); //return false; }