Maspalio
December 6th, 2020, 13:07
Hello,
I'm trying to modify very simply the 3.5E Ruleset to change the dice rolled for AbilityAction, having read Trenloe's explanations. At first sight, it works fine and rolls a d6 instead of a d20 :
function getRoll(rActor, sAbilityStat)
local rRoll = {};
rRoll.sType = "ability";
rRoll.aDice = { "d6" };
rRoll.nMod = ActorManager2.getAbilityBonus(rActor, sAbilityStat);
rRoll.sDesc = "[ABILITY]";
rRoll.sDesc = rRoll.sDesc .. " " .. StringManager.capitalize(sAbilityStat);
rRoll.sDesc = rRoll.sDesc .. " check";
return rRoll;
end
Now, how would you tell it to roll two d6 and not just one?
I've tried different syntaxes but nothing works. (2d6, d6+d6, ...)
Any help would be greatly appreciated.
I'm trying to modify very simply the 3.5E Ruleset to change the dice rolled for AbilityAction, having read Trenloe's explanations. At first sight, it works fine and rolls a d6 instead of a d20 :
function getRoll(rActor, sAbilityStat)
local rRoll = {};
rRoll.sType = "ability";
rRoll.aDice = { "d6" };
rRoll.nMod = ActorManager2.getAbilityBonus(rActor, sAbilityStat);
rRoll.sDesc = "[ABILITY]";
rRoll.sDesc = rRoll.sDesc .. " " .. StringManager.capitalize(sAbilityStat);
rRoll.sDesc = rRoll.sDesc .. " check";
return rRoll;
end
Now, how would you tell it to roll two d6 and not just one?
I've tried different syntaxes but nothing works. (2d6, d6+d6, ...)
Any help would be greatly appreciated.