MadBeardMan
January 6th, 2019, 21:59
Greetings All,
I've got two sets of dice for the D10's, Red and Black.
What I want to do is swap out the default D10 in the rRoll, and put in my D10.
Odd thing is when I add a new die type, it defaults to a D20, even if I set the new die to the D10 default.
In my gameElements.xml
<die name="d10_h">
<icon>d10hungericon</icon>
</die>
In my graphics_icons.xml
<!-- Rolls -->
<icon name="d10icon" file="graphics/icons/d10_icon.png" />
<icon name="d10hungericon" file="graphics/icons/d10_hungericon.png" />
And in my code that swaps the normal D10 for the modified D10.
for i=nDiceRequired,(nDiceRequired-nHungerDice)+1,-1 do
rRoll.aDice[i] = "d10_h"
end
That works when it shows the dice results, but if I drag the dice, I'll have 3 x D10 and 1 x D20.
This is now FIXED. Moon Wizard states a model is needed, so the following code works:
<die name="d10h">
<icon>d10hungericon</icon>
<model>d10</model>
</die>
Cheers
MBM
I've got two sets of dice for the D10's, Red and Black.
What I want to do is swap out the default D10 in the rRoll, and put in my D10.
Odd thing is when I add a new die type, it defaults to a D20, even if I set the new die to the D10 default.
In my gameElements.xml
<die name="d10_h">
<icon>d10hungericon</icon>
</die>
In my graphics_icons.xml
<!-- Rolls -->
<icon name="d10icon" file="graphics/icons/d10_icon.png" />
<icon name="d10hungericon" file="graphics/icons/d10_hungericon.png" />
And in my code that swaps the normal D10 for the modified D10.
for i=nDiceRequired,(nDiceRequired-nHungerDice)+1,-1 do
rRoll.aDice[i] = "d10_h"
end
That works when it shows the dice results, but if I drag the dice, I'll have 3 x D10 and 1 x D20.
This is now FIXED. Moon Wizard states a model is needed, so the following code works:
<die name="d10h">
<icon>d10hungericon</icon>
<model>d10</model>
</die>
Cheers
MBM