[Tinymux] Dice Program
T. Alexander Popiel
popiel at wolfskeep.com
Mon May 16 10:57:07 EDT 2005
In message: <011401c55993$07debe70$0300a8c0 at merrie>
"Merrie S" <merries at comcast.net> writes:
>
>Im having a bit of trouble with the following program, here is how I am
>creating the dice with the modifier command added on.
>
>@create Dice
>@va dice=&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}
>
> It gives me a 'Set' then a 'Huh' not sure what line its not programming
>correctly.
This sounds like it's seeing the @va... stuff as multiple lines.
When fed to the MUSH, everything from the @va on down must be entered
as a single line, with no embedded newlines. If you're copy/pasting
it, it may be adding in a newline that you don't intend...
- Alex
More information about the Tinymux
mailing list