Steve, now that the script has changed, I'm lost with my difficulty dice (glad I tested before implementing into live campaign).
Would it be possible for you to add a difficulty "feature" that acts just like the skill, so I can call
"!eed difficulty(4|2)", for example which would then roll 2 Purple Difficulty Dice and 2 red challenge dice?
I use this for macros I've built to handle opposed checks.
Originally, I had added this code:
//add difficulty “command”
var regexDifficulty = /difficulty\((.*?)\)/;
//Create difficulty dice var difficultyDice = function(dice) { var diceArray = dice.split('|'); var num1 = expr(diceArray[0]); var num2 = expr(diceArray[1]); var totalDiff = Math.abs(num1-num2); var totalChall = (num1 < num2 ? num1 : num2); Argv.Difficulty = Argv.Difficulty + totalDiff; Argv.Challenge = Argv.Challenge + totalChall; }
// Create difficulties for (var i = 0; i < commandArgv.length; i++) { var difficultyMatch = commandArgv[i].match(regexDifficulty); difficultyMatch = (difficultyMatch ? difficultyMatch[1] : false); if (difficultyMatch) { difficultyDice(difficultyMatch); } }
|
into the previous EotE dice roller, and it worked wonderfully for me.
I find it really useful to be able to call difficulties like this, and I think others would too...
Cheers