Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

How to make the YCTP have Trivia and Math together

A Tutorial for Baldi's Basics in Education and Learning

Members see zero ads. Membership is 100% free
SO I made a poll saying on if I should make this tutorial, and literally everyone said yes so here it is. 
  1. Go to the MathGameScript and simply go to the New Problem Method

  2. Also make a new string variable for what the solution for the trivia question of the question
    Ex. public string triviaSolution;

  3. Make a new sign and make your question. I have made a entire template for you to use, so this isn't so hard to do, copy this if you want to use it

else if (this.sign == (newest sign interger)
                {
                    this.triviaSolution = "Your answer to your trivia question";
                    this.solution = Your solution for the math question;
                    this.questionText.text = string.Concat(new object[]
                    {
                        "Question",
                        ": \n",
                        "Your Question",
                        "                                      A) Answer A          B) Answer B",
                        "                                         C) Answer C        D) Answer D",
                        "\n \n",
                        this.num1,
                        "Your math sign",
                        this.num2,
                        "="
                    });
                }

4. Now with that go to the CheckAnswer Method so we can make it valid

5. After the if statement to check a math question make a new if statement. Simply copy this

    if ("All the signs that's a trivia or math question (Read below)) && (this.playerAnswer.text == this.triviaSolution + this.solution.ToString() & !this.impossibleMode))
            {
                this.results[this.problem - 1].texture = this.correct;
                this.baldiAudio.Stop();
                this.ClearAudioQueue();
                int num2 = Mathf.RoundToInt(UnityEngine.Random.Range(0f, 4f));
                this.QueueAudio(this.bal_praises[num2]);
                this.NewProblem();
                return;
            }
For the "All the signs that's a trivia/math question note. Simply just all the signs that contain it and conditionize it to imply that if the sign for the YCTP is one of the signs for the trivia and math question then run the code.
For example
if (this.sign == 1 || this.sign == 2 || this.sign == 3)
|| btw means or in boolean form, it's basically or but used in questions mostly

Now with that. Your new trivia/math question is ready in action

If you have any questions or concerns/ problems. Please comment below. I'm willing to help anyone with this since this is pretty complicated

Comments

Sign up to access this!

Embed

menu
Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Key Authors
RealT5mpler
RealT5mpler Joined 6mo ago
Offline
1,537 points Ranked 21719th
11 medals 1 rare
  • Returned 1000 times Medal icon
  • One month a member Medal icon
  • Returned 100 times Medal icon
  • 1 post awarded Exemplary Feedback Medal icon
  • 5 posts awarded Exemplary Feedback Medal icon
  • 10 posts awarded Exemplary Feedback Medal icon
The founder of this tutorial and this trick

Submitter

RealT5mpler avatar
RealT5mpler Joined 6mo ago
Not on right ok
1,537 points Ranked 21719th
11 medals 1 rare
  • Returned 1000 times Medal icon
  • One month a member Medal icon
  • Returned 100 times Medal icon
  • 1 post awarded Exemplary Feedback Medal icon
  • 5 posts awarded Exemplary Feedback Medal icon
  • 10 posts awarded Exemplary Feedback Medal icon
RealT5mpler
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Details

Difficulty Level
Advanced

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • favorite 2
  • remove_red_eye 564
  • mode_comment 4
  • access_time 1mo

More from Submitter

menu

WiPs by Submitter

menu

More Other/Misc Tutorials