Cookie Game!

By MagicRevealer09 on Feb 14, 2010

I based it on using the Sword in the stone game, changed some text, and BANG! A cookie game! (:

Just type !cookie to play.

Enjoy!

P.S. I wrote atleast 30% of this code :P

on 1:TEXT:*!cookie*:#:{
  var %cookie = $rand(1,12)
  msg $chan 12,14 $nick steps up to the cookie...
  if (%cookie == 1) .timer 1 2 msg $chan 2,0 $nick gobbles up the cookie.
  if (%cookie == 2) .timer 1 2 msg $chan 4,7 $nick gobbles the cookie, but then chockes.
  if (%cookie == 3) .timer 1 2 msg $chan 4,1 $nick has a bad aim of where his/her mouth is, and gets a chocolate chip cookie in there eye.
  if (%cookie == 4) .timer 1 2 msg $chan 13,0 The cookie flies out of $nick 's hands, and falls right into $me 's mouth.
  if (%cookie == 5) .timer 1 2 msg $chan 4,1 $nick breaks his/her teeth biting it.
  if (%cookie == 6) .timer 1 2 msg $chan 10,0 $nick runs up the hill with the cookie, then loses it on his way back down.
  if (%cookie == 7) .timer 1 2 msg $chan 5,0 $nick gets bullied into giving the cookie to $me . 
  if (%cookie == 8) .timer 1 2 msg $chan 8,1 $nick grabs the cookie, but then is weighed down because $nick is weak. 
  if (%cookie == 9) .timer 1 2 msg $chan 9,1 $nick gets so excited, he pees his pants.
  if (%cookie == 10) .timer 1 2 msg $chan 2,0 $nick loses the cookie in the crowd of people in $chan .
  if (%cookie == 11) .timer 1 2 msg $chan 4,0 $nick faints of excitment.
  if (%cookie == 12) .timer 1 2 msg $chan 4,0 $nick hides it down his/her pants.
}

Comments

Sign in to comment.
dma   -  Dec 02, 2015

cute game

 Respond  
Annaiidziithaa   -  Sep 16, 2011

lol

 Respond  
Jethro   -  Sep 16, 2011

Have you ever thought of this question: if I'm already beautiful, why put on makeup? Besides, it's the inner beauty that counts. Then again, beauty is in the eye of the beholder! Right?

 Respond  
Annaiidziithaa   -  Sep 16, 2011

@Jethro I know, but it is more beautiful, right? :P

 Respond  
Jethro   -  Sep 11, 2011

Mmm..you don't need to set the %s variable for #

 Respond  
Annaiidziithaa   -  Sep 11, 2011

.....

 Respond  
Hobo123   -  May 08, 2010

lol true, but it's fun :P

 Respond  
Jethro   -  May 08, 2010

You know, no offense, but this snippet is not even a game. lol It's more like " Magic 8-ball cookies!"

 Respond  
Rawr-   -  May 07, 2010

Or you could just add a wait time before using the command again. Like so:

Added a 30 second wait time between each command. However it can be changed in this line:

.hadd -mz $+($network,.,$nick) Cookie 30
on $*:TEXT:/^[.!@](cookie(s)?|cookiegame)( |$)/:#:{
  set %prefi $iif($left($1,1) == @,msg $chan,msg $chan)
  var %cookie = $rand(1,12)
  if ($hget($+($network,.,$nick),Cookie)) { 
  notice $nick 1••• (10CookieGame1): Sorry, you have to wait10 $duration($v1) 1before doing this again | halt }
  .hadd -mz $+($network,.,$nick) Cookie 30
  describe $chan $nick steps up to the cookie...
  if (%cookie == 1) .timer 1 2 %prefi $nick gobbles up the cookie.
  if (%cookie == 2) .timer 1 2 %prefi $nick gobbles the cookie, but then chokes!
  if (%cookie == 3) .timer 1 2 %prefi $nick has a bad aim of where his/her mouth is, and gets some crumbs in his/her eye.
  if (%cookie == 4) .timer 1 2 %prefi but the cookie flies out of $nick $+ 's hands, and falls right into $me $+ 's mouth.
  if (%cookie == 5) .timer 1 2 %prefi $nick breaks his/her teeth biting it.
  if (%cookie == 6) .timer 1 2 %prefi $nick runs up the hill with the cookie, then loses it on his way back down.
  if (%cookie == 7) .timer 1 2 %prefi $nick gets bullied into giving the cookie to $me .
  if (%cookie == 8) .timer 1 2 %prefi $nick grabs the cookie, but then is weighed down because $nick is weak.
  if (%cookie == 9) .timer 1 2 %prefi $nick gets so excited, he pees his pants.
  if (%cookie == 10) .timer 1 2 %prefi $nick loses the cookie in the crowd of people in $chan $+ .
  if (%cookie == 11) .timer 1 2 %prefi $nick faints of excitment.
  if (%cookie == 12) .timer 1 2 %prefi $nick hides it down his/her pants.
}
 Respond  
