Twister Game

By Gummo on Aug 31, 2007

This is a game of twister I made on request by LittleD-the-great, by shrinking and adding to his original idea.
It works well and doesn't run more than one instance in the same channel at any one time.
It allows for colours to be used with the !twister trigger.
It can execute the no-more-than-one-instance function across multiple networks.
/twisteron turns the script on, while /twisteroff turns it off (default is on).
Enjoy!

EDIT: Updated with current script.
EDIT: Added code which was missing for some reason.

alias twisteron .enable #twister | echo $active Twister script is now ON.
alias twisteroff .disable #twister | echo $active Twister script is now OFF.

#twister on
alias -l twistnum {
  inc -e %twister.num [ $+ [ $chan ] $+ . $+ [ $network ] ]
  .timer 1 %twister.num [ $+ [ $chan ] $+ . $+ [ $network ] ] $$1-
}
on *:text:*!twister:#: {
  if (*!twister !iswm $$1) halt
  inc -e %twister.running [ $+ [ $chan ] $+ . $+ [ $network ] ]
  if (%twister.running [ $+ [ $chan ] $+ . $+ [ $network ] ] == 1) {
    unset %twister.num [ $+ [ $chan ] $+ . $+ [ $network ] ]
    msg $chan $nick Has Started Playing Twister:
    var %fall $rand(1,5)
    while (%fall < 4) {
      twistnum describe $chan Spins The Twister Board $iif(%twister.num [ $+ [ $chan ] $+ . $+ [ $network ] ],Again)
      var %colour $r(1,15)
      twistnum msg $chan $nick must put their $gettok(left hand.right hand.left foot.right foot,$r(1,4),46) on $+($chr(3),%colour,$chr(44),%colour,--)
      var %fall $rand(1,5)
    }
    if (%fall > 3) twistnum msg $chan Sorry, $nick $+ ! You fell. Better luck next time!
    .timer 1 $calc(%twister.num [ $+ [ $chan ] $+ . $+ [ $network ] ] + 1) unset %twister.running [ $+ [ $chan ] $+ . $+ [ $network ] ]
  }
  if (%twister.running [ $+ [ $chan ] $+ . $+ [ $network ] ] > 1) msg $chan Please wait your turn, $nick $+ .
}
#twister end

Comments

Sign in to comment.
Gummo   -  Mar 25, 2010

It really depends on whether or not you like seeing coloured boxes on the screen. I personally don't.

 Respond  
cptpan   -  Mar 25, 2010

This is terrible?

 Respond  
Gummo   -  Dec 04, 2008

The following piece of code:

var %fall $rand(1,5)

Appears to have disappeared. It should work now..

 Respond  
Dragon1-9-8-4   -  Nov 29, 2008

it says you started playing but then it doesnt do anything else.tell whats the problem

 Respond  
jub369   -  Jan 26, 2008

how does it work i tried nothing happens

 Respond  
Akishoot   -  Sep 25, 2007

Muahaha. I can rate finally. :D Thanks Hawkee :3

 Respond  
Gummo   -  Sep 09, 2007

Updated with $gettok. It\'s smaller now. :)

 Respond  
Hennyville   -  Sep 07, 2007

I haven\'t seen this one yet Gummo, we must play one day :D ? It\'s an original script though :)

 Respond  
napa182   -  Aug 31, 2007

lmao

 Respond  
Akishoot   -  Aug 31, 2007

Aww darnit lol. :3 Logs of Hawkee for the night

 Respond  
Akishoot   -  Aug 31, 2007

Ahh I had so much fun with this one. (I admit it. I\'m easily amused) :D I just seem to suck at twister D:. I wish I didn\'t fall as much :| Snaps his fingers. Still waiting to get 25 posts. lol.

 Respond  
guest598594   -  Aug 31, 2007

lol twister in irc :P

 Respond  
xDaeMoN   -  Aug 31, 2007

This line

$iif(%limb == 1,left hand,$iif(%limb == 2,right hand,$iif(%limb == 3,left foot,$iif(%limb == 4, right foot))))

has too many $iif\'s which is not necessary.

You can change that to

$gettok(left hand.right hand.left foot.right foot,%limb,46)

=)

 Respond  
littleD-the-great   -  Aug 31, 2007

yay first irc twister :D that i can think of

 Respond  
Godzilla   -  Aug 31, 2007

Wow, 9.5 already? >_<

 Respond  
Scakk   -  Aug 31, 2007

/me adds it to his bot

 Respond  
lexie   -  Aug 31, 2007

nice game gummy :) xx

 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.