Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AnkhBot Rock-Paper-Scissors Mini Game
- By. www.twitch.tv/dr_frienderman
- --------------------------------------------------
- --Version 2.04------------------------------------
- ---------------------2.04 edited by www.twitch.tv/TheModernMan
- 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
- --------------------------------------------------------------------------------------------------------
- Instructions and Stuff Ver. 1.0 + 2.04
- --------------------------------------------------------------------------------------------------------
- Copy and paste the "paste this" section below into a txt document.
- Make sure each is one continuous line with no word wrap and no empty lines. For a total of 9 lines.
- Place in text file at root of your C:/ drive.
- 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.
- (ex. $readrandline(C:\rockpapertwitch2.txt) and actual txt document name rockpapertwitch2.txt)
- Copy and paste "bot command response" section into a bot command response, The actual command can be whatever you want
- Rock paper scissors should now work in Ankhbot. If it doesn't... try again
- --------------------------------------------------------------------------------------------------------
- ----------------------------------\/-- "PASTE This Ver 2.04" --\/---------------------------------------
- --------------------------------------------------------------------------------------------------------
- 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")
- 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")
- 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")
- 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!")
- 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!")
- 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!")
- chooses Rock, $user counters with Scissors. Rock wrecks Scissors. $botname is victorious $addpoints("$botname","1","10","and won $value $currencyname.","Failed to dispense $currencyname!")
- 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!")
- 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!")
- ------------------------------------------------------
- Ver 2.04 Bot Command Response
- ------------------------------------------------------
- /me $readrandline(C:\rockpapertwitch2.txt)
- ----------------------------------------------------
- Ver 2.04 Command Example
- ----------------------------------------------------
- Actual Command: !rps
- To use it as a user: !rps
- --------------------------------------------------------------------------------------------------------
- ----------------------------------\/-- "PASTE This Ver 1.0" --\/---------------------------------------
- --------------------------------------------------------------------------------------------------------
- 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")
- 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")
- 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")
- 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!")
- 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!")
- 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!")
- 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!")
- 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!")
- 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!")
- ------------------------------------------------------
- Ver 1.0 Bot Command Response
- ------------------------------------------------------
- /me $target $readrandline(C:\rockpapertwitch2.txt)
- ----------------------------------------------------
- Ver 1.0 Command Example
- ----------------------------------------------------
- Actual Command: !rps
- To use it as a user: !rps dr_frienderman
- Needs to be used on a target, so use your command then type your targets name.
- (ex. !rps Dr_frienderman)
Advertisement
Add Comment
Please, Sign In to add comment