Hobo123   -  May 07, 2010

lol definitely needs a flood control. People in my channel went nuts

 Respond  
`Dean   -  Feb 27, 2010

This

if (%cookie == 4) .timer 1 2 msg $chan  The cookie flies out of $nick 's hands, and falls right into $me 's mouth.

]

Can be this so it would be $nick's instead of $nick 's

if (%cookie == 4) .timer 1 2 msg $chan  The cookie flies out of $nick $+ 's hands, and falls right into $me 's mouth.

Or if you wanted Regex, I added some stuff

(07:34:36) <@Dean-> @cookie
(07:34:37) %[eH] Dean- steps up to the cookie...
(07:34:39) <%[eH]> Dean- gobbles up the cookie.
(07:34:41) <@Dean-> .cookie
(07:34:42)
%[eH] Dean- steps up to the cookie...
(07:34:43) <%[eH]> Dean- has a bad aim of where his/her mouth is, and gets some crumbs in his/her eye.
(07:34:44) <@Dean-> !cookie
(07:34:45) * %[eH] Dean- steps up to the cookie...
(07:34:47) <%[eH]> Dean- gets bullied into giving the cookie to [eH] .
^Example

on $*:TEXT:/^[.!@](cookie(s)?|cookiegame)( |$)/:#:{ 
  set %prefi $iif($left($1,1) == @,msg $chan,msg $chan)
  var %cookie = $rand(1,12)
  describe $chan $nick steps up to the cookie...
  if (%cookie == 1) .timer 1 2 %prefi $nick gobbles up the cookie.
  if (%cookie == 2) .timer 1 2 %prefi $nick gobbles the cookie, but then chokes!
  if (%cookie == 3) .timer 1 2 %prefi $nick has a bad aim of where his/her mouth is, and gets some crumbs in his/her eye.
  if (%cookie == 4) .timer 1 2 %prefi but the cookie flies out of $nick $+ 's hands, and falls right into $me $+ 's mouth.
  if (%cookie == 5) .timer 1 2 %prefi $nick breaks his/her teeth biting it.
  if (%cookie == 6) .timer 1 2 %prefi $nick runs up the hill with the cookie, then loses it on his way back down.
  if (%cookie == 7) .timer 1 2 %prefi $nick gets bullied into giving the cookie to $me . 
  if (%cookie == 8) .timer 1 2 %prefi $nick grabs the cookie, but then is weighed down because $nick is weak. 
  if (%cookie == 9) .timer 1 2 %prefi $nick gets so excited, he pees his pants.
  if (%cookie == 10) .timer 1 2 %prefi $nick loses the cookie in the crowd of people in $chan $+ .
  if (%cookie == 11) .timer 1 2 %prefi $nick faints of excitment.
  if (%cookie == 12) .timer 1 2 %prefi $nick hides it down his/her pants.
}
 Respond  
`Dean   -  Feb 27, 2010

You spelled choke wrong, but great script. =-)

 Respond  
DarkCoder   -  Feb 14, 2010

Eww, atleast make a better code relevence!

on $*:TEXT:/^[.!@]Test/Si:#: $iif(@* iswm $1,msg #,notice $nick) Testing (:
 Respond  
Jethro   -  Feb 14, 2010

Yeah, and you got yourself a cookie.

 Respond  
MagicRevealer09   -  Feb 14, 2010

Oh, so it would be like

on*:TEXT:!test:#: { msg $chan Testingf (: }
 Respond  
Jethro   -  Feb 14, 2010

[ code ];your code here[ /code ] no spaces between the [ and ]

 Respond  
MagicRevealer09   -  Feb 14, 2010

Oh well, also, how do you get a code box in your Code area?

 Respond  
Jethro   -  Feb 14, 2010

I will put all the messages into a text file called cookie.txt and play it with

play -cr cookie.txt 2000

which will do the same thing without the need for $rand() and timers.

 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.