PDA

View Full Version : Demi Dice



pedetentous
January 21st, 2015, 22:35
Hello everyone! I would like to play a game that uses demi-dice. Basically only the first half of a die is recognized, and the others are valued at 0. For example:

d6 = 1, 2, 3, 0, 0, 0
d8 = 1, 2, 3, 4, 0, 0, 0, 0

Yes, I also realize that there is the "divide by two option", but that defeats the purpose of having 50% odds of 0.

How could I go about doing this in Fantasy Grounds? Is there a relatively easy way with custom dice? I know that I could do the math myself, but it would be nice if I could have the program do it for me!

Thank you for your help. :)

~Ped

damned
January 21st, 2015, 22:48
The dice routines do not currently have all options.
In this case though the following should give you the same outcomes:
/die 1d6-3
/die 1d6-4

damned
January 21st, 2015, 22:49
or hitting -3 in modifier before using a d6 field or die etc...

Trenloe
January 21st, 2015, 23:16
The dice routines do not currently have all options.
In this case though the following should give you the same outcomes:
/die 1d6-3
/die 1d6-4
That won't work because it gives you negative numbers - a range of -2 to 3 (for 1d6-3).

pedetentous
January 21st, 2015, 23:24
Indeed, that is the problem with the simple modifier. It makes it impossible to have Fantasy Grounds add the result for me. The only way I see it is to edit the die to have sides of value 0, but I don't know how to do that. Is it extremely complicated?

damned
January 21st, 2015, 23:37
That won't work because it gives you negative numbers - a range of -2 to 3 (for 1d6-3).

Doh! Didnt think that thru very well did I!


Indeed, that is the problem with the simple modifier. It makes it impossible to have Fantasy Grounds add the result for me. The only way I see it is to edit the die to have sides of value 0, but I don't know how to do that. Is it extremely complicated?

The dice themselves are pretty much untouchable.
Trenloe did something that could possibly be adapted in the Star Wars: Edge of the Empire ruleset...

it would also be possible to code an extension that throws the dice, does the simple -adjustment and returns 0 for all negative scores...
How many possible permutations are there?

Trenloe
January 22nd, 2015, 00:30
it would also be possible to code an extension that throws the dice, does the simple -adjustment and returns 0 for all negative scores...
Using the customdie component this can be done: https://www.fantasygrounds.com/refdoc/customdie.xcp

Here's an example extension for the CoreRPG ruleset (called "Custom Dice Result"). I've just added a customdie called d000123 - it can be rolled by right-clicking on the d6 and selecting custom dice -> d000123. Or by using the /die command, for example to roll 5 of these dice use /die 5d000123

damned
January 22nd, 2015, 00:40
Awesome - thanks Trenloe - I was just starting to work on a much more complicated way of doing this - so much nicer!
And one less think for me to waste time on!

Pedentous - do you need help trying to implement this?
Download the file and place it in the %appdata%\fantasy grounds\extensions folder
Restart Fantasy Grounds and look for the Extension in the list and select it.

Modifying this should be really easy - just one file to edit and update to add in your other dice combos.

pedetentous
January 22nd, 2015, 03:35
You guys are amazing! Thank you so much for this! :)

How do I edit the extension file? I'm on a Mac Mini.

pedetentous
January 22nd, 2015, 03:39
I figured it out, thank you! How do I set it to use my own images on the die?

Trenloe
January 22nd, 2015, 03:39
How do I edit the extension file? I'm on a Mac Mini.
Change the .ext file extension to .zip and unzip the files. If you do this to a directory within the \extensions folder you can edit the files directly and when you reload Fantasy Grounds (stop/start FG or type /reload in the chat window) it will load up your changes.

Some info on modifying the ruleset here: https://www.fantasygrounds.com/forums/showthread.php?20651-Modifying-the-CoreRPG-ruleset A lot of it is relevant to modifying an extensions (basically editing the .ext extension file rather than the .pak ruleset file).

pedetentous
January 22nd, 2015, 03:41
Thank you, damned and Trenloe, for all your help! I am so grateful! :)

Trenloe
January 22nd, 2015, 03:47
I figured it out, thank you! How do I set it to use my own images on the die?
The 3D dice can't be changed (other than the colour). All you can do is change the icon that appears in the result window.

