1 player Guess The Number

By hbk50 on Apr 14, 2005

paste it on the alias section and then type /start.guess a random number will be generated.. and type /guess .... Have Fun!! .. just testing my skills :D and if you've guessed the number type /start.guess again to play!!

start.guess {
  //set %number $rand(1,100)
  echo -- Type /guess <number>
  echo -- **GUESS ONLY NUMBERS 1-100**
}

guess {
  if ($1 == %number) { timer 1 1 unset %number | clear | clear | clear |clear | clear | echo -- Number %number Is Correct!! }
  if (%number < $1) { echo Less Than $1 }
  if (%number > $1) { echo Greater Than $1 }
  if ($1 == $null) { echo -- You Didn't Guess Any Number.. }
  if (%number == $null) { echo -- Type first /start.guess }
}

Comments

Sign in to comment.
Ville   -  Apr 18, 2005

//echo %number .... um

 Respond  
PoiXon   -  Apr 15, 2005

and one of the clears is like |clear and it will give an error

 Respond  
xDaeMoN   -  Apr 14, 2005

why do you have too many clear commands? One is enough.

 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.