Author Topic: Gamble Mini-Game (Originally from RevloBot)  (Read 36730 times)

0 Members and 1 Guest are viewing this topic.

dothewhatnow

  • Youngling
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
  • Twitch Name: Dothewhatnow
Re: Gamble Mini-Game (Originally from RevloBot)
« Reply #15 on: March 23, 2017, 12:11:06 PM »
I'm currently using the gamble command from the wiki and am wanting to make it so instead of 98-100 being a 3x point win, a specific number being rolled triggers the 3x win.

So far my attempts have just straight broken the command and am now wondering if someone could show me what to change.  Im pretty sure it's in the !gamble_finish command, I just don't know how to change it from the random number >= range to a specific number.

Thanks.

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Gamble Mini-Game (Originally from RevloBot)
« Reply #16 on: March 24, 2017, 06:59:28 AM »
Remove > to make it have to = the number set in the command.
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

dothewhatnow

  • Youngling
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
  • Twitch Name: Dothewhatnow
Re: Gamble Mini-Game (Originally from RevloBot)
« Reply #17 on: March 24, 2017, 08:10:51 AM »
Remove > to make it have to = the number set in the command.

Would that be this area here?

Code: [Select]
@if@[>=||@rand@[1|100]||80||@if@[>=||@rand@[1|100]||98||Rolled @rand@[1|100]. @user@ won @calc@[*|3|@target@]
Im trying to figure out if i need the first >= in there, because the initial number is lower than 80, or would i just need to change the 80 to a value lower than the number, then change the 98 to the number i want and the >= in front of the 98 to = so it would look something like

Code: [Select]
@if@[>=||@rand@[1|100]||62||@if@[=||@rand@[1|100]||65||Rolled @rand@[1|100]. @user@ won @calc@[*|3|@target@]
or

Code: [Select]
@if@[=||@rand@[1|100]||65||Rolled @rand@[1|100]. @user@ won @calc@[*|3|@target@]

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Gamble Mini-Game (Originally from RevloBot)
« Reply #18 on: March 24, 2017, 08:29:08 AM »
Would be the 98.
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

dothewhatnow

  • Youngling
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
  • Twitch Name: Dothewhatnow
Re: Gamble Mini-Game (Originally from RevloBot)
« Reply #19 on: March 24, 2017, 09:00:23 AM »
Would be the 98.

Do I need to change 80 @if@ statement at all? If the number is going to be below 80?

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Gamble Mini-Game (Originally from RevloBot)
« Reply #20 on: March 24, 2017, 10:07:39 AM »
They need to roll 80 or higher to win by default. The 98 is the 3x part, which is what you want to change. So you would want this, unless you want them to have to roll exactly 80 or 98.

@if@[>=||@rand@[1|100]||80||@if@[=||@rand@[1|100]||98||Rolled @rand@[1|100]. @user@ won @calc@[*|3|@target@]

^With this, if they roll 80 or higher, they win 2x, but if the number is exactly 98, then win 3x.
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

dothewhatnow

  • Youngling
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
  • Twitch Name: Dothewhatnow
Re: Gamble Mini-Game (Originally from RevloBot)
« Reply #21 on: March 24, 2017, 10:49:46 AM »
They need to roll 80 or higher to win by default. The 98 is the 3x part, which is what you want to change. So you would want this, unless you want them to have to roll exactly 80 or 98.

@if@[>=||@rand@[1|100]||80||@if@[=||@rand@[1|100]||98||Rolled @rand@[1|100]. @user@ won @calc@[*|3|@target@]

^With this, if they roll 80 or higher, they win 2x, but if the number is exactly 98, then win 3x.

Aha! Thank you!

ScareBear

  • Youngling
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
  • Twitch Name: Mr_ScareBear
Re: Gamble Mini-Game (Originally from RevloBot)
« Reply #22 on: July 18, 2017, 09:47:31 AM »
this is not like revlo with your scipt just typ in with 1 point !gamble 9999999999999999999999999 and if u win GG RIP leaderboard :D

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Gamble Mini-Game (Originally from RevloBot)
« Reply #23 on: July 18, 2017, 07:39:18 PM »
this is not like revlo with your scipt just typ in with 1 point !gamble 9999999999999999999999999 and if u win GG RIP leaderboard :D

Reference this one: http://wiki.deepbot.tv/custom_mini-games#gamble

It has a max limit built in ;)
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport