Dice Script

By Noa Destiny on Nov 04, 2007

Well i was :|:| Bored |:|: So i made a dice game script.

Comments

Sign in to comment.
yukisokudo   -  Apr 03, 2011

I am running a World of Darkness game on irc, but need a better dice roller. What I need it to do is the following:

If a user types roll X then it needs to roll X ten-sided dice, and display each roll.

Eg:

<User> I try and shoot him.
<@Me> Ok. His defence is 2, your Dex+Firearms is 7 and his defence applies as it is point blank.
<@Me> 5 dice then.
<User> roll 5
* @Me User rolls 5 dice: 1, 3, 10, 7, 8

If possible it should give the output with mIRC color codes, so the text should be 0,1 (White on Black) except for:
10 : Bright Green on Black
8 & 9 : Dark Green on Black
2 to 7: White on Black
1 : Red on Black.

Please post the code snippet both here and in the code snippet section of this site...
You can check out the basic rules of World of Darkness on www.white-wolf.com, there are several "demo" games, but the one for Vampire: the Requiem is both a small download and informative about the mechanics.

Thanks,
Yuki.
[/i]

 Respond  
Sharky_Dude   -  Mar 25, 2011

o.0
OMG dude you need some sleep. No doubt you can code but wtf was you thinking?

 Respond  
Ghost-writer   -  Jul 25, 2009

WTH all this for on:TEXT:!dice:#: msg $chan rand(1,50)

 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.