Chapter 12 - Pub and Roommates Dorm Setup

Chapter 12 - Pub and Roommates Dorm Setup
This commit is contained in:
Ben987 2018-06-05 23:46:01 -04:00
parent b2a90cb646
commit a45c55377d
18 changed files with 166 additions and 5 deletions

View file

@ -9,6 +9,7 @@ var C011_LiteratureClass_Mildred_TestChapter = 1;
var C011_LiteratureClass_Mildred_PlayerVictoryCount = 0;
var C011_LiteratureClass_Mildred_SidneyVictoryCount = 0;
var C011_LiteratureClass_Mildred_MildredVictoryCount = 0;
var C011_LiteratureClass_Mildred_LosingTest = false;
// Chapter 11 - Mildred Load
function C011_LiteratureClass_Mildred_Load() {
@ -188,6 +189,9 @@ function C011_LiteratureClass_Mildred_EndQuiz(Victory) {
}
// Flag to tell that player is currently losing the test
C011_LiteratureClass_Mildred_LosingTest = (C011_LiteratureClass_Mildred_PlayerVictoryCount < C011_LiteratureClass_Mildred_SidneyVictoryCount);
}
// Chapter 11 - When the quiz ends against Mildred
@ -411,4 +415,11 @@ function C011_LiteratureClass_Mildred_EasyLeader() {
ActorSpecificChangeAttitude("Sidney", 2, 0);
ActorSpecificChangeAttitude("Natalie", 2, 0);
GameLogSpecificAdd(CurrentChapter, "", "EasyLeader");
}
// Chapter 11 - Give up the test before it ends (only available if the player is losing)
function C011_LiteratureClass_Mildred_GiveUpTest() {
GameLogSpecificAdd(CurrentChapter, "", "GiveUpVersusSidney");
GameLogSpecificAdd(CurrentChapter, "", "LostVersusSidney");
OverridenIntroImage = "";
}

View file

@ -55,8 +55,11 @@ Stage,LoveReq,SubReq,VarReq,Interaction,Result,NextStage,LoveMod,SubMod,Function
65,0,0,,(Listen.),The first student to give three good answers wins|and the other will be punished. Are you ready?,70,0,0,
70,0,0,,(Start the test|for chapter 1.),,71,0,0,StartTest()
71,0,0,,(Start the test|for chapter 2.),,72,0,0,StartTest()
71,0,0,LosingTest,Miss Mildred. I give up.|I haven't read the book.,You should be ashamed of yourself little miss.|Return to your seat and study harder next time.,210,-2,-2,GiveUpTest()
72,0,0,,(Start the test|for chapter 3.),,73,0,0,StartTest()
72,0,0,LosingTest,Miss Mildred. I give up.|I haven't read the book.,You should be ashamed of yourself little miss.|Return to your seat and study harder next time.,210,-2,-2,GiveUpTest()
73,0,0,,(Start the test|for chapter 4.),,74,0,0,StartTest()
73,0,0,LosingTest,Miss Mildred. I give up.|I haven't read the book.,You should be ashamed of yourself little miss.|Return to your seat and study harder next time.,210,-2,-2,GiveUpTest()
74,0,0,,(Start the test|for chapter 5.),,75,0,0,StartTest()
75,0,0,,The test is over?,"Yes, congratulations on your victory.",100,0,0,CheckForWinner()
75,0,0,,That was a fun test.,"Indeed, congratulations on your victory.",100,1,0,CheckForWinner()

1 Stage LoveReq SubReq VarReq Interaction Result NextStage LoveMod SubMod Function
55 65 0 0 (Listen.) The first student to give three good answers wins|and the other will be punished. Are you ready? 70 0 0
56 70 0 0 (Start the test|for chapter 1.) 71 0 0 StartTest()
57 71 0 0 (Start the test|for chapter 2.) 72 0 0 StartTest()
58 71 0 0 LosingTest Miss Mildred. I give up.|I haven't read the book. You should be ashamed of yourself little miss.|Return to your seat and study harder next time. 210 -2 -2 GiveUpTest()
59 72 0 0 (Start the test|for chapter 3.) 73 0 0 StartTest()
60 72 0 0 LosingTest Miss Mildred. I give up.|I haven't read the book. You should be ashamed of yourself little miss.|Return to your seat and study harder next time. 210 -2 -2 GiveUpTest()
61 73 0 0 (Start the test|for chapter 4.) 74 0 0 StartTest()
62 73 0 0 LosingTest Miss Mildred. I give up.|I haven't read the book. You should be ashamed of yourself little miss.|Return to your seat and study harder next time. 210 -2 -2 GiveUpTest()
63 74 0 0 (Start the test|for chapter 5.) 75 0 0 StartTest()
64 75 0 0 The test is over? Yes, congratulations on your victory. 100 0 0 CheckForWinner()
65 75 0 0 That was a fun test. Indeed, congratulations on your victory. 100 1 0 CheckForWinner()

