• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Dice Syntax

  • Thread starter Thread starter errett at triusenterprise
  • Start date Start date
E

errett at triusenterprise

Guest
Hi guys -

I've been trying to get the dice syntax deal figured out and need a
hand. I want the stat output to use dice syntax but I can't seem to
figure out how to get the data into the correct format.

My datadef for the pertinent stats looks like:

CS | 3 | 0 | 2.0 | 6.0 | 3 | 0 | 0 | 0 | . | . | .
Cw | 3 | 0 | 1.0 | 6.0 | 3 | 0 | 0 | 0 | . | . | .
CV | 3 | 0 | 3.0 | 12.0 | 1 | 1 | 0 | 0 | . | . |
&CS+&Cw

I am not sure if the derived value has a restriction on it or I just
doing something else wrong. How should I format the data field to
achieve something like "1D6" in the output?

Thanks for any ideas!
Errett



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Do you need to encrypt all your online transactions? Find
the perfect solution in this FREE Guide from VeriSign.
http://us.click.yahoo.com/y7NapD/UdiDAA/9ZuFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
The "dice syntax" field within definition files is generally not used. It
was added for ONE game system that barely saw the light of day and then
disappeared. The field's purpose is to allow a game that has a stat like
"2d6+1d4" to be displayed and handled appropriately internally.

If you want to simply have a value like "3d6" displayed, then you need to
be specifying the "prefix/suffix" field. For example, if the stat value
ranges from 1d6 to 5d6, you could assign that stat a value ranging from 1
to 5. Then by using the "prefix/suffix" field, you would specify a value of
">d6" to append "d6" to each stat being displayed.

If your stat values are normally just numeric values and only sometimes
have the "xd6" syntax, then you'll need to specify those exceptions as text
stats. You can do this via the "attr" unit attribute and the "stxt" option
attribute (plus a few others).

Hope this helps,
Rob


At 06:22 PM 2/20/2002 +0000, you wrote:
>Hi guys -
>
>I've been trying to get the dice syntax deal figured out and need a
>hand. I want the stat output to use dice syntax but I can't seem to
>figure out how to get the data into the correct format.
>
>My datadef for the pertinent stats looks like:
>
>CS | 3 | 0 | 2.0 | 6.0 | 3 | 0 | 0 | 0 | . | . | .
>Cw | 3 | 0 | 1.0 | 6.0 | 3 | 0 | 0 | 0 | . | . | .
>CV | 3 | 0 | 3.0 | 12.0 | 1 | 1 | 0 | 0 | . | . |
>&CS+&Cw
>
>I am not sure if the derived value has a restriction on it or I just
>doing something else wrong. How should I format the data field to
>achieve something like "1D6" in the output?
>
>Thanks for any ideas!
>Errett


---------------------------------------------------------------------------
Rob Bowes (rob@wolflair.com) (650) 726-9689
Lone Wolf Development www.wolflair.com


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
When building an e-commerce site, you want to start with a
secure foundation. Learn how with VeriSign's FREE Guide.
http://us.click.yahoo.com/17NapD/XdiDAA/9ZuFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
OK. I have been using pre/suffixing and thought maybe this would
shortcut some of the work on a new system I am creating. If re-
implemented it seems it could cut down on the work when taking raw
data from something like excel w(here it is convenient to work with
integers) to a dice syntax which has 'intelligence' in that it knows
that when the dice is D6 and the value is 7 that the proper out put
is 1D6+1 - or something similar. No big shake though, I'll just write
a quick preparser.

Thanks for the reply,
Errett


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Pinpoint the right security solution for your company - FREE
Guide from industry leader VeriSign gives you all the facts.
http://us.click.yahoo.com/07NapD/WdiDAA/9ZuFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
Back
Top