Xarxus
December 30th, 2020, 20:00
I've some problem to understand how to use customdice.
What I want (it's only a test to understand) is to remove all dices and add a custom with d10 (or d100) icon.
To remove each dice I added merge="delete" for every die in gameelement.xml.
And till now everything seems ok. No dice is shown.
So I added this code (first step is I want to see the dice):
<customdie name="dMyDice">
<icon>d10icon</icon>
<model>d10</model>
<menuicon>customdice</menuicon>
<script>
function onValue(result)
local modresult = 50;
return modresult; -- Yes, always return 50
end
</script>
</customdie>
<die name="dMyDice1">
<icon>d10icon</icon>
<position>120,-68</position>
</die>
But still no dice is shown. I'm sure I'm missing something, but I don't guess what.
What I want (it's only a test to understand) is to remove all dices and add a custom with d10 (or d100) icon.
To remove each dice I added merge="delete" for every die in gameelement.xml.
And till now everything seems ok. No dice is shown.
So I added this code (first step is I want to see the dice):
<customdie name="dMyDice">
<icon>d10icon</icon>
<model>d10</model>
<menuicon>customdice</menuicon>
<script>
function onValue(result)
local modresult = 50;
return modresult; -- Yes, always return 50
end
</script>
</customdie>
<die name="dMyDice1">
<icon>d10icon</icon>
<position>120,-68</position>
</die>
But still no dice is shown. I'm sure I'm missing something, but I don't guess what.