bondage-college-mirr/C002_FirstClass/Outro/Script.js
2023-07-28 15:51:40 -04:00

57 lines
No EOL
2.4 KiB
JavaScript

var C002_FirstClass_Outro_Restrained = false;
// Chapter 2 - Outro Load
function C002_FirstClass_Outro_Load() {
// Time is always 9:15:00 in the outro
StopTimer(9 * 60 * 60 * 1000);
C002_FirstClass_Outro_Restrained = Common_PlayerRestrained;
// If player subdued Mildred and remains free, recover all restraints except Mildred's
ActorSpecificClearInventory("Sidney", (C002_FirstClass_Classroom_MildredSubdueSuccess && !C002_FirstClass_Outro_Restrained));
ActorSpecificClearInventory("Amanda", (C002_FirstClass_Classroom_MildredSubdueSuccess && !C002_FirstClass_Outro_Restrained));
ActorSpecificClearInventory("Sarah", (C002_FirstClass_Classroom_MildredSubdueSuccess && !C002_FirstClass_Outro_Restrained));
ActorSpecificClearInventory("Mildred", false);
}
// Chapter 2 - Outro Run
function C002_FirstClass_Outro_Run() {
// Paints the background
DrawRect(0, 0, 800, 600, "black");
DrawImage(CurrentChapter + "/" + CurrentScreen + "/Background.jpg", 800, 0);
// Write the chapter outro
DrawText(GetText("Intro1"), 400, 150, "White");
if ((TextPhase >= 1) && (C002_FirstClass_Classroom_MildredSubdueSuccess == false) && (C002_FirstClass_Classroom_MildredSubdueFailed == false)) DrawText(GetText("Intro2A"), 400, 250, "White");
if ((TextPhase >= 1) && (C002_FirstClass_Classroom_MildredSubdueSuccess == true) && (C002_FirstClass_Classroom_MildredSubdueFailed == false) && (!C002_FirstClass_Outro_Restrained)) DrawText(GetText("Intro2B"), 400, 250, "White");
if ((TextPhase >= 1) && (C002_FirstClass_Classroom_MildredSubdueSuccess == true) && (C002_FirstClass_Classroom_MildredSubdueFailed == false) && (C002_FirstClass_Outro_Restrained)) DrawText(GetText("Intro2C"), 400, 250, "White");
if ((TextPhase >= 1) && (C002_FirstClass_Classroom_MildredSubdueFailed == true)) DrawText(GetText("Intro2D"), 400, 250, "White");
if (TextPhase >= 2) DrawText(GetText("Intro3"), 400, 350, "White");
if (TextPhase >= 3) DrawText(GetText("Intro4"), 400, 450, "White");
}
// Chapter 2 - Outro Click
function C002_FirstClass_Outro_Click() {
// Jump to the next animation
TextPhase++;
if (TextPhase >= 4)
SaveMenu("C004_ArtClass", "Intro");
// Release the player on phase 2
if (TextPhase == 2) {
// Remove all inventory if subdue has failed
if (C002_FirstClass_Classroom_MildredSubdueFailed == true) {
PlayerUnlockAllInventory();
PlayerRemoveAllInventory();
}
// Remove all remaining restraints
PlayerReleaseBondage();
}
}