• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Minecraft 1.16.220 Update + Bug/Crash Fixes
    Added MCPE 1.16.220 version and fixed crashes for multiple plugins. You can view the full changelist here.
  • Forum Updates - 4/11/2021
    Various changes have been made to the forums and a few categories. You can view the full changelist here.

Rock, Paper, Scissors!

Warning!
Hello , there have been no replies in this thread for more than 30 days.
Please make sure you have a valid reason before you reply to this thread or you may face moderation action.

TechKingHQ

Retired Staff
#1
Hey there!

This command will allow you to play Rock, Paper, Scissors with your LEET Server!

Usage: /rps <Rock | Paper | Scissors>
--------------------------

cmd create rps Rock, paper, scissors!
cmd add rps if %args%[1] = \"help\" then goto 11
cmd add rps let %selection% = array("Rock","Paper","Scissors")
cmd add rps let %rndm% = random(0, 1, 2)
cmd add rps let %botselection% = %selection%[%rndm%]
cmd add rps if %args%[1] = \"rock\" then goto 13
cmd add rps if %args%[1] = \"Rock\" then goto 13
cmd add rps if %args%[1] = \"paper\" then goto 19
cmd add rps if %args%[1] = \"Paper\" then goto 19
cmd add rps if %args%[1] = \"Scissors\" then goto 25
cmd add rps if %args%[1] = \"scissors\" then goto 25
cmd add rps asop message %p% §eUsage: /rps <Rock | Paper | Scissors>
cmd add rps exit
cmd add rps # If player chooses Rock
cmd add rps asop message %p% §b[§aRPS§b] §eYou chose Rock, I choose %botselection%
cmd add rps if %botselection% = \"Rock\" then message %p% §eWelp, looks like it was a tie! (No winner)
cmd add rps if %botselection% = \"Paper\" then message %p% §cHaha, looks like you lost! (Bot wins)
cmd add rps if %botselection% = \"Scissors\" then message %p% §aNooooo! You won, darn it! (You win)
cmd add rps exit
cmd add rps # If player chooses Paper
cmd add rps asop message %p% §b[§aRPS§b] §eYou chose Paper, I choose %botselection%
cmd add rps if %botselection% = \"Paper\" then message %p% §eWelp, looks like it was a tie! (No winner)
cmd add rps if %botselection% = \"Scissors\" then message %p% §cHaha, looks like you lost! (Bot wins)
cmd add rps if %botselection% = \"Rock\" then message %p% §aNooooo! You won, darn it! (You win)
cmd add rps exit
cmd add rps # If player chooses Scissors
cmd add rps asop message %p% §b[§aRPS§b] §eYou chose Scissors, I choose %botselection%
cmd add rps if %botselection% = \"Scissors\" then message %p% §eWelp, looks like it was a tie! (No winner)
cmd add rps if %botselection% = \"Rock\" then message %p% §cHaha, looks like you lost! (Bot wins)
cmd add rps if %botselection% = \"Paper\" then message %p% §aNooooo! You won, darn it! (You win)
cmd add rps exit
---------------------------------

If you find any bugs/typos, feel free to let me know! Enjoy :D
 
#3
Hey TechKing,
This is a great idea! I will definitely use this ;). I was wondering, though, if the player won, is there a way to pay the player? Like, the player beats the bot, the player gets awarded $5? That would be neat.
Regards,
Sharks
 

thorn1376

Tree Puncher
#5
Hey TechKing,
This is a great idea! I will definitely use this ;). I was wondering, though, if the player won, is there a way to pay the player? Like, the player beats the bot, the player gets awarded $5? That would be neat.
Regards,
Sharks
All you have to do is add this under each of the lines where the player wins.
if %botselection% = \"whatever the thing you won with is"\ then goto (whatever line you want it to go to)
You should add this 3 times, for each option where the person wins
Then, at whatever line you told it to goto you do
ascon /givemoney 5 %p%
 
#6
All you have to do is add this under each of the lines where the player wins.
if %botselection% = \"whatever the thing you won with is"\ then goto (whatever line you want it to go to)
You should add this 3 times, for each option where the person wins
Then, at whatever line you told it to goto you do
ascon /givemoney 5 %p%
Thanks :D