Author Topic: Rock-Paper-Scissors Custom Mini-Game  (Read 7152 times)

0 Members and 1 Guest are viewing this topic.

Nazo

  • Padawan
  • **
  • Posts: 70
  • Karma: +2/-0
  • Expert on Twitch Bots
    • View Profile
  • Twitch Name: OverlordNazo
Rock-Paper-Scissors Custom Mini-Game
« 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?
« Last Edit: March 08, 2016, 03:58:20 AM by Nazo »
★ Twitch Bot Expert ★


YouTube: Lord Nazo
Twitch: OverlordNazo
Twitter: @Lord_Nazo

MercurY3rd

  • Councilor
  • *****
  • Posts: 652
  • Karma: +26/-1
    • View Profile
  • Twitch Name: mercury3rd
Re: Rock-Paper-Scissors Custom Mini-Game
« Reply #1 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
Hier steht nichts Sinnvolles, dennoch freundliche Grüße. MercurY

TheRealAlixe

  • Knight
  • ***
  • Posts: 106
  • Karma: +5/-2
    • View Profile
    • Ninetales.us
  • Twitch Name: TheRealAlixe
Re: Rock-Paper-Scissors Custom Mini-Game
« Reply #2 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@]]
Twitter: @TheRealAlixe | Web: Ninetales.us | Twitch: @TheRealAlixe | Discord: join

Amaranthias

  • Youngling
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
  • Twitch Name: Amaranthias
Re: Rock-Paper-Scissors Custom Mini-Game
« Reply #3 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.
« Last Edit: March 13, 2016, 07:02:48 AM by Amaranthias »