ttuckel
May 23rd, 2012, 23:09
Hi,
Sorry for this noob question and for my bad english !
I have a problem with a script in the characteristics in my charsheet.
Actualy, the number in the characteristic is added to the dice.
But I want that the number in the characteristic determine the number of dices.
Example : val=2 > 2D6 rolls
I'm basing in the Warhammer v2 ruleset and my actual script is :
<script>
function rollDice()
local desc = getValue();
ChatManager.throwDice("dice", {"d6"}, getValue(), "Test de Puissance (" .. desc .. ")");
end
function onDoubleClick(x, y)
rollDice();
end
</script>
Anyone can help me please ? :o
Sorry for this noob question and for my bad english !
I have a problem with a script in the characteristics in my charsheet.
Actualy, the number in the characteristic is added to the dice.
But I want that the number in the characteristic determine the number of dices.
Example : val=2 > 2D6 rolls
I'm basing in the Warhammer v2 ruleset and my actual script is :
<script>
function rollDice()
local desc = getValue();
ChatManager.throwDice("dice", {"d6"}, getValue(), "Test de Puissance (" .. desc .. ")");
end
function onDoubleClick(x, y)
rollDice();
end
</script>
Anyone can help me please ? :o