ActionsManager.registerModHandler for Table Roll Script
Hey everyone,
I'm not sure if I can articulate this clearly... I have a button on the character sheet that rolls a specified die on a specified table, and the roll is modified by one of the ability score modifiers. I want to set up a modRoll function that checks for any ability effects from the combat tracker. I tried this:
Code:
function onInit()
ActionsManager.registerModHandler("table", modRoll);
end
Here is my performRoll function:
Code:
function performRoll(draginfo, rActor)
local rRoll = getRoll(rActor, rTarget);
TableManager.performRoll(nil, rActor, rRoll, true);
end
The modRoll callback (not shown here) does not run. Does anyone have any ideas why this isn't working? Maybe this doesn't work with the TableManager.performRoll function?
Thanks,
Leo