View file

@ -33,7 +33,28 @@ function C012_AfterClass_DormExit_Click() {
function C012_AfterClass_DormExit_LaunchKinbaku() {
if (!Common_PlayerRestrained && !Common_PlayerGagged) {
if (Common_PlayerClothed && (Common_PlayerCostume == "")) {
CurrentTime = CurrentTime + 290000;
SetScene("C101_KinbakuClub", "Intro");
} else OverridenIntroText = GetText("SchoolClothesFirst");
} else OverridenIntroText = GetText("UnrestrainFirst");
}
}
// Chapter 12 After Class - Launch the Roommates Dorm
function C012_AfterClass_DormExit_LaunchRoommatesDorm() {
if (!Common_PlayerRestrained && !Common_PlayerGagged) {
if (Common_PlayerClothed && ((Common_PlayerCostume == "") || (Common_PlayerCostume == "BlackDress") || (Common_PlayerCostume == "RedBikini") || (Common_PlayerCostume == "Tennis"))) {
CurrentTime = CurrentTime + 110000;
SetScene(CurrentChapter, "Roommates");
} else OverridenIntroText = GetText("RegularClothesFirst");
} else OverridenIntroText = GetText("UnrestrainFirst");
}
// Chapter 12 After Class - Launch the Pub
function C012_AfterClass_DormExit_LaunchPub() {
if (!Common_PlayerRestrained && !Common_PlayerGagged) {
if (Common_PlayerClothed && ((Common_PlayerCostume == "") || (Common_PlayerCostume == "BlackDress"))) {
CurrentTime = CurrentTime + 290000;
SetScene(CurrentChapter, "Pub");
} else OverridenIntroText = GetText("RegularClothesFirst");
} else OverridenIntroText = GetText("UnrestrainFirst");
}

View file

@ -1,7 +1,5 @@
Stage,LoveReq,SubReq,VarReq,Interaction,Result,NextStage,LoveMod,SubMod,Function
0,0,0,,@The roommates dorm,,0,0,0,LaunchRoommatesDorm()
0,0,0,,@The pub,,0,0,0,LaunchPub()
0,0,0,KnowKinbakuClub,@Kinbaku Club,,0,0,0,LaunchKinbaku()
0,0,0,KnowBondageClub,@Bondage Club,"Sorry, the Bondage Club isn't available yet.|It will be available in a future version.",0,0,0,
0,0,0,,@Amanda,"Sorry, Amanda isn't available in this version.|She will be available in a future release.",0,0,0,
0,0,0,,@Sarah,"Sorry, Sarah isn't available in this version.|She will be available in a future release.",0,0,0,
0,0,0,,@Sidney,"Sorry, Sidney isn't available in this version.|She will be available in a future release.",0,0,0,
0,0,0,,@Jennifer,"Sorry, Jennifer isn't available in this version.|She will be available in a future release.",0,0,0,

1 Stage LoveReq SubReq VarReq Interaction Result NextStage LoveMod SubMod Function
2 0 0 0 @The roommates dorm 0 0 0 LaunchRoommatesDorm()
3 0 0 0 @The pub 0 0 0 LaunchPub()
4 0 0 0 KnowKinbakuClub @Kinbaku Club 0 0 0 LaunchKinbaku()
5 0 0 0 KnowBondageClub @Bondage Club Sorry, the Bondage Club isn't available yet.|It will be available in a future version. 0 0 0
0 0 0 @Amanda Sorry, Amanda isn't available in this version.|She will be available in a future release. 0 0 0
0 0 0 @Sarah Sorry, Sarah isn't available in this version.|She will be available in a future release. 0 0 0
0 0 0 @Sidney Sorry, Sidney isn't available in this version.|She will be available in a future release. 0 0 0
0 0 0 @Jennifer Sorry, Jennifer isn't available in this version.|She will be available in a future release. 0 0 0

