Guest
Posts: n/a
|
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/Udi...uFAA/IMSolB/TM ---------------------------------------------------------------------~-> |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 8,232
|
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/Xdi...uFAA/IMSolB/TM ---------------------------------------------------------------------~-> |
#2 |
Guest
Posts: n/a
|
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/Wdi...uFAA/IMSolB/TM ---------------------------------------------------------------------~-> |
#3 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Change to Class Hit Dice | DrZaius | HL - d20 System | 2 | September 15th, 2008 12:43 PM |
Disks and Dice | emperor799 at earthlink.n | Card Vault | 1 | December 3rd, 2002 01:53 PM |
PK dice mechanisms | chris at wargamesworld.co | Army Builder | 4 | April 19th, 2001 12:22 PM |