Deep Bot - Twitch Streamer Assistant

Deep Bot => Guides, Tutorials & Demo Videos => Topic started by: Nazo on February 19, 2016, 09:17:48 AM

Title: Rock-Paper-Scissors Custom Mini-Game
Post by: Nazo on February 19, 2016, 09:17:48 AM
Rock-Paper-Scissors

I recently made a mini-game that basically allows users to play rock-paper-scissors with the bot!

NOTE: REQUIRES DEEPBOT VIP

Make sure to set all the commands to run as User (Elevated Access)

!rps
Code: [Select]
@if@[@target@||||Play Rock-Paper-Scissors with the bot! Type !rps and rock, paper, or scissors to play!||!rps_verify @target@]
!rps_verify
Code: [Select]
@if@[@target@||rock||!rps_rock @target@||@if@[@target@||paper||!rps_paper @target@||@if@[@target@||scissors||!rps_scissors @target@||Pick either rock, paper, or scissors! OhMyDog]]]
!rps_rock
Code: [Select]
@if@[@target@||@customapi@[https://api.rtainc.co/twitch/random?choices=rock,paper,scissors]||!rps_tie @target@||@if@[@customapi@[https://api.rtainc.co/twitch/random?choices=rock,paper,scissors]||scissors||!rps_win @target@||!rps_lose @target@]]
!rps_paper
Code: [Select]
@if@[@target@||@customapi@[https://api.rtainc.co/twitch/random?choices=rock,paper,scissors]||!rps_tie @target@||@if@[@customapi@[https://api.rtainc.co/twitch/random?choices=rock,paper,scissors]||rock||!rps_win @target@||!rps_lose @target@]]
!rps_scissors
Code: [Select]
@if@[@target@||@customapi@[https://api.rtainc.co/twitch/random?choices=rock,paper,scissors]||!rps_tie @target@||@if@[@customapi@[https://api.rtainc.co/twitch/random?choices=rock,paper,scissors]||paper||!rps_win @target@||!rps_lose @target@]]
!rps_tie
Code: [Select]
/me chose... @target@This command needs to be chained to !rps_draw.

!rps_draw
Code: [Select]
It's a tie!
!rps_win
Code: [Select]
@if@[@target@||rock||/me chose... scissors||@if@[@target@||paper||/me chose... rock||@if@[@target@||scissors||/me chose... paper||]]]This command needs to be chained to !rps_rage.

!rps_rage
Code: [Select]
/me thinks you cheated...
!rps_lose
Code: [Select]
@if@[@target@||rock||/me chose... paper||@if@[@target@||paper||/me chose... scissors||@if@[@target@||scissors||/me chose... rock||]]]This command needs to be chained to !rps_gloat.

!rps_gloat
Code: [Select]
Ha! Did you really think you could beat me?
Title: Re: Rock-Paper-Scissors Custom Mini-Game
Post by: MercurY3rd on February 22, 2016, 10:21:26 AM
but this does not work if you pick Rock instead of rock.
That is why i mine is like:
!rps (rock/paper/scissors)
> !rps@target@

and i have then 3 commands: !rpsrock !rpspaper !rpsscissors
Title: Re: Rock-Paper-Scissors Custom Mini-Game
Post by: TheRealAlixe on February 23, 2016, 01:50:29 AM
but this does not work if you pick Rock instead of rock.
That is why i mine is like:
!rps (rock/paper/scissors)
> !rps@target@

and i have then 3 commands: !rpsrock !rpspaper !rpsscissors


or in the !rps command could be like this
Code: [Select]
@if@[@target@||||Play Rock-Paper-Scissors with the bot! Type !rps and rock, paper, or scissors to play!||!rps_verify @customapi@[http://api.lawlypopzz.xyz/lowercase/?target=@target@]]
Title: Re: Rock-Paper-Scissors Custom Mini-Game
Post by: Amaranthias on March 13, 2016, 06:46:21 AM
I tried this and it doesn't work. I did all the elevated access, and chained them still not sure whats wrong.