View file

@ -1,3 +1,5 @@
Tag,Content
UnrestrainFirst,You cannot leave the dorm|when you're restrained.
SchoolClothesFirst,Wear your school uniform if you|want to go back to the college.
PubClothesFirst,Wear some regular clothes first|if you want to go to the pub.
RoommatesClothesFirst,Wear some regular clothes first|if you want to go see the roommates.

1 Tag Content
2 UnrestrainFirst You cannot leave the dorm|when you're restrained.
3 SchoolClothesFirst Wear your school uniform if you|want to go back to the college.
4 PubClothesFirst Wear some regular clothes first|if you want to go to the pub.
5 RoommatesClothesFirst Wear some regular clothes first|if you want to go see the roommates.

View file

@ -0,0 +1,4 @@
Stage,LoveReq,SubReq,VarReq,IntroText,Image
0,0,0,EmptyPub,The pub is pretty empty at this hour.|Nobody from the college is around.,Pub.jpg
0,0,0,!EmptyPub,Students gather at the pub after school.|Who would you like to meet?,Pub.jpg
100,0,0,,,PubActor.jpg
1 Stage LoveReq SubReq VarReq IntroText Image
2 0 0 0 EmptyPub The pub is pretty empty at this hour.|Nobody from the college is around. Pub.jpg
3 0 0 0 !EmptyPub Students gather at the pub after school.|Who would you like to meet? Pub.jpg
4 100 0 0 PubActor.jpg

BIN
C012_AfterClass/Pub/Pub.jpg Normal file

Binary file not shown.

After

(image error) Size: 191 KiB

Binary file not shown.

After

(image error) Size: 76 KiB

Binary file not shown.

After

(image error) Size: 25 KiB

View file

@ -0,0 +1,61 @@
var C012_AfterClass_Pub_CurrentStage = 0;
var C012_AfterClass_Pub_SidneyAvail = false;
var C012_AfterClass_Pub_EmptyPub = true;
// Calculates who's in the pub depending on the time of the day
function C012_AfterClass_Pub_WhoInIsPub() {
// Sets who's at the pub at what time
C012_AfterClass_Pub_SidneyAvail = ((CurrentTime >= 17 * 60 * 60 * 1000) && (CurrentTime <= 19 * 60 * 60 * 1000));
C012_AfterClass_Pub_EmptyPub = (!C012_AfterClass_Pub_SidneyAvail);
}
// Chapter 12 After Class - Pub Load
function C012_AfterClass_Pub_Load() {
// Loads the scene to search in the wardrobe
LoadInteractions();
LeaveIcon = "";
LeaveScreen = "";
C012_AfterClass_Pub_CurrentStage = 0;
C012_AfterClass_Pub_WhoInIsPub();
}
// Chapter 12 After Class - Pub Run
function C012_AfterClass_Pub_Run() {
BuildInteraction(C012_AfterClass_Pub_CurrentStage);
if (CurrentActor != "") {
DrawActor(CurrentActor, 500, 0, 1.3333);
DrawImage(CurrentChapter + "/" + CurrentScreen + "/PubCounter.jpg", 600, 500);
}
}
// Chapter 12 After Class - Pub Click
function C012_AfterClass_Pub_Click() {
// Regular interactions
ClickInteraction(C012_AfterClass_Pub_CurrentStage);
}
// Chapter 12 After Class - When the player leaves the pub
function C012_AfterClass_Pub_Leave() {
CurrentTime = CurrentTime + 290000;
SetScene(CurrentChapter, "Dorm");
}
// Chapter 12 After Class - Wait for a while and recalculate who's in the pub
function C012_AfterClass_Pub_Wait() {
CurrentTime = CurrentTime + 290000;
C012_AfterClass_Pub_WhoInIsPub();
}
// Chapter 12 After Class - Meets Sidney
function C012_AfterClass_Pub_SidneyStart() {
ActorLoad("Sidney", "");
ActorSetCloth("Shorts");
ActorSetPose("Neutral");
LeaveIcon = "";
}

View file

