View Full Version : Possible to remove dice in an extension?
Heilemann
February 2nd, 2014, 18:02
I want to remove the dice that aren't used by TOR (I'm using Valarian's TOR extension for Foundation) in an extension I'm building with my own customizations. Can it be done?
Trenloe
February 2nd, 2014, 18:18
You need to remove the <die> definitions for those you don't want. Details on the definition is provided here: https://www.fantasygrounds.com/refdoc/die.xcp
Search through the ruleset you are interested in to find where the <die name=... entries are defined. For example, these are in the gameelements.xml file for the CoreRPG ruleset.
Then in your extension use the same file but comment out/remove the die definitions you don't want.
Heilemann
February 2nd, 2014, 18:40
So I can't disable it, I have to essentially overwrite it at the root, so to speak. And if I simply include the file, it'll overwrite the ruleset's file? I don't have to <include > in my extension?
Valarian
February 2nd, 2014, 18:43
Disabling it means changing the XML. From FG3.0 you can take out the die definition and the die won't appear on the "tabletop". The extension overrides the code in the main ruleset.
Trenloe
February 2nd, 2014, 18:45
And if I simply include the file, it'll overwrite the ruleset's file? I don't have to <include > in my extension?
You'll need to specify your modified file with <include> in your extension so that the extension loads it and so overwrites the ruleset file. Just like usual extension operations: https://www.fantasygrounds.com/modguide/extensions.xcp
Moon Wizard
February 3rd, 2014, 07:25
Actually, in v3.0, the die and customdie tags support the merge="delete" attribute. So, you can remove dice by specifying the tag you want to delete with that attribute.
An example from the 3.5E ruleset built on top of the CoreRPG ruleset to remove the fudge die:
<die name="dF" merge="delete" />
Regards,
JPG
Blackfoot
February 3rd, 2014, 15:38
Wow. This is great, it solves the problem of all the extra dice floating around in the Rolemaster Ruleset and it helps me too in Champions where we only use D6's. Is it possible to move the location of the dice on the table as well? (I'm sure it is.. I'm just being lazy).
Valarian
February 3rd, 2014, 15:56
There are right-click options to move and lock the die gathering location on the tabletop.
Nickademus
February 3rd, 2014, 15:58
I imagine if there is a way to change a location variable while FG is running, said variable could be set in the ruleset prior to starting.
Trenloe
February 3rd, 2014, 16:05
Is it possible to move the location of the dice on the table as well? (I'm sure it is.. I'm just being lazy).
Use <position> https://www.fantasygrounds.com/refdoc/die.xcp
Blackfoot
February 3rd, 2014, 17:01
I guess in my laziness I wasn't clear enough. What I was really looking for was:
In 'gameelements.xml' for your ruleset add this...
<die name="d6">
<icon>d6icon</icon>
<position>120,-68</position>
</die>...to reposition the "d6" on a permanent basis.
Trenloe's answer really covered it.. as usual... but I was being lazy. :)
Nickademus
February 3rd, 2014, 17:05
Ah, good. Now I can change the dice in my game to be scattered around the desktop... always.
"What, you can't find the d8? Have you tried looking under the chat window?" *snicker*
Blackfoot
February 3rd, 2014, 19:13
On a related note:
I'm wondering about a graphical representation for 'd3' I believe I understand how to handle how it looks on the character sheet... but is there a way to make it look different when it rolls and/or on the desktop?
My thought was to possibly draw a lighter value line through the middle of the square die to represent the d3... so essentially the graphics are all the same but modified.
Moon Wizard
February 3rd, 2014, 19:33
No way to make it look different on the desktop or rolling. The 3D dice models are not modifiable.
Regards,
JPG
Heilemann
February 3rd, 2014, 23:34
Fantastic! This let me throw out everything but the d6 and d12 for The One Ring; works like a charm.
Powered by vBulletin® Version 4.2.1 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.