The Most Simplest Guessing Game!

By Calzo on Jul 04, 2008

Well its a really REALLY simple !Guess Game which took me no longer than 5/10 minutes to make. I tested it and it worked nice. You can add Colors and all that cause i hate that.

This script is simple. Do not abuse me.

TO START:

!StartGuess then !Guess [Number] Simple. Remember to set the %chanset in variables ;)

on *:text:*!StartGuess*:#:{   
  if ($chan != %chanset) { halt }
  if ($chan == %chanset) { set %guessgame $rand(1,100) | set %guess On | msg $chan The Guessing Game has been Started! It is out of 1-100. Happy Guessing! | //echo %chanset Guess Game has been Started! }
}
on *:text:*!Guess *:#:{
  if ($chan == %chanset)     
  if (%guess == Off)  { msg $chan The game hasn't started yet! !StartGuess to start! | halt }  
  if ($2 == %guessgame) { msg $chan $nick got the answer right, it was %guessgame $+ , !StartGuess to start a New Game! | set %Guess Off | halt }
  if ($2 > %guessgame) { msg $chan You were to High! | halt }
  if ($2 < %guessgame) { msg $chan You were to Low! | halt }
}

Comments

Sign in to comment.
vaseline28   -  Jul 05, 2008

if ($chan != %chanset) { halt }

That line is not necessary, the one below only triggers if it is %chanset, therefore there is no need to halt it if it\'s not.

 Respond  
Typo   -  Jul 05, 2008

I hate to say it but there is a million of these and I just do not see the point of making another one especially if it isnt going to be better or even as good as the ones available.

Keep up the scripting but try and be a little more original with what you take the time to code and release.

 Respond  
EL   -  Jul 04, 2008

well a fst test you need to set the %chanset with a alis or on load option or something.Also check it the guess is lower then 1 or higher then 100 an not let them guess it cause its pointless.maybe add even add a !Give up trigger that gives the correct answer to the chann an resets the game.And lock the game once started to ppl cant keep reseting the %guessgame.Maybe even add a 3 try per person so they can jsut guess a million times and get the advantage and maybe something to track how many times some one got it correct an have like a simple top 3 count.and yeah last but not least flood protection.`-.-´

 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.