dr_frienderman

Ankhbot Rock Paper Scissors

Oct 16th, 2015
667
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.34 KB | None | 0 0
  1. AnkhBot Rock-Paper-Scissors Mini Game
  2. By. www.twitch.tv/dr_frienderman
  3.  
  4.  
  5. --------------------------------------------------
  6. --Version 2.04------------------------------------
  7. ---------------------2.04 edited by www.twitch.tv/TheModernMan
  8.  
  9. A crafty user found a problem with 1.0 where if you target yourself you can double your chances of winning breaking the odds. Since there is no way i know of in ankh to exclude users from a command, i had to tweak it a bit. In 2.0 you play against the bot itself, while i prefer being able to play against other viewers. I think this is a happy medium to keep the game playable until 3.0
  10.  
  11. --------------------------------------------------------------------------------------------------------
  12. Instructions and Stuff Ver. 1.0 + 2.04
  13. --------------------------------------------------------------------------------------------------------
  14.  
  15. Copy and paste the "paste this" section below into a txt document.
  16.  
  17. Make sure each is one continuous line with no word wrap and no empty lines. For a total of 9 lines.
  18.  
  19. Place in text file at root of your C:/ drive.
  20.  
  21. Name the txt document the same as the directory in the bot command, you can name it anything you like as long as they match.
  22. (ex. $readrandline(C:\rockpapertwitch2.txt) and actual txt document name rockpapertwitch2.txt)
  23.  
  24. Copy and paste "bot command response" section into a bot command response, The actual command can be whatever you want
  25.  
  26. Rock paper scissors should now work in Ankhbot. If it doesn't... try again
  27.  
  28. --------------------------------------------------------------------------------------------------------
  29. ----------------------------------\/-- "PASTE This Ver 2.04" --\/---------------------------------------
  30. --------------------------------------------------------------------------------------------------------
  31.  
  32. goes first with Rock, $user counters with Rock as well [TIE] $removepoints("$user","5","5","$user lost $value $currencyname.","Unable To remove $value $currencyname from $user!","false")
  33. goes first with Paper, $user counters with Paper as well [TIE] $removepoints("$user","5","5","$user lost $value $currencyname.","Unable To remove $value $currencyname from $user!","false")
  34. goes first with Scissors, $user counters with Scissors aswell [TIE] $removepoints("$user","5","5","$user lost $value $currencyname.","Unable To remove $value $currencyname from $user!","false")
  35. starts off with Paper, $user counters with Rock. Paper covers Rock. $botname is victorious $addpoints("$botname","1","10","and won $value $currencyname.","Failed to dispense $currencyname!")
  36. starts off with Rock, $user counters with Paper. Paper covers Rock. $user is victorious $addpoints("$user","1","10","and won $value $currencyname.","Failed to dispense $currencyname!")
  37. has chosen Scissors, $user counters with Rock. Rock wrecks Scissors. $user is victorious $addpoints("$user","1","10","and won $value $currencyname.","Failed to dispense $currencyname!")
  38. chooses Rock, $user counters with Scissors. Rock wrecks Scissors. $botname is victorious $addpoints("$botname","1","10","and won $value $currencyname.","Failed to dispense $currencyname!")
  39. whips out Scissors, $user counters with Paper. Scissors conquer Paper. $botname is victorious $addpoints("$botname","1","10","and won $value $currencyname.","Failed to dispense $currencyname!")
  40. whips out Paper, $user counters with Scissors. Scissors conquer Paper. $user is victorious $addpoints("$user","1","10","and won $value $currencyname.","Failed to dispense $currencyname!")
  41.  
  42. ------------------------------------------------------
  43. Ver 2.04 Bot Command Response
  44. ------------------------------------------------------
  45.  
  46. /me $readrandline(C:\rockpapertwitch2.txt)
  47.  
  48. ----------------------------------------------------
  49. Ver 2.04 Command Example
  50. ----------------------------------------------------
  51.  
  52. Actual Command: !rps
  53.  
  54. To use it as a user: !rps
  55.  
  56. --------------------------------------------------------------------------------------------------------
  57. ----------------------------------\/-- "PASTE This Ver 1.0" --\/---------------------------------------
  58. --------------------------------------------------------------------------------------------------------
  59.  
  60. goes first with Rock, $user counters with Rock aswell [TIE] $removepoints("$user","5","5","$user lost $value $currencyname.","Unable To remove $value $currencyname from $user!","false")
  61. goes first with Paper, $user counters with Paper aswell [TIE] $removepoints("$user","5","5","$user lost $value $currencyname.","Unable To remove $value $currencyname from $user!","false")
  62. goes first with Scissors, $user counters with Scissors aswell [TIE] $removepoints("$user","5","5","$user lost $value $currencyname.","Unable To remove $value $currencyname from $user!","false")
  63. starts off with paper, $user counters with rock. Paper covers Rock. $target is victorius $addpoints("$target","1","10","$and won $value $currencyname.","Failed to dispense $currencyname!")
  64. starts off with rock, $user counters with paper. Paper covers Rock. $user is victorius $addpoints("$user","1","10","and won $value $currencyname.","Failed to dispense $currencyname!")
  65. has chosen Scissors, $user counters with rock. Rock rek's Scissors. $user is victorius $addpoints("$user","1","10","and won $value $currencyname.","Failed to dispense $currencyname!")
  66. chooses rock, $user counters with Scissors. Rock rek's Scissors. $target is victorius $addpoints("$target","1","10","and won $value $currencyname.","Failed to dispense $currencyname!")
  67. whips out Scissors, $user counters with paper. Scissors conquer Paper. $target is victorius $addpoints("$target","1","10","and won $value $currencyname.","Failed to dispense $currencyname!")
  68. whips out paper, $user counters with Scissors. Scissors conquer Paper. $user is victorius $addpoints("$user","1","10","and won $value $currencyname.","Failed to dispense $currencyname!")
  69.  
  70.  
  71. ------------------------------------------------------
  72. Ver 1.0 Bot Command Response
  73. ------------------------------------------------------
  74.  
  75. /me $target $readrandline(C:\rockpapertwitch2.txt)
  76.  
  77.  
  78. ----------------------------------------------------
  79. Ver 1.0 Command Example
  80. ----------------------------------------------------
  81.  
  82. Actual Command: !rps
  83.  
  84. To use it as a user: !rps dr_frienderman
  85.  
  86. Needs to be used on a target, so use your command then type your targets name.
  87. (ex. !rps Dr_frienderman)
Advertisement
Add Comment
Please, Sign In to add comment