custom_dice.xml has some dice <icon> resources commented out at the end of the file - the <icon> resource assigned to d000123.1 would be displayed when the roll was a one, d000123.2 when the roll was a 2, etc.. The <icon> resource points to a graphics file within the extension or the ruleset, but there aren't any in this extension. See the d6_icon.png file in the CoreRPG ruleset (graphics\icons directory) for an example of a blank dice icon that will be populated with the number result. You can take this as a basis for a custom dice result graphic.

EDIT: Some further info in this thread: https://www.fantasygrounds.com/forums/showthread.php?20615-Custom-Dice

Also, if you don't want the numerical result of the roll to be shown on the result icons you'll need to comment out the <font name="dieresult"> section of custom_dice.xml in the extension - this activates a blank font that effectively means no result digits will be displayed on the dice result icons in the chat window - this may or may not be what you want.

pedetentous
January 22nd, 2015, 03:51
Okay, that's fine. I'll look through it, but the main thing is the functionality. Thank you for all the help. Now my brain doesn't have to fret over how to handle those dice!

damned
January 22nd, 2015, 04:15
that is much more complicated.
firstly you cant actually change the 3d rolling dice
you can change what gets displayed in the chat window - you would need to look at what Trenloe did in the Star Wars: Edge of the Empire ruleset - the Warhammer FRP ruleset probably does something similar.

ooops ninja'd - badly.

Trenloe
January 22nd, 2015, 04:51
Doing custom dice result icons IS a lot more complicated - as you need to change the die type in the dice roll result table in the ActionsManager global script package. Also, you need to use a blank dieresult font, which means that rolling normal dice show blank. So, it begins to get complex as you then need custom die icons even for the standard dice. Lots or respect to Neil G. Foster who did all of this for the WFRP3 ruleset, which the Star Wards Edge of the Empire bases all of it's dice rolling on (thanks again Neil).

But, as a first step, I've thrown together another extension (below) that adds a custom dice d6001 (you have to use dXXXX numerical names for the customdie for the /die chat command to recognise them.

EDIT: Don't run this and the other example extension at the same point - this one's called "Custom Dice Icons".

The customdie d601 has been added based off the Star Wars: Edge of the Empire boost die. Here is the result of /die 5d601:

https://dl.dropboxusercontent.com/u/39085830/Screenshots/Fantasy%20Grounds/Custom%20Dice%20Example.JPG

I'll put together a complete extension at some point that has the icons all set for the base dice - I want to ask Neil's permission to use all of his work first...

mcortez
November 1st, 2018, 18:43
I'll put together a complete extension at some point that has the icons all set for the base dice - I want to ask Neil's permission to use all of his work first...

I usually try to avoid necroposting, but I'm fairly new to the community and am tackling what appears to be an age old problem of wanting to do custom dice icons. I was able to use what you posted above to get me most of the way there - but as you've noted, it's at the cost of all the base dice icons now being "blanks."

Before I go to the effort of creating new icons for the base dice, did you ever get a chance to put together a complete extension that has icons for all of the base dice already? In my particular case I really only need a d20 -- but having the others readily available would probably be A Good Idea[tm].

Thanks!

Trenloe
November 1st, 2018, 18:57
Before I go to the effort of creating new icons for the base dice, did you ever get a chance to put together a complete extension that has icons for all of the base dice already? In my particular case I really only need a d20 -- but having the others readily available would probably be A Good Idea[tm].
Welcome to the FG forums!

I never did put one together, other priorities and all that. You can get the icons from the Star Wars: Edge of the Empire ruleset, available here: https://www.fantasygrounds.com/forums/showthread.php?24151-Star-Wars-Edge-of-the-Empire-Age-of-Rebellion-Force-and-Destiny-v2-ruleset

Now... if you don't mind maybe putting an extension together? That would be a very good idea! :)

mcortez
November 1st, 2018, 19:19
Now... if you don't mind maybe putting an extension together? That would be a very good idea! :)

Well, seeing as you've done all the hard work - I think I can at least try to go the last step and bundle it all together. Any particular attributions or licensing terms other then the OGL already included in your Star Wars Ruleset?

Trenloe
November 1st, 2018, 20:03
Well, seeing as you've done all the hard work - I think I can at least try to go the last step and bundle it all together.
That would be great!


Any particular attributions or licensing terms other then the OGL already included in your Star Wars Ruleset?
As they're graphics and pretty much stand alone, there's no need for the OGL/License stuff from the SW ruleset. Just please mention Neil G. Foster - as he put the graphics together originally.