T012m3n7oR commented on a Page, Rock Paper Scissors game  -  Jun 23, 2008

8/10 good script i had to change it some so its easier to use.

on *:text:!rps*:#: {
  if ($2 == p) { var %PlayerChoice Paper | goto rps }
  if ($2 == r) { var %PlayerChoice Rock | goto rps }
  if ($2 == s) { var %PlayerChoice Scissors | goto rps }
  if ($2 == paper) { var %PlayerChoice $2 | goto rps }
  if ($2 == rock) { var %PlayerChoice $2 | goto rps }
  if ($2 == scissors) { var %PlayerChoice $2 | goto rps }
  else { msg $chan [4 $nick ] You\'ve got to choose Rock, Paper or Scissors! | halt }
  :rps
  var %ScriptChoiceNum $rand(0,2)
  var %ScriptChoice $replace(%ScriptChoiceNum,2,Paper,1,Rock,0,Scissors)
  if (%PlayerChoice == %ScriptChoice) { msg $chan [4 $nick ] <Your Choice:4 $replace($($upper($left(%PlayerChoice,1)) $+ $right(%PlayerChoice,-1)),$chr(32),$chr(32)) > <My Choice:4 %ScriptChoice > It\'s a draw! | halt }
  var %PlayerChoiceNum $replace(%PlayerChoice,Paper,2,Rock,1,Scissors,0)
  if (($calc(%ScriptChoiceNum - %PlayerChoiceNum) == 1) || ($calc(%ScriptChoiceNum - %PlayerChoiceNum) == -2)) { var %winner $me }
  else { var %winner $nick }
  msg $chan [4 $nick ] <Your Choice:4 $replace($($upper($left(%PlayerChoice,1)) $+ $right(%PlayerChoice,-1)),$chr(32),$chr(32)) > <My Choice:4 %ScriptChoice > [4 %Winner ] has won!
}

lol ragbot you gave him a 4/10 if you voted if you didn\'t, well then sorry for the odd accusation.

all those \'4\'s in my script are sopose to have the color box.. it isn\'t showing up in code... i wonder why?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.