Quiz Complete

Quiz Complete
This commit is contained in:
Ben987 2018-05-17 00:23:41 -04:00
parent 843874bed5
commit 3308f31433
22 changed files with 107 additions and 10 deletions

View file

@ -20,3 +20,5 @@ Stage,LoveReq,SubReq,VarReq,IntroText,Image
73,0,0,,,MildredAngry.jpg
74,0,0,,,MildredAngry.jpg
75,0,0,,,MildredAngry.jpg
100,0,0,,,MildredTeach.jpg
200,0,0,,,MildredAngry.jpg

1 Stage LoveReq SubReq VarReq IntroText Image
20 73 0 0 MildredAngry.jpg
21 74 0 0 MildredAngry.jpg
22 75 0 0 MildredAngry.jpg
23 100 0 0 MildredTeach.jpg
24 200 0 0 MildredAngry.jpg

View file

@ -6,6 +6,9 @@ var C011_LiteratureClass_Mildred_QuizPlayerStatus = "Clothed";
var C011_LiteratureClass_Mildred_QuizSidneyStatus = "Clothed";
var C011_LiteratureClass_Mildred_QuizMildredStatus = "Clothed";
var C011_LiteratureClass_Mildred_TestChapter = 1;
var C011_LiteratureClass_Mildred_PlayerVictoryCount = 0;
var C011_LiteratureClass_Mildred_SidneyVictoryCount = 0;
var C011_LiteratureClass_Mildred_MildredVictoryCount = 0;
// Chapter 11 - Mildred Load
function C011_LiteratureClass_Mildred_Load() {
@ -76,18 +79,20 @@ function C011_LiteratureClass_Mildred_EndQuiz(Victory) {
// On a victory
if (Victory) {
C011_LiteratureClass_Mildred_PlayerVictoryCount++;
// If Sidney was already hit, she gets hit again
if (C011_LiteratureClass_Mildred_QuizSidneyStatus == "RedButt_Cuffs") {
OverridenIntroText = GetText("TestSidneyCropAgain");
OverridenIntroImage = "TestSidneyCrop.jpg";
OverridenIntroImage = "TestSidneyRedButt.jpg";
}
// If Sidney was stripped, she gets hit
if (C011_LiteratureClass_Mildred_QuizSidneyStatus == "NoSkirt_Cuffs") {
C011_LiteratureClass_Mildred_QuizSidneyStatus = "RedButt_Cuffs";
OverridenIntroText = GetText("TestSidneyCrop");
OverridenIntroImage = "TestSidneyCrop.jpg";
OverridenIntroImage = "TestSidneyRedButt.jpg";
}
// If Sidney was cuffed, she gets stripped of her skirt
@ -109,17 +114,19 @@ function C011_LiteratureClass_Mildred_EndQuiz(Victory) {
} else {
C011_LiteratureClass_Mildred_SidneyVictoryCount++;
// If the player was already hit, she gets hit again
if (C011_LiteratureClass_Mildred_QuizPlayerStatus == "RedButt_Cuffs") {
OverridenIntroText = GetText("TestPlayerCropAgain");
OverridenIntroImage = "TestPlayerCrop.jpg";
OverridenIntroImage = "TestPlayerRedButt.jpg";
}
// If the player was stripped, she gets hit
if (C011_LiteratureClass_Mildred_QuizPlayerStatus == "NoSkirt_Cuffs") {
C011_LiteratureClass_Mildred_QuizPlayerStatus = "RedButt_Cuffs";
OverridenIntroText = GetText("TestPlayerCrop");
OverridenIntroImage = "TestPlayerCrop.jpg";
OverridenIntroImage = "TestPlayerRedButt.jpg";
}
// If the player was cuffed, she gets stripped of her skirt
@ -166,4 +173,14 @@ function C011_LiteratureClass_Mildred_SwitchSidney() {
// Chapter 11 - Mildred takes back focus
function C011_LiteratureClass_Mildred_SwitchMildred() {
ActorLoad("Sidney", "");
}
// Chapter 11 - Mildred check if the player or Sidney won
function C011_LiteratureClass_Mildred_CheckForWinner() {
OverridenIntroImage = "";
if (C011_LiteratureClass_Mildred_PlayerVictoryCount < C011_LiteratureClass_Mildred_SidneyVictoryCount) {
ActorChangeAttitude(-1, -1);
C011_LiteratureClass_Mildred_CurrentStage = 200;
OverridenIntroText = GetText("ShameForDefeat");
}
}

View file

@ -57,3 +57,8 @@ Stage,LoveReq,SubReq,VarReq,Interaction,Result,NextStage,LoveMod,SubMod,Function
72,0,0,,(Start the test|for chapter 3.),,73,0,0,StartTest()
73,0,0,,(Start the test|for chapter 4.),,74,0,0,StartTest()
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()
75,0,0,,Are we finally done?,"We are, well done on your victory.",100,-1,0,CheckForWinner()
100,0,0,,TO DO,TO DO,100,0,0,
200,0,0,,TO DO,TO DO,200,0,0,

1 Stage LoveReq SubReq VarReq Interaction Result NextStage LoveMod SubMod Function
57 72 0 0 (Start the test|for chapter 3.) 73 0 0 StartTest()
58 73 0 0 (Start the test|for chapter 4.) 74 0 0 StartTest()
59 74 0 0 (Start the test|for chapter 5.) 75 0 0 StartTest()
60 75 0 0 The test is over? Yes, congratulations on your victory. 100 0 0 CheckForWinner()
61 75 0 0 That was a fun test. Indeed, congratulations on your victory. 100 1 0 CheckForWinner()
62 75 0 0 Are we finally done? We are, well done on your victory. 100 -1 0 CheckForWinner()
63 100 0 0 TO DO TO DO 100 0 0
64 200 0 0 TO DO TO DO 200 0 0

View file

@ -9,3 +9,4 @@ TestPlayerCuffs,(Mildred grabs your hands firmly and cuffs them.)|Focus on the n
TestPlayerNoSkirt,(Mildred pulls on your skirt and removes it.)|Some humiliation will teach you to do your readings.
TestPlayerCrop,"(Mildred whips your butt pretty hard.)|If nothing can discipline you, pain will."
TestPlayerCropAgain,(Mildred whips your butt sadistically and grins.)|Pain will make you stronger. Pain will make you better.
ShameForDefeat,You should be ashamed of yourself.|You lost against the worst student.

1 Tag Content
9 TestPlayerNoSkirt (Mildred pulls on your skirt and removes it.)|Some humiliation will teach you to do your readings.
10 TestPlayerCrop (Mildred whips your butt pretty hard.)|If nothing can discipline you, pain will.
11 TestPlayerCropAgain (Mildred whips your butt sadistically and grins.)|Pain will make you stronger. Pain will make you better.
12 ShameForDefeat You should be ashamed of yourself.|You lost against the worst student.

Binary file not shown.

Before

(image error) Size: 24 KiB

After

(image error) Size: 24 KiB

Binary file not shown.

Before

(image error) Size: 41 KiB

After

(image error) Size: 45 KiB

Binary file not shown.

Before

(image error) Size: 45 KiB

After

(image error) Size: 46 KiB

Binary file not shown.

Before

(image error) Size: 133 KiB

After

(image error) Size: 133 KiB

Binary file not shown.

Before

(image error) Size: 131 KiB

After

(image error) Size: 131 KiB

Binary file not shown.

Before

(image error) Size: 138 KiB

After

(image error) Size: 138 KiB

Binary file not shown.

Before

(image error) Size: 144 KiB

After

(image error) Size: 144 KiB

Binary file not shown.

Before

(image error) Size: 100 KiB

After

(image error) Size: 100 KiB

Binary file not shown.

Before

(image error) Size: 106 KiB

After

(image error) Size: 106 KiB

Binary file not shown.

Before

(image error) Size: 101 KiB

After

(image error) Size: 101 KiB

Binary file not shown.

Before

(image error) Size: 107 KiB

After

(image error) Size: 107 KiB

View file

@ -1,10 +1,8 @@
In what year does|the novel starts?,1815,1715,1765,1865
In which port is|the ship arriving?,Marseille,Porto,Lisboa,Nice
In which port is|the ship arriving?,Marseilles,Porto,Lisbon,Nice
What's the name of|the arriving ship?,The Pharaon,The Jarl,The Tsar,The Sultan
How did Captain|Leclere died?,Brain-fever,Stabbed,Fell in the sea,Gun wound
Who is waiting|for the cargo?,M. Morrel,Mrs. Avignon,M. Trisac,Mrs. Leclere
What is Edmond|position on the ship?,First mate,Supercargo,Captain,Boatswain
What is Danglars|position on the ship?,Supercargo,First mate,Captain,Boatswain
On which Island|did the ship stopped?,Elba,Aix,Formentera,Mallorca
Who Edmond visits|first when he lands?,His father,His brother,His girlfriend,His best friend
Who's Edmond|betrothed?,Mercédès,Annie,Ingrid,Laviola
What is Danglars|position on the ship?,Supercargo,First mate,Captain,Boatswain

1 In what year does|the novel starts? 1815 1715 1765 1865
2 In which port is|the ship arriving? Marseille Marseilles Porto Lisboa Lisbon Nice
3 What's the name of|the arriving ship? The Pharaon The Jarl The Tsar The Sultan
4 How did Captain|Leclere died? Brain-fever Stabbed Fell in the sea Gun wound
5 Who is waiting|for the cargo? M. Morrel Mrs. Avignon M. Trisac Mrs. Leclere
6 What is Edmond|position on the ship? First mate Supercargo Captain Boatswain
What is Danglars|position on the ship? Supercargo First mate Captain Boatswain
7 On which Island|did the ship stopped? Elba Aix Formentera Mallorca
8 Who Edmond visits|first when he lands? What is Danglars|position on the ship? His father Supercargo His brother First mate His girlfriend Captain His best friend Boatswain
Who's Edmond|betrothed? Mercédès Annie Ingrid Laviola

View file

@ -0,0 +1,8 @@
With whom Edmond|had a dept?,Caderousse,M. Morrel,His father,Danglars
What does Edmond wants|when he meets his father?,Wine,Money,His sword,A letter
What is Caderousse|profession?,Tailor,Sailor,Barber,Militia man
What does Edmond|wants to become?,Captain,First mate,Page,Merchant
With whom did Edmond|refused to dine with?,M. Morrel,Caderousse,His father,Danglars
Who Edmond wants to|see after his father?,His fiancée,His mistress,His best friend,His brother
What does Edmond|gives to his father?,Money,Tobacco,A sword,A gun
Who Edmond visits|first when he lands?,His father,His brother,His girlfriend,His best friend
1 With whom Edmond|had a dept? Caderousse M. Morrel His father Danglars
2 What does Edmond wants|when he meets his father? Wine Money His sword A letter
3 What is Caderousse|profession? Tailor Sailor Barber Militia man
4 What does Edmond|wants to become? Captain First mate Page Merchant
5 With whom did Edmond|refused to dine with? M. Morrel Caderousse His father Danglars
6 Who Edmond wants to|see after his father? His fiancée His mistress His best friend His brother
7 What does Edmond|gives to his father? Money Tobacco A sword A gun
8 Who Edmond visits|first when he lands? His father His brother His girlfriend His best friend

View file

@ -0,0 +1,8 @@
Where does the|Catalan comes from?,Spain,Portugal,Italy,Corsica
Who wants Mercédès|love but gets rejected?,Fernand,Edmond,Caderousse,Danglars
What is Fernand|profession?,Fisherman,Gardener,Tailor,Banker
How does Edmond|view Fernand?,Has an enemy,Has a rival,Has a friend,Has a coward
What are Edmond and|Mercédès planning?,A wedding,A party,A trip,A kidnapping
Where does Edmond|needs to go?,Paris,Marseille,Genoa,Madrid
Who's Edmond|betrothed?,Mercédès,Annie,Ingrid,Laviola
What's Mercédès|ethnicity?,Catalan,French,Spanish,Portuguese
1 Where does the|Catalan comes from? Spain Portugal Italy Corsica
2 Who wants Mercédès|love but gets rejected? Fernand Edmond Caderousse Danglars
3 What is Fernand|profession? Fisherman Gardener Tailor Banker
4 How does Edmond|view Fernand? Has an enemy Has a rival Has a friend Has a coward
5 What are Edmond and|Mercédès planning? A wedding A party A trip A kidnapping
6 Where does Edmond|needs to go? Paris Marseille Genoa Madrid
7 Who's Edmond|betrothed? Mercédès Annie Ingrid Laviola
8 What's Mercédès|ethnicity? Catalan French Spanish Portuguese

View file

@ -0,0 +1,8 @@
What does Fernand|wants to do to Edmond?,Stab him,Drown him,Shoot him,Poison him
Who's the mastermind|of the plan?,Danglars,Edmond,Fernand,Caderousse
What are they|planning for Edmond?,Prison,Murder,Execution,Madness
What does|Danglars require?,"Pen, Ink and paper",A pistol,A sword,Wine
Who should receive|the forged letter?,The king's attorney,M. Morrel,The usurper,Edmond's father
Who refuses|the plan?,Caderousse,Edmond,Fernand,Danglars
"Why do Danglars, Fernand|and Caderousse unite?",To plot,To party,For love,To murder
Who gets drunk|at the table?,Caderousse,Edmond,Fernand,Danglars
1 What does Fernand|wants to do to Edmond? Stab him Drown him Shoot him Poison him
2 Who's the mastermind|of the plan? Danglars Edmond Fernand Caderousse
3 What are they|planning for Edmond? Prison Murder Execution Madness
4 What does|Danglars require? Pen, Ink and paper A pistol A sword Wine
5 Who should receive|the forged letter? The king's attorney M. Morrel The usurper Edmond's father
6 Who refuses|the plan? Caderousse Edmond Fernand Danglars
7 Why do Danglars, Fernand|and Caderousse unite? To plot To party For love To murder
8 Who gets drunk|at the table? Caderousse Edmond Fernand Danglars

View file

@ -0,0 +1,8 @@
Where is the|feast organized?,At La Réserve,On the Pharaon,At the Catalans,In Paris
How was Fernand|look at the feast?,Sinister,Deseperate,Angry,Sad
Who was supposed to|perform the wedding?,The mayor,The bishop,Edmond's father,M. Morrel
Who interrupts|the feast?,The magistrate,Fernand,Mercedes,The crew
What's Edmond|accused of?,Be a Bonapartist,Murder,Smuggling,Usurpation
Who goes back|home with Mercedes?,Fernand,M. Morrel,Danglars,Caderousse
What position Danglars|will take on the ship?,Captain,First Mate,Supercargo,Boatswain
Who made the honor|of joining the feast?,M. Morrel,The mayor,The bishop,The magistrate
1 Where is the|feast organized? At La Réserve On the Pharaon At the Catalans In Paris
2 How was Fernand|look at the feast? Sinister Deseperate Angry Sad
3 Who was supposed to|perform the wedding? The mayor The bishop Edmond's father M. Morrel
4 Who interrupts|the feast? The magistrate Fernand Mercedes The crew
5 What's Edmond|accused of? Be a Bonapartist Murder Smuggling Usurpation
6 Who goes back|home with Mercedes? Fernand M. Morrel Danglars Caderousse
7 What position Danglars|will take on the ship? Captain First Mate Supercargo Boatswain
8 Who made the honor|of joining the feast? M. Morrel The mayor The bishop The magistrate

View file

@ -36,6 +36,7 @@ var QuizQuestionAnswer3 = 3;
var QuizQuestionAnswer4 = 4;
var QuizAnswerBy = "";
var QuizAnswerText = "";
var QuizRightActorAnswerTimer = 0;
// Load the race animations and full sequence
function QuizLoad(ActorLeft, ImageActorLeft, ActorRight, ImageActorRight, ActorLeader, ImageActorLeader, Difficulty, ProgressTime, Goal, BackgroundImage, QuestionFile, EndFunction) {
@ -55,6 +56,7 @@ function QuizLoad(ActorLeft, ImageActorLeft, ActorRight, ImageActorRight, ActorL
// Loads the quiz texts and questions
if (QuizText == null) ReadCSV("QuizText", "C999_Common/Quiz/Text_" + CurrentLanguageTag + ".csv");
QuizQuestion = null;
QuizAnswer = null;
QuizShuffleDone = false;
ReadCSV("QuizQuestion", "C999_Common/Quiz/Questions/" + QuestionFile + "_" + CurrentLanguageTag + ".csv");
@ -143,6 +145,12 @@ function QuizRenderAfterAnswer() {
DrawImage("C999_Common/Quiz/Images/AnswerBubble.png", 0, 75);
DrawText(QuizAnswerText, 122, 100, "black");
}
// Draw the answer bubble from the left side
if ((QuizAnswerText != "") && (QuizAnswerBy == "Right")) {
DrawImageMirror("C999_Common/Quiz/Images/AnswerBubble.png", 1200, 75);
DrawText(QuizAnswerText, 1078, 100, "black");
}
// The leader yells if the answer is correct or not but doesn't give the correct answer
var txt = GetCSVText(QuizText, "GoodAnswer");
@ -183,9 +191,34 @@ function QuizNextQuestion() {
QuizBetweenQuestionTimer = 0;
QuizAnswer = null;
QuizImageActionActorLeader = "";
QuizRightActorAnswerTimer = 0;
}
}
// Checks if the right answer should answer
function QuizRightActorAnswer() {
// Sets the timer when the right actor will answer if needed
if (QuizRightActorAnswerTimer == 0) {
if (QuizDifficultyText == "Easy") QuizRightActorAnswerTimer = Math.floor(QuizBeforeAnswerTime * 2 + Math.random() * QuizBeforeAnswerTime * 4);
if (QuizDifficultyText == "Normal") QuizRightActorAnswerTimer = Math.floor(QuizBeforeAnswerTime * 1.6 + Math.random() * QuizBeforeAnswerTime * 2);
if (QuizDifficultyText == "Hard") QuizRightActorAnswerTimer = Math.floor(QuizBeforeAnswerTime * 1.2 + Math.random() * QuizBeforeAnswerTime * 0.5);
}
// If the right actor is ready to answer, the answer is correct by default, 50% random if easy, 25% random if normal
if ((QuizTimer > QuizRightActorAnswerTimer) && (QuizAnswerText == "") && (QuizTimer > 0)) {
var ans = QuizQuestionAnswer1;
if ((QuizDifficultyText == "Easy") && (Math.floor(Math.random() * 2) == 0)) ans = Math.floor(Math.random() * 4) + QuizQuestionAnswer1;
if ((QuizDifficultyText == "Normal") && (Math.floor(Math.random() * 4) == 0)) ans = Math.floor(Math.random() * 4) + QuizQuestionAnswer1;
QuizAnswerText = QuizQuestion[QuizProgressLeft + QuizProgressRight][ans];
QuizAnswerBy = "Right";
QuizBetweenQuestionTimer = QuizTimer + QuizOtherQuestionTime;
if (QuizAnswerText == QuizQuestion[QuizProgressLeft + QuizProgressRight][QuizQuestionAnswer1]) QuizProgressRight++;
else QuizProgressLeft++;
}
}
// Paints the background and the actors, also resets the opponents actions if needed
function QuizRender() {
if ((QuizTimer >= (QuizOtherQuestionTime * -1 / 2)) && (QuizTimer <= 0) && (QuizImageActionActorLeft != "")) QuizImageActionActorLeft = "";
@ -193,7 +226,7 @@ function QuizRender() {
DrawImage("C999_Common/Quiz/Backgrounds/" + QuizBackgroundImage + ".jpg", 0, 0);
DrawImageZoom("C999_Common/Quiz/Actors/" + QuizActorLeft + "/" + QuizImageActorLeft + QuizImageActionActorLeft + ".png", 0, 0, 600, 900, 150, 0, 600 * 0.675, 900 * 0.675);
DrawImageZoomMirror("C999_Common/Quiz/Actors/" + QuizActorRight + "/" + QuizImageActorRight + QuizImageActionActorRight + ".png", 0, 0, 600, 900, 650, 0, 600 * 0.675, 900 * 0.675);
DrawImage("C999_Common/Quiz/Actors/" + QuizActorLeader + "/" + QuizImageActorLeader + "_Leader" + QuizImageActionActorLeader + ".png", 400, 200);
DrawImage("C999_Common/Quiz/Actors/" + QuizActorLeader + "/" + QuizImageActorLeader + "_Leader" + QuizImageActionActorLeader + ".png", 375, 150);
}
// Render the quiz scene
@ -208,6 +241,7 @@ function C999_Common_Quiz_Run() {
// Prepare the questions and answers
QuizNextQuestion();
QuizPrepareAnswers();
QuizRightActorAnswer();
// Increments the quiz timer and paints the background
if (!QuizEnded) QuizTimer = QuizTimer + RunInterval;
@ -243,4 +277,4 @@ function C999_Common_Quiz_Click() {
else QuizProgressRight++;
}
}
}

View file

@ -63,6 +63,14 @@ function DrawImage(Source, X, Y) {
MainCanvas.drawImage(DrawGetImage(Source), X, Y);
}
// Draw an image from a source to the canvas
function DrawImageMirror(Source, X, Y) {
MainCanvas.save();
MainCanvas.scale(-1, 1);
MainCanvas.drawImage(DrawGetImage(Source), X * -1, Y);
MainCanvas.restore();
}
// Draw a text in the canvas
function DrawText(Text, X, Y, Color) {