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 do I make It's a Bully only take 1 item?

A Question for Baldi's Basics in Education and Learning

No ads for members. Membership is 100% free. Sign up!

Question Answered but Unsolved

This Question has been answered but no solution has been chosen. You can still post your own answer to help the submitter.
Can anyone tell me how I make It's a Bully only take 1 type of a item? I mean like, Only take the BSoda if you have it.
Sign up to access this!
  • RealT5mpler avatar
    RealT5mpler Joined 7mo ago
    Not on right ok
    2,274 points Ranked 20389th
    13 medals 2 rare
    • Returned 1000 times Medal icon
    • 25 posts awarded Exemplary Feedback 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
    access_time 9d
    replace the 

    else
                {
                    int num = Mathf.RoundToInt(UnityEngine.Random.Range(0f, 2f));
                    while (this.gc.item[num] == 0)
                    {
                        num = Mathf.RoundToInt(UnityEngine.Random.Range(0f, 2f));
                    }
                    this.gc.LoseItem(num);
                    int num2 = Mathf.RoundToInt(UnityEngine.Random.Range(0f, 1f));
                    this.audioDevice.PlayOneShot(this.aud_Thanks[num2]);
                    this.Reset();
                }

    To this:

    if ((this.gc.item[0] == 0 & this.gc.item[1] == 0 & this.gc.item[2] == 0) || (this.gc.item[0] == "your item id" || this.gc.item[1] == "your item id" || this.gc.item[2] == "your item id"))
                {
                    this.audioDevice.PlayOneShot(this.aud_Denied);
                }
                else
                {
                    if (this.gc.item[0] == "your item id")
                    {
                    this.gc.LoseItem(0);
                    }
                    else if (this.gc.item[1] == "your item id")
                    {
                        this.gc.LoseItem(1);
                    }
                    else if (this.gc.item[2] == "your item id")
                    {
                        this.gc.LoseItem(2);
                    }
                    int num2 = Mathf.RoundToInt(UnityEngine.Random.Range(0f, 1f));
                    this.audioDevice.PlayOneShot(this.aud_Thanks[num2]);
                    this.Reset();
                }
    Never Give up on what you want avatar
    Mantra
    Never Give up on what you want
    URL to post:

Embed

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

Asker

MCAboyan avatar
MCAboyan username pic Joined 10mo ago
Offline
230 points Ranked 54169th
MCAboyan avatar
MCAboyan

Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 0
  • 115
  • 1
  • 9d

More from Submitter

menu

More Script Help Questions