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 Trivia in Baldi's Basics

A Tutorial for Baldi's Basics in Education and Learning

No ads for members. Membership is 100% free. Sign up!
I know alot of people know how to do this.
But i still wanted to get this out of the way.

BY THE WAY YOU CAN DO THIS ON ANY VERSION

1. Make a new variable to store the answer to your trivia question

2.Make a new sign and make your question here's a template to use, it needs to be a string

else if (this.sign == (next free sign) )
{
this. (Your variable for storing the answer to the trivia question) = "(the answer, usually A, B, C, or D)"
this.questionText.fontSize = 15
this.questionText.text = string.Concat(new object[]
{
"SOLVE MATH Q",
this.problem,
"YOUR QUESTION"
"                 A) ANSWER A            B) ANSWER B"
"                             C) ANSWER C               D) ANSWER D"
});
You might want to edit it a bit but is still useful

3. In the CheckAnswer method
make a if statement like this


if ((this.sign == (sign with this type) || this.sign == (another sign with this type) (Read for more info) ) && (this.playerAnswer == this.(variable that stores trivia solution) & !this.impossibleMode))

For the sign condition for the if statement
Simply just mention all the signs that are a trivia question
For example if sign 1 2 and 3 were trivia signs your condition would be

if (this.sign == 1 || this.sign == 2 || this.sign == 3)
3.5 after you make the if statement copy the stuff in the last if statement

And finally
4. So you can actually type letters copy this code (I actually forget where you put it)

if (Input.GetKeyDown(KeyCode.A))
{
this.playerAnswer = this.playerAnswer + "A";
}
if (Input.GetKeyDown(KeyCode.B))
{
this.playerAnswer = this.playerAnswer + "B";
}
if (Input.GetKeyDown(KeyCode.C))
{
this.playerAnswer = this.playerAnswer + "C";
}
if (Input.GetKeyDown(KeyCode.D))
{
this.playerAnswer = this.playerAnswer + "D";
}

Enjoy!

Comments

Sign up to access this!

Embed

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

Credits

Key Authors
Simple
Did stuff
Original Authors
RealT5mpler
RealT5mpler Joined 6mo ago
Offline
1,542 points Ranked 21695th
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
Creator

Submitter

RealT5mpler avatar
RealT5mpler Joined 6mo ago
Not on right ok
1,542 points Ranked 21695th
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
Intermediate

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • favorite 3
  • remove_red_eye 452
  • mode_comment 6
  • access_time 29d

More from Submitter

menu

WiPs by Submitter

menu

More Other/Misc Tutorials