The easiest way...
Clone /explode roll to /battled6
Modify this function
toQuote:
function getDieMax(sType)
Debug.console("getDieMax: ", sType);
local sDie = string.match(sType, "d(%d+)");
if tonumber(sDie) > 1000 then
tempmax = tonumber(sDie);
while tempmax > 20 do
tempmax = tempmax - 1000;
end
else tempmax = tonumber(sDie);
end
max = tempmax;
return max;
end
and use the following dice string:Quote:
function getDieMax(sType)
Debug.console("getDieMax: ", sType);
local sDie = string.match(sType, "d(%d+)");
tempmax = tonumber(sDie) max = tempmax;
return max;
end
/battled6 1d2006+1d6
the green d6 (d2006) wont explode under any circumstances then
You then want to change this (roughly on line 65 depending on above changes)
toCode:if w.result == getDieMax(w.type) then
and that should work...Code:if w.result == getDieMax(w.type) and aDice[1].result == 6 then

