Roulette

By supergeo on Dec 20, 2005

You don't have to set any of the options if you don't want to, the defaults are you don't part if you get shot and you are a male. I saw another roulette game where there's a bot and people can play through that, this is for yourself. You have about a 17% chance of losing.

Edit: Now, the snippet can be used by someone else. !roulette for someone else to use. Please note that by default remote roulette is off, so you have to turn it on for others to be able to use it. Also, if they play remote roulette, it will follow your parting settings, so if they lose and part is on it will kick them (assuming you have ops), and if they lose and part is off, it won't kick them.

Roulette {
  if (%mof == $null) set %mof male
  if (%nick == $null) set %nick $me
  if (%nick != $null) && (%remoteroulette == on) 
  %nick puts a gun to %mof head.
  timer 1 1 msg $chan There are 6 spaces. One has a bullet in it, the other five are empty.
  %nick pulls the trigger...
  set %resultr $rand(1,6)
  if (%resultr == 1) timer 1 1 msg $chan Click!
  if (%resultr == 2) timer 1 1 msg $chan Click!
  if (%resultr == 3) timer 1 1 msg $chan Click!
  if (%resultr == 4) timer 1 1 msg $chan Click!
  if (%resultr == 5) timer 1 1 msg $chan Click!
  if (%resultr == 6) {
    timer 1 1 msg $chan Bang!
    if (%dead == leave) {
     if (%nick == $me) part
     else kick %nick $chan
     }
    }
   unset %nick
   }

menu * {
 Roulette
 .Play
 .Refer to self as male: set %mof his
 .Refer to self as female: set %mof her
 .Part if shot: set %dead leave
 .Don't part if shot: unset %dead 
 .Turn On Remote Roulette: set %remoteroulette on
 .Turn Off Remote Roulette: unset %remoteroulette
}

on *:Text:!roulette:#:{
 set %nick $nick
 roulette
}

Comments

Sign in to comment.
Shady187   -  Apr 30, 2011

i have loaded this into my remotes tab, saved as, turned on, and everything. typed !roulette using my bot and my regular nick and nothing happens. any help?

 Respond  
FordLawnmower   -  Feb 03, 2010

The problem is here Sharpshot203.
On line 1

Roulette {

Should be:

alias Roulette {
 Respond  
Sharpshot203   -  Feb 03, 2010

I have coped and pasted this code in the remotes sections on turned it on but when people try to do !Roulette it doesn't go off. Help please? haha

 Respond  
supergeo   -  Dec 22, 2005

Done. Since I added that feature, I added an on - off switch for it.

 Respond  
Whatever   -  Dec 20, 2005

Interesting... perhaps you could make it such that other people can play it as well?

 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.