Russian Roulette

By SoxFarxAway777 on Aug 30, 2008

A random Russian Roulette game I made. If it says Bang, you get kicked, otherwise, it tells you that you're safe. I just made this to pass time, and to practice $rand and vars

on *:TEXT:-RR:#: {
  var %RR $rand(1,6)
  if (%RR == 1) { msg $chan BANG! You're dead, $nick $+ ! | /kick $chan $nick You just lost at Russian Roulette! }
  if (%RR == 2) { msg $chan That was a close one, $nick $+ , but you're safe this time! }
  if (%RR == 3) { msg $chan That was a close one, $nick $+ , but you're safe this time! }
  if (%RR == 4) { msg $chan BANG! You're dead, $nick $+ ! | /kick $chan $nick You just lost at Russian Roulette! }
  if (%RR == 5) { msg $chan That was a close one, $nick $+ , but you're safe this time! }
  if (%RR == 6) { msg $chan BANG! You're dead, $nick $+ ! | /kick $chan $nick You just lost at Russian Roulette! }
}

Comments

Sign in to comment.
Viper01   -  Sep 01, 2008

Ah, i remember this .-.

this was one of my very first scripts. i built it off of an 8ball script. i think i might update it later on, who knows?

btw;

if (%RR == 1) { msg $chan BANG! You're dead, $nick $+ ! | /kick $chan $nick You just lost at Russian Roulette! }
  if (%RR == 2) { msg $chan That was a close one, $nick $+ , but you're safe this time! }
  if (%RR == 3) { msg $chan That was a close one, $nick $+ , but you're safe this time! }
  if (%RR == 4) { msg $chan BANG! You're dead, $nick $+ ! | /kick $chan $nick You just lost at Russian Roulette! }

dont need all those brackets, though a timer would be a good addition as not to flood the channel with overlapping outcomes .-.

 Respond  
napa182   -  Aug 31, 2008

well Russian Roulette is played with 1 bullet with 6 chambers
and you should add some flood control as well as checking if the one running the script is op in the room. maybe somthing like this

on @*:TEXT:-RR:#: {
  if (!%RRflood) {
    var %RR $rand(1,6)
    set -u4 %RRflood on
    if (%RR == 1) { msg $chan BANG! You're dead $+ , $nick $+ ! | kick # $nick You just lost at Russian Roulette! }
    else { msg $chan That was a close one $+ , $nick $+ , but you're safe this time! }
  }
}
 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.