@ -0,0 +1,4 @@
Stage,LoveReq,SubReq,VarReq,Interaction,Result,NextStage,LoveMod,SubMod,Function
0,0,0,SidneyAvail,Sidney,,100,0,0,SidneyStart()
0,0,0,,Wait for a while,You wait for a little while and|check the crowd at the pub.,0,0,0,Wait()
0,0,0,,Leave the pub,,0,0,0,Leave()
1 Stage LoveReq SubReq VarReq Interaction Result NextStage LoveMod SubMod Function
2 0 0 0 SidneyAvail Sidney 100 0 0 SidneyStart()
3 0 0 0 Wait for a while You wait for a little while and|check the crowd at the pub. 0 0 0 Wait()
4 0 0 0 Leave the pub 0 0 0 Leave()

View file

@ -0,0 +1 @@
Tag,Content
1 Tag Content

Binary file not shown.

After

(image error) Size: 30 KiB

View file

@ -0,0 +1,2 @@
Stage,LoveReq,SubReq,VarReq,IntroText,Image
0,0,0,EmptyDorm,"You arrive at Amanda, Sarah, Sidney|and Jennifer dorm. The door is locked.",Door.jpg
1 Stage LoveReq SubReq VarReq IntroText Image
2 0 0 0 EmptyDorm You arrive at Amanda, Sarah, Sidney|and Jennifer dorm. The door is locked. Door.jpg

View file

@ -0,0 +1,48 @@
var C012_AfterClass_Roommates_CurrentStage = 0;
var C012_AfterClass_Roommates_SidneyAvail = false;
var C012_AfterClass_Roommates_EmptyDorm = true;
// Chapter 12 After Class - Roommates Load
function C012_AfterClass_Roommates_Load() {
// Loads the scene to search in the wardrobe
LoadInteractions();
LeaveIcon = "";
LeaveScreen = "";
C012_AfterClass_Roommates_CurrentStage = 0;
}
// Chapter 12 After Class - Roommates Run
function C012_AfterClass_Roommates_Run() {
BuildInteraction(C012_AfterClass_Roommates_CurrentStage);
if (CurrentActor != "") {
DrawActor(CurrentActor, 500, 0, 1.3333);
}
}
// Chapter 12 After Class - Roommates Click
function C012_AfterClass_Roommates_Click() {
// Regular interactions
ClickInteraction(C012_AfterClass_Roommates_CurrentStage);
}
// Chapter 12 After Class - When the player leaves the roommates
function C012_AfterClass_Roommates_Leave() {
CurrentTime = CurrentTime + 110000;
SetScene(CurrentChapter, "Dorm");
}
// Chapter 12 After Class - Wait for a while and recalculate who's in the roommates
function C012_AfterClass_Roommates_Knock() {
}
// Chapter 12 After Class - Meets Sidney
function C012_AfterClass_Roommates_SidneyStart() {
ActorLoad("Sidney", "");
ActorSetCloth("Shorts");
ActorSetPose("Neutral");
LeaveIcon = "";
}

View file

@ -0,0 +1,3 @@
Stage,LoveReq,SubReq,VarReq,Interaction,Result,NextStage,LoveMod,SubMod,Function
0,0,0,,Knock at the door,You knock at the door|but nobody answers.,0,0,0,Knock()
0,0,0,,Return to your dorm,,0,0,0,Leave()
1 Stage LoveReq SubReq VarReq Interaction Result NextStage LoveMod SubMod Function
2 0 0 0 Knock at the door You knock at the door|but nobody answers. 0 0 0 Knock()
3 0 0 0 Return to your dorm 0 0 0 Leave()

View file

@ -0,0 +1 @@
Tag,Content
1 Tag Content

View file

@ -118,6 +118,8 @@
<script src="C012_AfterClass/Wardrobe/Script.js"></script>
<script src="C012_AfterClass/Bed/Script.js"></script>
<script src="C012_AfterClass/DormExit/Script.js"></script>
<script src="C012_AfterClass/Roommates/Script.js"></script>
<script src="C012_AfterClass/Pub/Script.js"></script>
<script src="C012_AfterClass/Outro/Script.js"></script>
<script src="C101_KinbakuClub/Intro/Script.js"></script>
<script src="C101_KinbakuClub/JennaIntro/Script.js"></script>