Author Topic: Using @rand@[1|100] while displaying a special message  (Read 1767 times)

0 Members and 1 Guest are viewing this topic.

thezerogamer

  • Youngling
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
  • Twitch Name: thezerogamer
Using @rand@[1|100] while displaying a special message
« on: June 28, 2017, 09:55:08 AM »
I found out that the above command can generate a number between min and max currency values.  Let's say a user enters command to get random amount of currency between 1 and 100 and gets this message as an example:

For being such a good sport, you are awarded (random number) dollars!

What's the best way to code something like that...without showing the person's currency balance?

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Using @rand@[1|100] while displaying a special message
« Reply #1 on: June 28, 2017, 10:40:47 AM »
@editpoints@[@user@|@rand@[1|100]]

@editpoints@   Silently edits users' points in chat. Only runs when the command that includes this variable has User (Elevated Access) selected. E.g. @editpoints@[@user@|10]
Old Name: RepentGamingTV
Twitch: Here

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

thezerogamer

  • Youngling
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
  • Twitch Name: thezerogamer
Re: Using @rand@[1|100] while displaying a special message
« Reply #2 on: June 30, 2017, 09:11:13 AM »
@editpoints@[@user@|@rand@[1|100]]

@editpoints@   Silently edits users' points in chat. Only runs when the command that includes this variable has User (Elevated Access) selected. E.g. @editpoints@[@user@|10]

i get "access denied". :(

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Using @rand@[1|100] while displaying a special message
« Reply #3 on: July 02, 2017, 03:04:17 AM »
Command has to be set to "Run as User (Elevated Access)"
Old Name: RepentGamingTV
Twitch: Here

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