Dice Roller, coin tosser

By Soxide on Jul 06, 2006

Dice roller

just paste it into remotes and type !roll and if you want a biiger than 6 sided dice click !roll 7 ^_^
::
Coin toss
just type !toss its a simple heads or tails

on *:TEXT:!toss*:#: { 
  set %coin $rand(1,2)
  notice $nick You tossed The coin! 
  if %coin == 1 {
    notice $nick it landed on heads
  }
  if %coin == 2 {
    notice $nick it landed on tails
  }
  unset %coin
}

on *:TEXT:!roll*:#: { 
  If $2 == $null {
    set %roll $rand(1,6)
    notice $nick You Have rolled a 6 sided dice
    .timer 1 2 notice $nick it has landed on %roll
  }
  if $2 != $null {
    set %diceno $2
    set %roll $rand(1,%diceno)
    notice $nick You Have rolled a %diceno sided dice
    .timer 1 2 notice $nick it has landed on %roll
  }
  unset %roll
  unset %diceno
}

Comments

Sign in to comment.
QuickStep   -  Aug 05, 2006

We already have too many of these useless scripts imho

on :TEXT:!toss:#:notice $nick It landed on $iif($r(0,1),heads,tails)
on :TEXT:!roll:#:notice $nick You have rolled $r(1,$iif($2,$2,6))

 Respond  
Soxide   -  Aug 05, 2006

Yea. i just made it quickly for a firnd and thought seeing as i havent been on here for ages id post it :D

 Respond  
jonypaul   -  Jul 24, 2006

Easy and works!
I think that in time (5 minutes) it\'ll get boring, anyway good job.

 Respond  
sean   -  Jul 07, 2006

on 1:text:!toss:: { $iif($rand(1,2) == 1,notice $nick it landed on heads!,notice $nick it landed on tails!) }

 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.