Author Topic: Roulette Command  (Read 19147 times)

0 Members and 2 Guests are viewing this topic.

VanitysFire

  • Youngling
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
  • Twitch Name: VanitysFire
Roulette Command
« on: April 27, 2016, 10:28:17 AM »
so I'm trying to figure out how to do a !roulette command. and I can come to a couple of conclusion. do a big command with a lot going on or possibly simplifying it to where you have your base command that executes another command that finishes it. So far I have

!roulette: @user@ pulls the trigger @if@[<||@rand@[0|100]||50||!die||!live]

but I cant get the !die/!live to work because !roulette command doesn't active the second commands and adding @exec@ just says that exec is in the wrong format. any ideas here?

jwhite8559

  • Youngling
  • *
  • Posts: 27
  • Karma: +1/-0
    • View Profile
  • Twitch Name: jwhite8559
Re: Roulette Command
« Reply #1 on: April 28, 2016, 04:51:55 AM »
so I'm trying to figure out how to do a !roulette command. and I can come to a couple of conclusion. do a big command with a lot going on or possibly simplifying it to where you have your base command that executes another command that finishes it. So far I have

!roulette: @user@ pulls the trigger @if@[<||@rand@[0|100]||50||!die||!live]

but I cant get the !die/!live to work because !roulette command doesn't active the second commands and adding @exec@ just says that exec is in the wrong format. any ideas here?

I do not see anything wrong you may try setting all your commands to user elevated. Also are you running the bot as admin?
***Deepbot Support***

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Roulette Command
« Reply #2 on: April 28, 2016, 06:02:40 AM »
so I'm trying to figure out how to do a !roulette command. and I can come to a couple of conclusion. do a big command with a lot going on or possibly simplifying it to where you have your base command that executes another command that finishes it. So far I have

!roulette: @user@ pulls the trigger @if@[<||@rand@[0|100]||50||!die||!live]

but I cant get the !die/!live to work because !roulette command doesn't active the second commands and adding @exec@ just says that exec is in the wrong format. any ideas here?

Can you post both !die and !live command?
Old Name: RepentGamingTV
Twitch: Here

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

VanitysFire

  • Youngling
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
  • Twitch Name: VanitysFire
Re: Roulette Command
« Reply #3 on: April 28, 2016, 08:21:26 AM »
well i still cant get the !roulette command to activate !die/!live. when i add @exec@ but when i do, it jacks up the command and says exec format error. but just as is, it does not seem to be activating the !die/!live.

!die is along the lines of:  /timeout@user@60 @user@'s head explodes

i would like to add a piece where it takes points as well as times them out. where for !live it would just give points.  i have not so much worked on !live since i cant get the main com to activate the second string in this case !die until its up to par.

VanitysFire

  • Youngling
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
  • Twitch Name: VanitysFire
Re: Roulette Command
« Reply #4 on: April 28, 2016, 08:22:38 AM »
bot is running as admin and same situation with the commands no matter what setting you put it to: user/user elevated/bot...

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Roulette Command
« Reply #5 on: April 28, 2016, 08:58:48 AM »
Here is an example: (Make sure make all commands Run As: User (Elevated Access) and Hide the !die/!live commands)



!roulette

@if@[<||@rand@[0|100]||50||@user@, will you survive the silence? @exec@[5,!die]||@user@, will you survive the silence? @exec@[5,!live]]

!die (Noticed I command chained !die2. This is the only command that needs a chain, unless you find another way.)



!die2

@user@'s head explodes!


!live

Congrats @user@, you have survived! @exec@[1,!live2]

!live2

!add 100 @user@
Old Name: RepentGamingTV
Twitch: Here

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

VanitysFire

  • Youngling
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
  • Twitch Name: VanitysFire
Re: Roulette Command
« Reply #6 on: April 28, 2016, 02:57:36 PM »
thank you greatly. i really appreciate it. it's all working smoothly now.
though i have one more querry for you.

user A activates a command by randomuser on user D. this command chains to a second command. how does command2 guarantee to pick user D that was pulled from randomuser without pulling one of users A-G?

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Roulette Command
« Reply #7 on: April 28, 2016, 03:16:43 PM »
You probably want to have the command save the @randomuser@ to a .txt file with @savefile@. Then in the second command @readfile@.

@randomuser@ is not unique. So can't pass it on in a chain.
Old Name: RepentGamingTV
Twitch: Here

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

MrTomFooleryy

  • Youngling
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
  • Twitch Name: MrTomFooleryy
Re: Roulette Command
« Reply #8 on: August 07, 2016, 11:05:14 AM »
I know this post is a little old, but I'm trying to also add this command to my bot and I cannot get it to work. I actually copied everything word for word from RepentGamingTV's example, but users can't run it. I can't even run it. The only time I can run the command is if I go into my command list on the console and right click on the command and hit Execute.

Not sure what I'm doing wrong, any help would be appreciated!

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Roulette Command
« Reply #9 on: August 07, 2016, 12:14:40 PM »
I know this post is a little old, but I'm trying to also add this command to my bot and I cannot get it to work. I actually copied everything word for word from RepentGamingTV's example, but users can't run it. I can't even run it. The only time I can run the command is if I go into my command list on the console and right click on the command and hit Execute.

Not sure what I'm doing wrong, any help would be appreciated!

Here is the code to import into deepbot with the full game: http://pastebin.com/raw/1P4kk9Nc

If you don't know how to import a command, go to Channel Commands Tab On Deepbot > Right Click in the Box where you custom commands are displayed > Import > Paste the contents of the URL into there.
Old Name: RepentGamingTV
Twitch: Here

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

TheRealAlixe

  • Knight
  • ***
  • Posts: 106
  • Karma: +5/-2
    • View Profile
    • Ninetales.us
  • Twitch Name: TheRealAlixe
Re: Roulette Command
« Reply #10 on: September 03, 2016, 08:01:48 PM »
This command will no longer work with the name !roulette as we now have a built in roulette
Twitter: @TheRealAlixe | Web: Ninetales.us | Twitch: @TheRealAlixe | Discord: join