psicodelix
October 13th, 2011, 11:34
As shows the reference document, the chatwindow throwDice function should have an optional parameter for custom data:
https://www.fantasygrounds.com/refdoc/chatwindow.xcp#throwDice
although, when I try to call the function with this parameter as follows:
control.throwDice(droptype, dice, saveobj, roll_desc, custom);
It raises an error:
[13.10.2011 10:04:42] Script Error: [string "scripts/chatmanager.lua"]:741: throwDice: Invalid parameters.
Does the throwDice function not support that parameter or am I doing something wrong?
https://www.fantasygrounds.com/refdoc/chatwindow.xcp#throwDice
although, when I try to call the function with this parameter as follows:
control.throwDice(droptype, dice, saveobj, roll_desc, custom);
It raises an error:
[13.10.2011 10:04:42] Script Error: [string "scripts/chatmanager.lua"]:741: throwDice: Invalid parameters.
Does the throwDice function not support that parameter or am I doing something wrong?