This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on('ready', function(){ | |
'use strict'; | |
var diceResults = diceAction(8,7,true); | |
var actionResult = diceResults.RollResult; | |
var damage = diceResults.DamageResult; | |
sendChat("","New Result"); | |
sendChat("","Action Result: "+actionResult); | |
sendChat("","Damage Result: "+damage); | |
function diceAction(nDice,targetNumber,damageFlag){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on('ready',function(){ | |
var diceResults = diceAction(8,7,true) | |
var actionResult = diceResults.RollResult | |
var damage = diceResults.DamageResult | |
log("Done") | |
function diceAction(nDice,targetNumber,damageFlag) { | |
var diceCounter = nDice | |
var actionTotal = 0 | |
var diceResults |