RiskRoll

By Snipes on Nov 05, 2009

This is a simple script that is a basic chance game. Type !Risk to trigger it and follow the instructions from there on out.

This is my first script so try to go easy.

>>>RiskRoll By Snipes<<<

on *:TEXT:!Risk:#:{
  set %chanced $nick
  set %chancenum $rand(1,3)
  msg $chan 0,1 %chanced has taken a Risk! Type 8!RiskRoll0 to go! You have 10 seconds.
  .timerrisk 1 1 .notice %chanced 1 
  .timerrisk 1 2 
  .timerrisk 1 3 
  .timerrisk 1 4  
  .timerrisk 1 5 .notice %chanced 5 
  .timerrisk 1 6 
  .timerrisk 1 7 
  .timerrisk 1 8 
  .timerrisk 1 9 
  .timerrisk 1 10 .notice %chanced 10
  .timerrisk 1 16 msg $chan 0,1Stop waiting around on me man D:
  .timerrisk 1 16 unset %chanced 
}
on *:TEXT:!RiskRoll:#:{
;1
  if ($nick = %chanced) {
;2
    if (%chancenum == 1) {
;3
      msg $chan 0,1You've passed. Way to go!
      unset %chanced
      timerrisk* off
      halt
    }
;3
}
;2
    if ($nick = %chanced) {
;2
      if (%chancenum == 2) {
;3
        msg $chan 0,1You fried to a crisp D:
        unset %chanced
        timerrisk* off
        halt
      }
;2
}
;3

      if ($nick = %chanced) {
;2
        if (%chancenum == 3) {
;3
          msg $chan 0,1You exploded. That's gotta hurt!
          unset %chanced
          timerrisk* off
          halt
        }
;3
}
;2
}
;1

Comments

Sign in to comment.
WorldDMT   -  Nov 06, 2009

timer* off !!! that's too bad u'll stop all timers also the timer of other adons

use timerrisk

.timerrisk 1 1 .notice %chanced 1
.timerrisk 1 2 .notice %chanced 2

and timerrisk off

 Respond  
Ghost-writer   -  Nov 06, 2009

Before the really long stuff, for the first few lines you dont have to spam the noob, and you can name your timers so you dont unset all.
Next time use the var command instead of set, so you dont have to unset it after, Var %chanced $nick - No need to unset after.

on *:TEXT:!RiskRoll:#:{
  if ($nick = %chanced) { 
    if (%chancenum == 1) {
      msg $chan 0,1You've passed. Way to go! 
      unset %chanced
      timer* off 
      halt
    }
    if ($nick = %chanced) {
      if (%chancenum == 2) {
        msg $chan 0,1You fried to a crisp D:
        unset %chanced
        timer* off
        halt
      }
      if ($nick = %chanced) {
        if (%chancenum == 3) {
          msg $chan 0,1You exploded. That's gotta hurt!
          unset %chanced
          timer* off
          halt
        }

You probobly put the { in at the end and missed a closing bracket for each of them. Count it off :)!

on *:TEXT:!RiskRoll:#:{
;1
  if ($nick = %chanced) { 
;2
    if (%chancenum == 1) {
;3
      msg $chan 0,1You've passed. Way to go! 
      unset %chanced
      timer* off 
      halt
    }
;3
}
;2
    if ($nick = %chanced) {
;2
      if (%chancenum == 2) {
;3
        msg $chan 0,1You fried to a crisp D:
        unset %chanced
        timer* off
        halt
      }
;2
}
;3

      if ($nick = %chanced) {
;2
        if (%chancenum == 3) {
;3
          msg $chan 0,1You exploded. That's gotta hurt!
          unset %chanced
          timer* off
          halt
        }
;3
}
;2
}
;1

Try thtat instead.

 Respond  
blitzz   -  Nov 05, 2009

You miss alot of end brackets there..

 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.