Super Super Super Easy Number Game

By vinetio on Aug 15, 2007

Here is a SUPER SUPER SUPER (And 200 times more SUPER) easy number game script i made.. But it's fun :)

!guess to guess

!numberstart to start the game

!numberstop to stop the game

Feel free to add timers/score system or whatever you want ;)

on *:text:!numberstop:#rankmeeting: {
  if (%started == 1) {
    msg $chan Number game Stopped!
    set %started 0
  }
  else /msg $chan Number game is already stopped!
  }
}

on *:text:!numberstart:#rankmeeting: {
  if (%started == 0) {
    msg $chan Number game is now started! Use !guess and then a number between 1-10 to guess!
    set %started 1
  }
  else /msg $chan Number game is already running $nick $+ !
  }
}

on *:Text:!guess *:#rankmeeting: {
  if (%started == 1) {
    msg $chan $nick guessed $2 and the answer is..
    set %numberguess $rand(1,10)
    if (%numberguess == $2) && (%started == 1) {
      msg $chan CORRECT! Good job $nick $+ !
      unset %numberguess
    }
    elseif (%numberguess != $2) && (%started == 1) {
     msg $chan WRONG! Too bad $nick $+ ! Try again!
    }
    elseif (%started == 0) {
      msg $chan first start a game $nick $+ ! Use !numberstart to start!
    }
  }
}

Comments

Sign in to comment.
guest598594   -  Sep 06, 2007
if (%numberguess == $2) && (%started == 1)

you already said if (%started == 1) in the beginning, no need to repeat it

also, i think it would be helpful to add a thing to tell them the numbers left

set %numleft 1 2 3 4 5 6 7 8 9 10

on wrong guess,

$remtok(%numleft,$2,32) | msg $chan The remaining numbers are %numleft

on correct guess,

unset %numleft

in order not to repeat,

if ($istok(%numleft,$2,32) && %started == 1)

and put an

else msg $chan You already guessed $2

also, in case ppl leave b4 guessing, after !numberstart,

timer 300 set %started 0 | msg $chan It has been five minutes, and no one has guessed a number.  Game has ended.

to end the game after five minutes

:P

 Respond  
vinetio   -  Aug 15, 2007

I edited as you said only i couldn\'t really figure out how to say the numbers that are left to guess :p

 Respond  
guest598594   -  Aug 15, 2007

i suggest taking #rankmeeting out, lol. just #

also, no need for /\'s, they are not needed, just this (ex:) msg $chan CORRECT! Good job, $nick $+ !

also with this,
else {
/msg $chan Number game is already running $nick $+ !

just do this

else msg $chan Number game is already running $nick $+ !

i also reccomend adding something to say the remaining numbers that are left to guess when they get one wrong, and if they guess one twice, say you\'ve already guessed $2 $+ , $nick $+ !

other than that, good job, keep up the good work.

 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.