Fw: [Tinymux] Global Dice
Merrie S
merries at comcast.net
Tue May 10 09:15:11 EDT 2005
Oh thank you both very much!
Merrie
----- Original Message -----
From: Jeffrey Bodenstein
To: tinymux at tinymux.org
Sent: Tuesday, May 10, 2005 9:11 AM
Subject: Re: Fw: [Tinymux] Global Dice
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Merrie S wrote:
>
> ----- Original Message -----
> *From:* Merrie S <mailto:merries at comcast.net>
> *To:* Tiny Mux <mailto:tinymux at tinymux.org>
> *Sent:* Tuesday, May 10, 2005 8:36 AM
> *Subject:* [Tinymux] Global Dice
>
> I would like to ask a favor please, does anyone have or has made a
> basic d6 or d20 dice program that can be put in room 2 to make it
> global?
>
> Im learning mush code but I do not want to mess up the code for the
> dice.
>
> Thank you ahead of time for this information.
>
> Merrie
You can try these too.. These will allow you to roll any number of
dice with any number of sides. Example @roll 1d20. Also I wrote an
additional part in case you need modifiers such as a bonus. @roll
1d2+2 - I've added a bit of code to let you know if you rolled a
natural say on a 1d20 you rolled a 20. It may be crude but it works
for my game just fine.
&CMD_ at ROLL Global Commands=$@roll
*d*:[setq(1,%0)][setq(2,%1)][setq(3,die(%0,%1))][set (%#, die: %0D%1
%/ %q3)];@switch gte(strlen(%1),3)=0,{@switch
eq(%q3,mul(%0,%1))=1,{@pemit %#=%[Dice %0D%1:%] %q3
%ch%crNatural!!!},{@pemit %#=%[Dice %0D%1:%] %q3}}
&CMD_ at ROLL_MOD Global Commands=$@roll
*d*+*:[setq(2,die(%0,%1))][setq(3,add(%q2,%2))];@switch
eq(%q2,mul(%0,%1))=1,{@pemit %#=%[Dice %0D%1+%2:%] %q3
%ch%crNatural!!!},{@pemit %#=%[Dice %0D%1+%2:%] %q3}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCgLLsQYI/uek9VLIRAo8HAJwM+3NN/HgTB62KrcXQqNemo712IwCg2G2m
VvbWYcv8bsh9wOZrQaZ/b5A=
=bhVT
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
_______________________________________________
Tinymux mailing list
Tinymux at tinymux.org
http://www.tinymux.org/mailman/listinfo/tinymux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.tinymux.org/pipermail/tinymux/attachments/20050510/a2770c5d/attachment.html
More information about the Tinymux
mailing list