cscase
September 15th, 2013, 22:10
Working on getting the stuff I set up for live to work with 3.0, and I'm running into something I don't understand. This may be more of a Workshop type question, as I don't doubt that it is more of a problem with something I'm doing than with 3.0 itself.
I am set up so that if a skill is doubleclicked, this function is called:
function onDoubleClick(x, y)
window.rollDice();
end
In the script file attached to this item, rollDice() is defined thusly:
function rollDice()
local desc = label.getValue();
ChatManager.throwDice("dice",{"d6"},0,desc);
end
This worked fine in 2.9.4, but in 3.0 it elicits an error:
Script Error: [string "campaign/scripts/charsheet_skilllistitem.lu..."]:17: attempt to call field 'throwDice' (a nil value)
I'm working with the CoC ruleset over Core. ChatManager is defined in Core, and in there, throwDice() is as follows:
function throwDice(type,dice,bonus,desc,customData)
if control then
control.throwDice(type,dice,bonus,desc,customData) ;
end
end
Can anyone point me in the right direction? Part of this may be that I'm not sure how to correctly interpret the error message.
Thanks!
I am set up so that if a skill is doubleclicked, this function is called:
function onDoubleClick(x, y)
window.rollDice();
end
In the script file attached to this item, rollDice() is defined thusly:
function rollDice()
local desc = label.getValue();
ChatManager.throwDice("dice",{"d6"},0,desc);
end
This worked fine in 2.9.4, but in 3.0 it elicits an error:
Script Error: [string "campaign/scripts/charsheet_skilllistitem.lu..."]:17: attempt to call field 'throwDice' (a nil value)
I'm working with the CoC ruleset over Core. ChatManager is defined in Core, and in there, throwDice() is as follows:
function throwDice(type,dice,bonus,desc,customData)
if control then
control.throwDice(type,dice,bonus,desc,customData) ;
end
end
Can anyone point me in the right direction? Part of this may be that I'm not sure how to correctly interpret the error message.
Thanks!