1 Attachment(s)
Only some exploding dice in a single roll
In the RPG, Arcanis, you roll two "Action" dice (2d10) and an "Attribute" die (can be anywhere from d4 to d12). The Attribute die can explode but the Action dice cannot.
After chatting with Damned, I tweaked the manager_custom_explode lua file in the Morecore ruleset and added the two (highlighted) lines. It gets me exploding dice for d4, d6, d8 and d12 but (obviously) not for d10. Still, I'm happy with the result being the feeble coder that I am. Yet, I have to ask, is there a solution that gets me across the goal line and, somehow, explodes that third d10 when your Attribute die happens to be a d10? Anyone know?
Attachment 27357
In case my attachment doesn't work, here is the relevant (twaked) section of the lua file.
for i , v in ipairs (aSavedDice) do
Debug.console("onLanded: last dice ", i, v);
if v.exploded then
w = aDice[k];
k = k + 1; -- move on to next die for next time around
v.result = v.result + w.result;
if w.result == 10 then <-----------------These are the two lines I added
v.exploded = false; <-----------------These are the two lines I added
elseif w.result == getDieMax(w.type) then
aRerollDice[j] = w.type;
j = j + 1;
v.exploded = true;
else
v.exploded = false;
end
end
end