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 }
}
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.`-.-´