Doswelk
May 17th, 2007, 09:01
I added a custom die a D2 using the following code:
<customdie name="d2">
<model>d4</model>
<menuicon>customdice</menuicon>
<script>
function onValue(result)
return math.ceil(result/2);
end
</script>
</customdie>
All is well as long as you roll a single d2, but as soon as you roll more then 1d2, all the extra D2s result in -1
<customdie name="d2">
<model>d4</model>
<menuicon>customdice</menuicon>
<script>
function onValue(result)
return math.ceil(result/2);
end
</script>
</customdie>
All is well as long as you roll a single d2, but as soon as you roll more then 1d2, all the extra D2s result in -1