PDA

View Full Version : Custom Die Model Issues



malvok
March 20th, 2013, 14:48
I want to have a custom die that can be rolled from the radial menu. I want it to be d66. I've almost got it working but there are two issues.

1) When I select d66 from the d6 radial menu only one die goes on my cursor.

2) This one d6 die is then tossed and recorded in the chat window. Then my d66 die kicks in and tosses two d6 like I want.

How can I go about putting two d6 on my cursor when I select my d66 die from the radial menu?

How can I hide or clear the first single d6 roll that takes place before my d66 roll fires?

Here is my code in gameelements.xml. (I'm modding the 3.5e ruleset).


<customdie name="d60">
<model>d6</model>
<script>
function onValue(result)
return result*10;
end
</script>
</customdie>
<customdie name="d66">
<model>d6</model>
<menuicon>icon_d66</menuicon>
<position>225, -78</position>
<noreset></noreset>
<script>
function onValue(result)
dieList = {};
table.insert(dieList, "d60");
table.insert(dieList, "d6");
Comm.throwDice("dice", dieList, 0, "d66")
end
</script>
</customdie>

Attached is a screenshot of the issue.

malvok
March 20th, 2013, 15:09
There is another issue.

Die modifiers are only applied to the d6 that rolls before my d66.

malvok
March 20th, 2013, 17:21
Nevermind. I've decided to do it a different way.