void ScriptUG09::InitializeScene() { if (Game_Flag_Query(433)) { Setup_Scene_Information(-67.0f, 156.94f, -425.0f, 500); Game_Flag_Reset(433); } else { Setup_Scene_Information(-53.0f, 156.94f, 174.0f, 1000); Game_Flag_Reset(427); } Scene_Exit_Add_2D_Exit(0, 204, 159, 392, 360, 0); Scene_Exit_Add_2D_Exit(1, 0, 455, 639, 479, 2); Ambient_Sounds_Add_Looping_Sound(105, 71, 0, 1); Ambient_Sounds_Add_Looping_Sound(95, 45, 0, 1); Ambient_Sounds_Add_Looping_Sound(332, 76, 0, 1); Ambient_Sounds_Add_Sound(291, 2, 20, 25, 33, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(292, 2, 20, 25, 33, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(294, 2, 20, 25, 33, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(401, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(402, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(369, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(397, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(398, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(295, 2, 20, 25, 33, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(303, 5, 50, 47, 57, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(304, 5, 50, 47, 57, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(305, 5, 50, 47, 57, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(1, 5, 50, 47, 57, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(57, 5, 50, 17, 37, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(58, 5, 50, 17, 37, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(307, 5, 50, 27, 37, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(308, 5, 50, 27, 37, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(198, 5, 50, 27, 37, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(199, 5, 50, 27, 37, -100, 100, -101, -101, 0, 0); }
void SceneScriptDR04::PlayerWalkedIn() { if (Game_Flag_Query(kFlagDR05ViewExplosion)) { Player_Loses_Control(); Delay(4000); Actor_Retired_Here(kActorMcCoy, 6, 6, 1, -1); } else { if ( Game_Flag_Query(kFlagDR05BombActivated) && !Game_Flag_Query(kFlagDR05BombExploded) ) { Scene_Exits_Disable(); } if (Game_Flag_Query(kFlagDR06toDR04)) { Footstep_Sound_Override_On(3); Actor_Set_Immunity_To_Obstacles(kActorMcCoy, true); Actor_Face_Heading(kActorMcCoy, 512, false); Loop_Actor_Travel_Stairs(kActorMcCoy, 7, false, kAnimationModeIdle); Loop_Actor_Walk_To_XYZ(kActorMcCoy, -851.0f, 71.64f, 647.0f, 0, false, false, 0); Actor_Face_Heading(kActorMcCoy, 0, false); Loop_Actor_Travel_Stairs(kActorMcCoy, 7, false, kAnimationModeIdle); Loop_Actor_Walk_To_XYZ(kActorMcCoy, -774.85f, 7.18f, 386.67f, 0, false, false, 0); Actor_Set_Immunity_To_Obstacles(kActorMcCoy, false); Footstep_Sound_Override_Off(); } } Game_Flag_Reset(kFlagDR01toDR04); Game_Flag_Reset(kFlagDR05toDR04); Game_Flag_Reset(kFlagDR06toDR04); }
void SceneScriptUG06::PlayerWalkedIn() { if (Game_Flag_Query(kFlagUG04toUG06)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, 23.0f, 0.0f, 273.0f, 0, false, false, 0); Game_Flag_Reset(kFlagUG04toUG06); } if (Game_Flag_Query(kFlagNR01toUG06)) { Loop_Actor_Travel_Stairs(kActorMcCoy, 17, false, kAnimationModeIdle); Loop_Actor_Walk_To_XYZ(kActorMcCoy, 66.0f, 0.0f, -36.91f, 0, false, false, 0); Game_Flag_Reset(kFlagNR01toUG06); } if ( Global_Variable_Query(kVariableChapter) == 4 && !Game_Flag_Query(524) ) { Player_Loses_Control(); Actor_Voice_Over(2620, kActorVoiceOver); Actor_Voice_Over(2630, kActorVoiceOver); Actor_Voice_Over(2640, kActorVoiceOver); Actor_Voice_Over(2650, kActorVoiceOver); Actor_Voice_Over(2660, kActorVoiceOver); Actor_Voice_Over(2670, kActorVoiceOver); Actor_Voice_Over(2680, kActorVoiceOver); Actor_Voice_Over(2690, kActorVoiceOver); Actor_Voice_Over(2700, kActorVoiceOver); Player_Gains_Control(); Game_Flag_Set(524); Autosave_Game(2); } //return false; }
void SceneScriptUG14::PlayerWalkedIn() { if (Game_Flag_Query(kFlagUG19toUG14)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, -250.0f, 12.97f, -152.0f, 0, false, false, false); Game_Flag_Reset(kFlagUG19toUG14); } else if (Game_Flag_Query(kFlagUG12toUG14)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, -50.0f, 129.0f, -604.0f, 0, false, false, false); Game_Flag_Reset(kFlagUG12toUG14); } else { Loop_Actor_Walk_To_XYZ(kActorMcCoy, 157.0f, 186.04f, -44.01f, 0, false, false, false); Actor_Face_Heading(kActorMcCoy, 10, false); Footstep_Sound_Override_On(3); Loop_Actor_Travel_Stairs(kActorMcCoy, 6, false, kAnimationModeIdle); Footstep_Sound_Override_Off(); Loop_Actor_Walk_To_XYZ(kActorMcCoy, 157.0f, 128.92f, -148.01f, 0, false, false, false); Actor_Face_Heading(kActorMcCoy, 807, false); Game_Flag_Reset(kFlagUG10toUG14); } if ( Global_Variable_Query(kVariableChapter) == 4 && Game_Flag_Query(kFlagCT04HomelessBodyThrownAway) && !Game_Flag_Query(kFlagUG14DeadHomeless) ) { Overlay_Play("UG14OVER", 0, false, true, 0); Delay(1000); Actor_Face_Heading(kActorMcCoy, 609, false); Delay(3000); Actor_Voice_Over(270, kActorVoiceOver); Delay(2150); Actor_Voice_Over(300, kActorVoiceOver); Game_Flag_Set(kFlagUG14DeadHomeless); } //return false; }
void SceneScriptRC01::PlayerWalkedIn() { if (Game_Flag_Query(kFlagSpinnerAtRC01) && !Game_Flag_Query(kFlagRC02toRC01) && !Game_Flag_Query(kFlagRC03toRC01)) { walkToCenter(); } if (Game_Flag_Query(kFlagRC03toRC01)) { Player_Loses_Control(); Loop_Actor_Walk_To_XYZ(kActorMcCoy, -415.98f, -0.30f, 262.15f, 0, 0, false, 0); Player_Gains_Control(); Game_Flag_Reset(kFlagRC03toRC01); } if (Game_Flag_Query(kFlagRC02toRC01)) { Player_Loses_Control(); Loop_Actor_Walk_To_XYZ(kActorMcCoy, -203.45f, 5.55f, 85.05f, 0, 0, false, 0); Player_Gains_Control(); Game_Flag_Reset(kFlagRC02toRC01); if ( Game_Flag_Query(kFlagRC02Entered) && !Game_Flag_Query(kFlagRC02Left) ) { Actor_Voice_Over(1910, kActorVoiceOver); Actor_Voice_Over(1920, kActorVoiceOver); Actor_Voice_Over(1930, kActorVoiceOver); Game_Flag_Set(kFlagRC02Left); } //return true; } //return false; }
void SceneScriptCT12::PlayerWalkedOut() { Game_Flag_Reset(kFlagGenericWalkerWaiting); if (Game_Flag_Query(433)) { Game_Flag_Reset(176); Game_Flag_Set(259); } }
void ScriptMA07::PlayerWalkedIn() { if (Game_Flag_Query(673)) { Loop_Actor_Walk_To_XYZ(0, -268.0f, -162.8f, 188.0f, 0, 0, false, 0); Game_Flag_Reset(673); } if (Actor_Query_Goal_Number(57) == 300) { Actor_Set_Goal_Number(57, 305); } if (Game_Flag_Query(58)) { Game_Flag_Reset(58); } if (!Game_Flag_Query(648) && Game_Flag_Query(671) && Global_Variable_Query(1) == 4) { Scene_Exits_Disable(); Actor_Set_Goal_Number(53, 300); } if (Game_Flag_Query(666)) { Actor_Voice_Over(1360, 99); Actor_Voice_Over(1370, 99); Actor_Voice_Over(1380, 99); Actor_Voice_Over(1390, 99); Actor_Voice_Over(1400, 99); Delay(1000); Game_Flag_Reset(666); Game_Flag_Set(34); Set_Enter(10, 49); } //return false; }
bool SceneScriptRC01::ClickedOnActor(int actorId) { if (actorId == kActorOfficerLeary && Global_Variable_Query(kVariableChapter) == 1) { if (!Loop_Actor_Walk_To_Actor(kActorMcCoy, kActorOfficerLeary, 36, true, false)) { Actor_Face_Actor(kActorMcCoy, kActorOfficerLeary, true); Actor_Face_Actor(kActorOfficerLeary, kActorMcCoy, true); if (Actor_Query_Goal_Number(kActorOfficerLeary) == kGoalOfficerLearyRC01WalkToCrowd) { Actor_Set_Goal_Number(kActorOfficerLeary, kGoalOfficerLearyDefault); } if (Game_Flag_Query(kFlagRC01GotOfficersStatement)) { Actor_Says(kActorMcCoy, 4535, 13); Game_Flag_Set(kFlagRC01McCoyAndOfficerLearyTalking); if (Actor_Clue_Query(kActorOfficerLeary, kClueCrowdInterviewA) && !Actor_Clue_Query(kActorMcCoy, kClueCrowdInterviewA)) { Actor_Face_Object(kActorOfficerLeary, "70_1", true); Actor_Says(kActorOfficerLeary, 100, 15); Actor_Face_Actor(kActorOfficerLeary, kActorMcCoy, true); Actor_Clue_Acquire(kActorMcCoy, kClueCrowdInterviewA, true, kActorOfficerLeary); Game_Flag_Reset(kFlagRC01McCoyAndOfficerLearyTalking); } else if (Actor_Clue_Query(kActorOfficerLeary, kClueCrowdInterviewB) && !Actor_Clue_Query(kActorMcCoy, kClueCrowdInterviewB)) { Actor_Face_Object(kActorOfficerLeary, "70_5", true); Actor_Says(kActorOfficerLeary, 120, 19); Actor_Face_Actor(kActorOfficerLeary, kActorMcCoy, true); Actor_Says(kActorOfficerLeary, 130, 14); I_Sez("JM: Did it have a huge, ugly piece of chrome on it?"); Actor_Clue_Acquire(kActorMcCoy, kClueCrowdInterviewB, true, kActorOfficerLeary); Game_Flag_Reset(kFlagRC01McCoyAndOfficerLearyTalking); } else { Actor_Says(kActorOfficerLeary, 90, 16); I_Sez("JM: This officer has a talent for vivid metaphors."); if (!Game_Flag_Query(kFlagRC01McCoyAndOfficerLearyArtMetaphor)) { I_Sez("DL: What is that supposed to mean? I didn't write this line..."); Actor_Says(kActorMcCoy, 4540, 16); Game_Flag_Set(kFlagRC01McCoyAndOfficerLearyArtMetaphor); } Game_Flag_Reset(kFlagRC01McCoyAndOfficerLearyTalking); } } else { I_Sez("MG: Hey, leave that officer alone. Can't you see he's busy?"); I_Sez("JM: (...mmm, donuts...)"); Game_Flag_Set(kFlagRC01GotOfficersStatement); Actor_Clue_Acquire(kActorMcCoy, kClueOfficersStatement, true, kActorOfficerLeary); Actor_Says(kActorMcCoy, 4515, 13); Game_Flag_Set(kFlagRC01McCoyAndOfficerLearyTalking); Actor_Says(kActorOfficerLeary, 40, 13); if (!Game_Flag_Query(kFlagRC02Entered)) { Actor_Says(kActorOfficerLeary, 50, 14); Actor_Says(kActorOfficerLeary, 60, 15); I_Sez("MG: It's all fun and games until someone loses a tiger cub."); Actor_Says(kActorMcCoy, 4520, 18); Actor_Says(kActorOfficerLeary, 70, 16); Actor_Says(kActorMcCoy, 4525, 14); Actor_Says(kActorOfficerLeary, 80, 18); Actor_Says(kActorMcCoy, 4530, 15); } Game_Flag_Reset(kFlagRC01McCoyAndOfficerLearyTalking); } } return true; } return false; }
void SceneScriptCT03::InitializeScene() { if (Game_Flag_Query(719)) { Setup_Scene_Information(-852.58f, -621.3f, 285.6f, 0); } else if (Game_Flag_Query(69)) { Game_Flag_Reset(69); Setup_Scene_Information(-557.1f, -616.31f, 224.29f, 249); } else if (Game_Flag_Query(73)) { Game_Flag_Reset(73); Setup_Scene_Information(-173.99f, -619.19f, 347.54f, 808); } else { Setup_Scene_Information(-708.58f, -619.19f, 277.6f, 239); } Scene_Exit_Add_2D_Exit(0, 0, 460, 639, 479, 2); Scene_Exit_Add_2D_Exit(1, 40, 40, 134, 302, 3); Scene_Exit_Add_2D_Exit(2, 390, 0, 539, 230, 1); Ambient_Sounds_Add_Looping_Sound(54, 50, 1, 1); Ambient_Sounds_Add_Looping_Sound(56, 22, -100, 1); Ambient_Sounds_Add_Looping_Sound(105, 34, -100, 1); Ambient_Sounds_Add_Sound(68, 10, 40, 33, 50, 0, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(69, 10, 40, 33, 50, 0, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(61, 3, 30, 8, 10, -100, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(62, 3, 30, 8, 10, -100, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(63, 3, 30, 8, 10, -100, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(64, 3, 30, 8, 10, -100, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Speech_Sound(60, 0, 10, 260, 27, 47, -100, 100, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(60, 20, 10, 260, 27, 47, -100, 100, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(60, 40, 10, 260, 27, 47, -100, 100, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(60, 50, 10, 260, 27, 47, -100, 100, -101, -101, 1, 1); Ambient_Sounds_Add_Sound(376, 10, 60, 33, 50, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(377, 10, 60, 33, 50, -100, 100, -101, -101, 0, 0); }
void SceneScriptCT05::PlayerWalkedIn() { if (Game_Flag_Query(kFlagCT04toCT05)) { Player_Loses_Control(); Game_Flag_Reset(kFlagCT04toCT05); if (Player_Query_Combat_Mode()) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, -308.18f, -109.91f, 674.77f, 0, false, true, false); } else { Loop_Actor_Walk_To_XYZ(kActorMcCoy, -308.18f, -109.91f, 674.77f, 0, false, false, false); } Player_Gains_Control(); } if (Game_Flag_Query(kFlagCT06toCT05)) { Footstep_Sound_Override_On(2); Loop_Actor_Travel_Stairs(kActorMcCoy, 7, false, kAnimationModeIdle); Actor_Set_At_XYZ(kActorMcCoy, 90.73f, -19.91f, 164.97f, 520); Loop_Actor_Travel_Stairs(kActorMcCoy, 10, false, kAnimationModeIdle); Game_Flag_Reset(kFlagCT06toCT05); Footstep_Sound_Override_Off(); if (Actor_Query_Goal_Number(kActorGordo) == kGoalGordoCT01Left && Game_Flag_Query(kFlagCT06ZubenPhoto) ) { Actor_Set_Goal_Number(kActorGordo, kGoalGordoCT05WalkThrough); } } }
void ScriptCT12::PlayerWalkedOut() { Game_Flag_Reset(443); if (Game_Flag_Query(433)) { Game_Flag_Reset(176); Game_Flag_Set(259); } }
void SceneScriptHF01::PlayerWalkedIn() { if (Game_Flag_Query(663)) { ADQ_Flush(); ADQ_Add(kActorOfficerGrayford, 280, 3); Actor_Put_In_Set(kActorOfficerLeary, 37); Actor_Set_At_XYZ(kActorOfficerLeary, 8.2f, 8.0f, -346.67f, 1021); Actor_Put_In_Set(kActorOfficerGrayford, 37); Actor_Set_At_XYZ(kActorOfficerGrayford, 51.21f, 8.0f, -540.78f, 796); Non_Player_Actor_Combat_Mode_On(kActorOfficerLeary, kActorCombatStateUncover, true, kActorMcCoy, 4, kAnimationModeCombatIdle, kAnimationModeCombatWalk, kAnimationModeCombatRun, 0, 0, 0, 100, 300, false); Non_Player_Actor_Combat_Mode_On(kActorOfficerGrayford, kActorCombatStateUncover, true, kActorMcCoy, 4, kAnimationModeCombatIdle, kAnimationModeCombatWalk, kAnimationModeCombatRun, 0, 0, 0, 100, 300, false); } if (!Game_Flag_Query(165) && Actor_Query_Goal_Number(kActorCrazylegs) != 2) { if (Actor_Clue_Query(kActorMcCoy, kCluePhoneCallLucy1) && Global_Variable_Query(kVariableAffectionTowards) == 3 && Actor_Query_Goal_Number(kActorLucy) != 599) { Actor_Put_In_Set(kActorLucy, 37); Actor_Set_At_XYZ(kActorLucy, -5.0f, 8.0f, -622.0f, 419); Actor_Set_Targetable(kActorLucy, true); } else if (Actor_Clue_Query(kActorMcCoy, kCluePhoneCallDektora1) && Global_Variable_Query(kVariableAffectionTowards) == 2 && Actor_Query_Goal_Number(kActorDektora) != 599) { Actor_Put_In_Set(kActorDektora, 37); Actor_Set_At_XYZ(kActorDektora, -5.0f, 8.0f, -622.0f, 419); Actor_Set_Targetable(kActorDektora, true); } } if (Game_Flag_Query(617)) { Actor_Set_Goal_Number(kActorSteele, 280); Game_Flag_Reset(617); //return true; return; } if (Game_Flag_Query(652)) { Game_Flag_Reset(652); Actor_Voice_Over(950, kActorVoiceOver); Actor_Voice_Over(960, kActorVoiceOver); Actor_Voice_Over(970, kActorVoiceOver); Actor_Voice_Over(980, kActorVoiceOver); } else if (!Game_Flag_Query(377) && Global_Variable_Query(kVariableChapter) < 4) { ADQ_Flush(); ADQ_Add(kActorMurray, 0, 14); ADQ_Add(kActorMurray, 10, 3); ADQ_Add(kActorMia, 0, 3); Actor_Face_Actor(kActorMurray, kActorMia, true); ADQ_Add(kActorMurray, 20, 13); ADQ_Add(kActorMia, 10, 3); ADQ_Add(kActorMurray, 30, 3); ADQ_Add(kActorMia, 20, 3); Actor_Face_Heading(kActorMurray, 271, false); Game_Flag_Set(377); } if (Game_Flag_Query(311)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, 124.0f, 8.0f, -724.0f, 0, 1, false, 0); } else if (Game_Flag_Query(309)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, 406.0f, 8.0f, -717.0f, 0, 1, false, 0); } else if (!Game_Flag_Query(313)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, 100.0f, 0.0f, -300.0f, 0, 1, false, 0); } Game_Flag_Reset(311); Game_Flag_Reset(309); Game_Flag_Reset(313); //return false; }
void SceneScriptCT01::InitializeScene() { Music_Play(3, 28, 0, 2, -1, 1, 0); Game_Flag_Reset(kFlagArrivedFromSpinner1); if (Game_Flag_Query(kFlagCT02toCT01)) { Game_Flag_Reset(kFlagCT02toCT01); Setup_Scene_Information(-35.2f, -6.5f, 352.28f, 603); } else if (Game_Flag_Query(kFlagCT03toCT01)) { Game_Flag_Reset(kFlagCT03toCT01); Setup_Scene_Information(-311.0f, -6.5f, 710.0f, 878); } else if (Game_Flag_Query(kFlagCT12toCT01)) { Game_Flag_Reset(kFlagCT12toCT01); Setup_Scene_Information(-419.0f, -6.5f, 696.0f, 28); if (Global_Variable_Query(kVariableChapter) != 2 && Global_Variable_Query(kVariableChapter) != 3 ) { if (Game_Flag_Query(kFlagSpinnerAtCT01)) { Scene_Loop_Start_Special(kSceneLoopModeLoseControl, kCT01LoopInshotFromCT12WithSpinner, false); } else { Scene_Loop_Start_Special(kSceneLoopModeLoseControl, kCT01LoopInshotFromCT12NoSpinner, false); } } } else if (Game_Flag_Query(kFlagSpinnerAtCT01)) { Setup_Scene_Information(-530.0f, -6.5f, 241.0f, 506); Game_Flag_Set(kFlagArrivedFromSpinner1); } else { Setup_Scene_Information(-397.0f, -6.5f, 471.0f, 250); } Scene_Exit_Add_2D_Exit(kCT01ExitCT02, 290, 256, 360, 304, 1); if (Actor_Clue_Query(kActorMcCoy, kClueZubenRunsAway)) { Scene_Exit_Add_2D_Exit(kCT01ExitCT03, 571, 233, 639, 367, 1); } if (Game_Flag_Query(kFlagCT05WarehouseOpen)) { Scene_Exit_Add_2D_Exit(kCT01ExitCT12, 506, 400, 639, 479, 2); } if (Game_Flag_Query(kFlagSpinnerAtCT01)) { Scene_Exit_Add_2D_Exit(kCT01ExitSpinner, 0, 286, 158, 350, 2); } Ambient_Sounds_Add_Looping_Sound(54, 50, 1, 1); Ambient_Sounds_Add_Looping_Sound(55, 40, -100, 1); Ambient_Sounds_Add_Looping_Sound(56, 40, 100, 1); Ambient_Sounds_Add_Sound(61, 10, 30, 16, 20, 0, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(62, 10, 30, 16, 20, 0, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(63, 10, 30, 16, 20, 0, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(64, 10, 30, 16, 20, 0, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Speech_Sound(60, 0, 10, 260, 27, 47, -100, 100, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(60, 20, 10, 260, 27, 47, -100, 100, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(60, 40, 10, 260, 27, 47, -100, 100, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(60, 50, 10, 260, 27, 47, -100, 100, -101, -101, 1, 1); Ambient_Sounds_Add_Sound(68, 10, 40, 33, 50, 0, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(69, 10, 40, 33, 50, 0, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(375, 20, 40, 33, 50, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(376, 20, 40, 33, 50, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(377, 20, 40, 33, 50, -100, 100, -101, -101, 0, 0); if (Game_Flag_Query(kFlagSpinnerAtCT01)) { Scene_Loop_Set_Default(kCT01LoopMain); } else { Scene_Loop_Set_Default(kCT01LoopMainLoopNoSpinner); } }
void SceneScriptUG15::InitializeScene() { if (Game_Flag_Query(kFlagUG17toUG15)) { Setup_Scene_Information( -25.0f, 26.31f, -434.0f, 520); } else if (Game_Flag_Query(kFlagUG16toUG15a)) { Setup_Scene_Information( -17.0f, 26.31f, -346.0f, 711); } else if (Game_Flag_Query(kFlagUG16toUG15b)) { Setup_Scene_Information( -18.0f, 48.07f, 62.0f, 650); } else { Setup_Scene_Information(-238.0f, 48.07f, 222.0f, 180); if (Game_Flag_Query(kFlagUG15RatShot) && Random_Query(1, 10) == 10 ) { Game_Flag_Reset(kFlagUG15RatShot); } } if (Game_Flag_Query(kFlagUG15BridgeBroken)) { Scene_Loop_Set_Default(kUG15LoopMainLoopBridgeBroken); } if (Game_Flag_Query(kFlagUG17toUG15) || Game_Flag_Query(kFlagUG16toUG15a) ) { Scene_Exit_Add_2D_Exit(0, 260, 0, 307, 298, 0); Scene_Exit_Add_2D_Exit(1, 301, 147, 337, 304, 1); Game_Flag_Reset(kFlagUG17toUG15); Game_Flag_Reset(kFlagUG16toUG15a); } else { Scene_Exit_Add_2D_Exit(2, 406, 128, 480, 316, 1); Scene_Exit_Add_2D_Exit(3, 0, 0, 30, 479, 3); } Ambient_Sounds_Add_Looping_Sound(105, 71, 0, 1); Ambient_Sounds_Add_Looping_Sound( 95, 45, 0, 1); Ambient_Sounds_Add_Looping_Sound(332, 76, 0, 1); Ambient_Sounds_Add_Sound(291, 2, 20, 25, 33, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(292, 2, 20, 25, 33, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(293, 2, 20, 25, 33, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(294, 2, 20, 25, 33, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(295, 2, 20, 25, 33, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(401, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(402, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(369, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(397, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(398, 2, 120, 11, 12, -100, 100, -100, 100, 0, 0); Ambient_Sounds_Add_Sound(303, 5, 50, 47, 57, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(304, 5, 50, 47, 57, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(305, 5, 50, 47, 57, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound( 1, 5, 50, 47, 57, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound( 57, 5, 50, 17, 37, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound( 58, 5, 50, 17, 37, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(306, 5, 50, 27, 37, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(307, 5, 50, 27, 37, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(308, 5, 50, 27, 37, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(196, 5, 50, 27, 37, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(197, 5, 50, 27, 37, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(198, 5, 50, 27, 37, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(199, 5, 50, 27, 37, -100, 100, -101, -101, 0, 0); }
void ScriptHF01::PlayerWalkedIn() { if (Game_Flag_Query(663)) { ADQ_Flush(); ADQ_Add(24, 280, 3); Actor_Put_In_Set(23, 37); Actor_Set_At_XYZ(23, 8.2f, 8.0f, -346.67f, 1021); Actor_Put_In_Set(24, 37); Actor_Set_At_XYZ(24, 51.21f, 8.0f, -540.78f, 796); Non_Player_Actor_Combat_Mode_On(23, 3, 1, 0, 4, 4, 7, 8, 0, 0, 0, 100, 300, 0); Non_Player_Actor_Combat_Mode_On(24, 3, 1, 0, 4, 4, 7, 8, 0, 0, 0, 100, 300, 0); } if (!Game_Flag_Query(165) && Actor_Query_Goal_Number(9) != 2) { if (Actor_Clue_Query(0, 141) && Global_Variable_Query(45) == 3 && Actor_Query_Goal_Number(6) != 599) { Actor_Put_In_Set(6, 37); Actor_Set_At_XYZ(6, -5.0f, 8.0f, -622.0f, 419); Actor_Set_Targetable(6, true); } else if (Actor_Clue_Query(0, 139) && Global_Variable_Query(45) == 2 && Actor_Query_Goal_Number(3) != 599) { Actor_Put_In_Set(3, 37); Actor_Set_At_XYZ(3, -5.0f, 8.0f, -622.0f, 419); Actor_Set_Targetable(3, true); } } if (Game_Flag_Query(617)) { Actor_Set_Goal_Number(1, 280); Game_Flag_Reset(617); //return true; return; } if (Game_Flag_Query(652)) { Game_Flag_Reset(652); Actor_Voice_Over(950, 99); Actor_Voice_Over(960, 99); Actor_Voice_Over(970, 99); Actor_Voice_Over(980, 99); } else if (!Game_Flag_Query(377) && Global_Variable_Query(1) < 4) { ADQ_Flush(); ADQ_Add(31, 0, 14); ADQ_Add(31, 10, 3); ADQ_Add(22, 0, 3); Actor_Face_Actor(31, 22, true); ADQ_Add(31, 20, 13); ADQ_Add(22, 10, 3); ADQ_Add(31, 30, 3); ADQ_Add(22, 20, 3); Actor_Face_Heading(31, 271, false); Game_Flag_Set(377); } if (Game_Flag_Query(311)) { Loop_Actor_Walk_To_XYZ(0, 124.0f, 8.0f, -724.0f, 0, 1, false, 0); } else if (Game_Flag_Query(309)) { Loop_Actor_Walk_To_XYZ(0, 406.0f, 8.0f, -717.0f, 0, 1, false, 0); } else if (!Game_Flag_Query(313)) { Loop_Actor_Walk_To_XYZ(0, 100.0f, 0.0f, -300.0f, 0, 1, false, 0); } Game_Flag_Reset(311); Game_Flag_Reset(309); Game_Flag_Reset(313); //return false; }
void ScriptKP04::PlayerWalkedIn() { if (Game_Flag_Query(575)) { Loop_Actor_Walk_To_XYZ(0, -584.0f, 94.89f, 288.0f, 0, 0, false, 0); Game_Flag_Reset(575); } else { Game_Flag_Reset(415); } }
void SceneScriptKP04::PlayerWalkedIn() { if (Game_Flag_Query(kFlagKP05toKP04)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, -584.0f, 94.89f, 288.0f, 0, false, false, 0); Game_Flag_Reset(kFlagKP05toKP04); } else { Game_Flag_Reset(kFlagKP01toKP04); } }
void SceneScriptBB05::PlayerWalkedIn() { if (Game_Flag_Query(298)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, 95.0f, -60.31f, 303.0f, 0, 0, false, 0); Game_Flag_Reset(298); } else if (Game_Flag_Query(300)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, 231.0f, -60.31f, 203.0f, 0, 0, false, 0); Game_Flag_Reset(300); } else if (Game_Flag_Query(302)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, 111.0f, -60.31f, -24.0f, 0, 0, false, 0); Game_Flag_Reset(302); } else { Loop_Actor_Walk_To_XYZ(kActorMcCoy, -76.0f, -60.31f, 131.0f, 0, 0, false, 0); Game_Flag_Reset(285); } if (Actor_Query_Goal_Number(kActorSebastian) == 200) { Actor_Face_Actor(kActorSebastian, kActorMcCoy, true); Actor_Face_Actor(kActorMcCoy, kActorSebastian, true); Actor_Says(kActorSebastian, 120, 13); Actor_Says(kActorMcCoy, 7030, 15); Actor_Says(kActorSebastian, 130, 17); Actor_Says(kActorSebastian, 140, 16); Actor_Says(kActorSebastian, 150, 14); Actor_Says(kActorSebastian, 160, 15); Actor_Says(kActorMcCoy, 7035, 14); Actor_Says(kActorSebastian, 170, 12); Actor_Says(kActorMcCoy, 7040, 14); Actor_Says(kActorSebastian, 180, 16); Actor_Says(kActorMcCoy, 7045, 14); if (Game_Flag_Query(399)) { Actor_Says(kActorSebastian, 190, 15); Actor_Says(kActorMcCoy, 7050, 17); Actor_Says(kActorSebastian, 200, 16); Actor_Says_With_Pause(kActorSebastian, 210, 1.5f, 14); Actor_Says(kActorMcCoy, 7055, 15); } else { Actor_Put_In_Set(kActorGeneralDoll, 22); Actor_Set_At_Waypoint(kActorGeneralDoll, 134, 0); Loop_Actor_Walk_To_Waypoint(kActorGeneralDoll, 135, 0, 0, false); Actor_Says(kActorGeneralDoll, 0, 3); Actor_Face_Actor(kActorMcCoy, kActorGeneralDoll, true); Actor_Face_Actor(kActorSebastian, kActorGeneralDoll, true); Actor_Says(kActorSebastian, 220, 13); Loop_Actor_Walk_To_Waypoint(kActorGeneralDoll, 134, 0, 0, false); Actor_Face_Actor(kActorSebastian, kActorMcCoy, true); Actor_Face_Actor(kActorMcCoy, kActorSebastian, true); Actor_Says(kActorSebastian, 230, 15); Actor_Says(kActorMcCoy, 7060, 17); Actor_Says(kActorSebastian, 240, 12); } Actor_Says(kActorMcCoy, 7065, 16); Actor_Says(kActorSebastian, 250, 16); Actor_Says(kActorMcCoy, 7070, 18); Actor_Set_Goal_Number(kActorSebastian, 205); Actor_Set_Goal_Number(kActorGeneralDoll, 201); Actor_Set_Goal_Number(kActorBryant, 101); Actor_Set_Goal_Number(kActorGeneralDoll, 200); } }
void ScriptUG09::PlayerWalkedOut() { if (Global_Variable_Query(1) == 4 && Global_Variable_Query(1) != 5) { Game_Flag_Reset(630); } if (Game_Flag_Query(432)) { Game_Flag_Set(176); Game_Flag_Reset(259); } }
void SceneScriptBB01::PlayerWalkedIn() { Spinner_Set_Selectable_Destination_Flag(7, 1); if (Game_Flag_Query(265)) { Game_Flag_Reset(265); } else if (Game_Flag_Query(263)) { Game_Flag_Reset(263); } else { Loop_Actor_Walk_To_XYZ(kActorMcCoy, 43.0f, 0.0f, 954.0f, 0, 0, false, 0); } }
void SceneScriptBB07::PlayerWalkedIn() { if (Game_Flag_Query(299)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, -594.0f, 252.59f, -1018.0f, 6, 0, false, 0); Game_Flag_Reset(299); } if (Game_Flag_Query(365)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, -602.0f, 252.59f, -1124.0f, 6, 0, false, 0); Game_Flag_Reset(365); } }
void SceneScriptBB03::PlayerWalkedIn() { if (Game_Flag_Query(286)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, 164.0f, 60.16f, -164.0f, 0, 0, false, 0); Game_Flag_Reset(286); } if (Game_Flag_Query(284)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, 176.0f, 60.16f, -64.0f, 0, 0, false, 0); Game_Flag_Reset(284); } }
void SceneScriptUG15::PlayerWalkedIn() { if (Game_Flag_Query(kFlagUG16toUG15b)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, -62.0f, 48.07f, 102.0f, 0, false, false, 0); Game_Flag_Reset(kFlagUG16toUG15b); } else if (Game_Flag_Query(kFlagUG13toUG15)) { Game_Flag_Reset(kFlagUG13toUG15); if (!Game_Flag_Query(kFlagUG15RatShot)) { Actor_Set_Goal_Number(kActorFreeSlotA, kGoalFreeSlotAUG15Prepare); } } }
void SceneScriptDR02::PlayerWalkedIn() { if (Game_Flag_Query(kFlagDR03toDR02)) { Game_Flag_Reset(kFlagDR03toDR02); } if (Game_Flag_Query(kFlagDR01toDR02)) { Game_Flag_Reset(kFlagDR01toDR02); } if (Game_Flag_Query(kFlagBB01toDR02)) { Game_Flag_Reset(kFlagBB01toDR02); } }
void SceneScriptHF04::SceneFrameAdvanced(int frame) { if (frame == 62) { Sound_Play(kSfxSTONDOR1, Random_Query(43, 43), 0, 0, 50); } if (frame == 154) { Sound_Play(kSfxSTONDOR2, Random_Query(43, 43), 0, 0, 50); } if (frame == 179 && Actor_Query_Goal_Number(kActorLucy) == kGoalLucyHF04WaitForMcCoy1 ) { Actor_Set_Goal_Number(kActorLucy, kGoalLucyHF04Run3); } if (Game_Flag_Query(kFlagHF04CloseDoors)) { Game_Flag_Reset(kFlagHF04CloseDoors); Scene_Loop_Set_Default(kHF04LoopMainDoorsClosed); Scene_Loop_Start_Special(kSceneLoopModeOnce, kHF04LoopDoorsClosing, true); //return true; return; } if (Game_Flag_Query(kFlagHF04OpenDoors)) { Game_Flag_Reset(kFlagHF04OpenDoors); Scene_Loop_Set_Default(kHF04LoopMainLoop); Scene_Loop_Start_Special(kSceneLoopModeOnce, kHF04LoopDoorsOpening, true); return; // true; } if (frame == 89) { Game_Flag_Set(kFlagHF04DoorsClosed); Obstacle_Object("HIDE_WALL_A", false); Obstacle_Object("HIDE_WALL_B", false); Unobstacle_Object("PIVOT_WALL#1", false); Unobstacle_Object("PIVOT_WALL#02", false); Unobstacle_Object("PIVOT_WALL#03", true); return; // true; } if (frame == 180) { Unobstacle_Object("HIDE_WALL_A", false); Unobstacle_Object("HIDE_WALL_B", false); Obstacle_Object("PIVOT_WALL#1", false); Obstacle_Object("PIVOT_WALL#02", false); Obstacle_Object("PIVOT_WALL#03", true); Game_Flag_Reset(kFlagHF04DoorsClosed); if (Actor_Query_Goal_Number(kActorLucy) == kGoalLucyHF04Run2) { Actor_Set_Goal_Number(kActorLucy, kGoalLucyHF04WaitForMcCoy1); } return; // true; } //return false; }
void SceneScriptBB07::PlayerWalkedIn() { if (Game_Flag_Query(kFlagBB05toBB07)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, -594.0f, 252.59f, -1018.0f, 6, false, false, 0); Game_Flag_Reset(kFlagBB05toBB07); } if (Game_Flag_Query(kFlagBB12toBB07)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, -602.0f, 252.59f, -1124.0f, 6, false, false, 0); Game_Flag_Reset(kFlagBB12toBB07); } }
void SceneScriptDR04::SceneFrameAdvanced(int frame) { if (Game_Flag_Query(kFlagDR05ViewExplosion)) { Game_Flag_Reset(kFlagDR05ViewExplosion); Game_Flag_Reset(kFlagDR05BombWillExplode); Scene_Loop_Set_Default(kDR04LoopMainPostExplosion); Scene_Loop_Start_Special(kSceneLoopModeOnce, kDR04LoopDR04Explosion, true); Music_Stop(4); Actor_Set_Goal_Number(kActorMoraji, kGoalMorajiPerished); } else { if (Game_Flag_Query(kFlagDR05BombWillExplode)) { Game_Flag_Reset(kFlagDR05BombWillExplode); Game_Flag_Set(kFlagDR05BombExploded); Scene_Loop_Set_Default(kDR04LoopMainPostExplosion); Scene_Loop_Start_Special(kSceneLoopModeOnce, kDR04LoopDR04Explosion, true); Item_Remove_From_World(kItemBomb); } switch (frame) { case 193: Sound_Play(301, 100, 0, 100, 50); Actor_Set_Goal_Number(kActorMoraji, kGoalMorajiChooseFate); Player_Loses_Control(); Actor_Force_Stop_Walking(kActorMcCoy); if (farEnoughFromExplosion()) { if (Player_Query_Combat_Mode()) { Actor_Change_Animation_Mode(kActorMcCoy, kAnimationModeCombatHit); } else { Actor_Change_Animation_Mode(kActorMcCoy, kAnimationModeHit); } } else { Sound_Play_Speech_Line(kActorMcCoy, 9905, 100, 0, 99); Actor_Change_Animation_Mode(kActorMcCoy, kAnimationModeDie); Actor_Retired_Here(kActorMcCoy, 6, 6, true, -1); } Player_Gains_Control(); break; case 235: if (Actor_Query_Goal_Number(kActorMoraji) != kGoalMorajiJump && Actor_Query_Goal_Number(kActorMoraji) != kGoalMorajiLayDown && Actor_Query_Goal_Number(kActorMoraji) != kGoalMorajiPerished ) { Actor_Set_Goal_Number(kActorOfficerGrayford, 101); } Scene_Exits_Enable(); break; case 237: Overlay_Play("DR04OVER", 0, true, true, 0); break; } } }
void ScriptDR01::PlayerWalkedIn() { if (Game_Flag_Query(531)) { Async_Actor_Walk_To_XYZ(0, -757.15f, -0.04f, 24.64f, 0, false); } else if (!Game_Flag_Query(225) && !Game_Flag_Query(11)) { Player_Loses_Control(); Loop_Actor_Walk_To_XYZ(0, -447.39f, 0.16f, -92.38f, 0, 0, false, 0); Player_Gains_Control(); } Game_Flag_Reset(225); Game_Flag_Reset(11); Game_Flag_Reset(531); }
void SceneScriptNR06::PlayerWalkedIn() { if (Game_Flag_Query(442)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, -3.0f, -71.88f, -26.0f, 0, 0, false, 0); Game_Flag_Reset(442); } else { Loop_Actor_Walk_To_XYZ(kActorMcCoy, -81.72f, 0.12f, -323.49f, 0, 0, false, 0); Actor_Face_Heading(kActorMcCoy, 600, false); Loop_Actor_Travel_Stairs(kActorMcCoy, 8, 0, 0); Game_Flag_Reset(440); } //return false; }
void ScriptAR02::InitializeScene() { Music_Play(0, 22, 0, 2, -1, 1, 2); if (Game_Flag_Query(116)) { Setup_Scene_Information(-560.0f, 0.0f, -799.0f, 333); } else { Setup_Scene_Information(-182.0f, 0.0f, -551.0f, 973); } Scene_Exit_Add_2D_Exit(0, 0, 439, 212, 479, 2); Scene_Exit_Add_2D_Exit(1, 81, 202, 215, 406, 3); Ambient_Sounds_Add_Looping_Sound(54, 50, 1, 1); Ambient_Sounds_Add_Looping_Sound(81, 60, 100, 1); Ambient_Sounds_Add_Looping_Sound(241, 50, 1, 1); Ambient_Sounds_Add_Sound(182, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(184, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(185, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(186, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(188, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(189, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(191, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(192, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(195, 5, 70, 12, 12, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(242, 3, 30, 16, 16, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(243, 3, 30, 16, 16, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(244, 3, 30, 16, 16, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(245, 3, 30, 16, 16, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(246, 3, 30, 16, 16, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(247, 3, 30, 16, 16, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(248, 3, 30, 16, 16, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(249, 3, 30, 16, 16, -100, 100, -101, -101, 0, 0); Ambient_Sounds_Add_Speech_Sound(60, 0, 10, 260, 17, 24, -100, 100, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(60, 20, 10, 260, 17, 24, -100, 100, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(60, 40, 10, 260, 17, 24, -100, 100, -101, -101, 1, 1); Ambient_Sounds_Add_Speech_Sound(60, 50, 10, 260, 17, 24, -100, 100, -101, -101, 1, 1); Ambient_Sounds_Add_Sound(68, 10, 180, 16, 25, 0, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(69, 10, 180, 16, 25, 0, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(375, 10, 180, 50, 100, 0, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(376, 10, 180, 50, 100, 0, 0, -101, -101, 0, 0); Ambient_Sounds_Add_Sound(377, 10, 180, 50, 100, 0, 0, -101, -101, 0, 0); if (Game_Flag_Query(252) && Game_Flag_Query(320)) { Scene_Loop_Start_Special(0, 1, 0); Scene_Loop_Set_Default(2); Game_Flag_Reset(320); } else if (!Game_Flag_Query(252) && Game_Flag_Query(320)) { Scene_Loop_Start_Special(0, 0, 0); Scene_Loop_Set_Default(2); Game_Flag_Reset(320); } else { Scene_Loop_Set_Default(2); } }