PDA

View Full Version : Die Total Via Chat Command



sciencephile
August 7th, 2013, 07:41
I am attempting to use the Warhammer 40k setting, which does not have any preferences so I cannot just turn on dice totaling through an interface (like 3.5/Pathfinder). I don't have the time or patience to modify the ruleset so is there a chat command I can type in to accomplish the same function. For instance, I can type in /die reveal to reveal DM dice. What about a similar command to total dice. Thanks.

Moon Wizard
August 7th, 2013, 08:24
No. The die hide/reveal code as well as the dice totalling code is part of the ruleset, not part of the FG client; so it needs to be implemented in the ruleset.

The next version (v3.0) will increment a ruleset layering feature, so it will be easier for us as developers to improve the core functionality of rulesets without having to add every feature to every ruleset. However, the ruleset will need to be converted to use the new base ruleset layer at some point to take advantage of that, so I'm hoping the community developers will take the opportunity. The existing ruleset will continue to work as is with the next version.

Regards,
JPG

sciencephile
August 7th, 2013, 13:22
Okay, thanks.

This does help. I know that typing /die reveal in the chat does work with the ruleset so it sounds like whoever developed the ruleset defined this. I suppose I can do a search for "/die reveal" and see how they implemented this in the ruleset and possibly defined a command for totaling the dice.

Moon Wizard
August 7th, 2013, 20:02
Actually, yes.

Essentially, you will need to handle the "dice" messages in the chatwindow.onDiceLanded event, and create your own messages to be delivered by the chatentry.deliverMessage or the Comm.deliverChatMessage functions. One of the parameters of the message structure is a "dicedisplay" attribute, which will show the total of dice messages if the value is set to 1.

https://www.fantasygrounds.com/refdoc/chatwindow.xcp
https://www.fantasygrounds.com/refdoc/chatentry.xcp
https://www.fantasygrounds.com/refdoc/Comm.xcp

Cheers,
JPG