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 Add New Rules

A Tutorial for Baldi's Basics in Education and Learning

No ads for members. Membership is 100% free. Sign up!
Hello! In this tutorial, i will be showing you how to add new school rules in Baldi's Basics in Education and Learning. This tutorial will show you how to add rules to items (ex. no eating food, no locking doors, no "no-squeeing"), which will make the principal send you to detention if he catches you using these items. So without further ado, let's jump in to the tutorial!

1. Download dnSpy:
https://github.com/0xd4d/dnSpy/releases/download/v5.0.0/dnSpy.zip
2. In dnSpy, click on "File", and then "Open", and browse the Assembly-CSharp.dll file (often located in BALDI_Data\Managed).
3. Click on the Assembly-CSharp.dll file in dnSpy, open the "-" namespace, and find "GameControllerScript".
4. Find the "UseItem" method, click on it, right click in the window, and choose "Edit Method".
5. Click on an item method (starts with if (this.item[this.itemSelected] == #)). If  you're having trouble deciding which item is which, use this guide:
1 - Energy Flavored Zesty Bar
2 - Principal's Keys
3 - Yellow Door Lock
4 - BSODA
5 - Quarter
6 - Baldi Anti Hearing and Disorientating Tape
7 - Alarm Clock
8 - WD-NoSquee
9 - Safety Scissors
6. In your item method, find the code that says "this.ResetItem();", and paste this code under it:
this.player.ResetGuilt("guiltname", 1f);
Make sure to replace "guiltname" with your own message!
7. Open "PrincipalScript", and open the "CorrectPlayer" method.
8. Under the last method (probably the escaping script), paste this code in:
if (this.playerScript.guiltType == "guiltname")
        {
            this.audioQueue.QueueAudio(this.audNoRuleBreak);
        }

9. In the code above, replace "guiltname" with the messgae you gave your rule in step 6, and replace
 "this.aud.NoRuleBreak" with one of the principal's unused lines, such as "this.aud.NoStabbing", or "this.aud.NoLockers".
Note: Because the principal only has those two unused lines, you can only add 2 new rules. If you want to add more rules, you'll have to add new voice clips to the game, which I do not recommend
because it's probably going to take a thousand years.

10. Edit the audio files you put in for the rules. You can find some tutorials on the internet.
11. Save the file, open up Baldi's Basics, and enjoy!

Thanks for helping, goodbye!

Comments

Sign up to access this!

Embed

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

Credits

Key Authors
TheBaldiModder452 avatar Johnster Space Studio Flag
Affiliation
Johnster Space Studio
TheBaldiModder452 username pic Joined 6mo ago
Offline
510 points Ranked 45345th
Creator of this Tutorial

Submitter

TheBaldiModder452 avatar
TheBaldiModder452 username pic Joined 6mo ago
Offline
510 points Ranked 45345th
TheBaldiModder452 avatar
TheBaldiModder452
Johnster Space Studio Flag
Affiliation
Johnster Space Studio

Creator
  • Paypal Donate
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 2.1k
  • mode_comment 10
  • access_time 5mo
  • access_time 5mo

WiPs by Submitter

menu

More Other/Misc Tutorials