Hi all,
I'm having trouble with `setWithWorker`. It sets the value and triggers the event but there's a function call in my event, which works when called by the sheet worker normally but is undefined when called via `setWithWorker`. Any ideas?
Here's the function definition in the sheetworker (defined before the event trigger):
Here's the event trigger which calls the function:
Here's the error message from the API Script log:
"change:PS_rolled"
"ReferenceError: update_ability is not defined"
"ReferenceError: update_ability is not defined\n at Array.eval (eval at messageHandler (evalmachine.<anonymous>:284:6), <anonymous>:518:5)\n at self.trigger (evalmachine.<anonymous>:79:37)\n at messageHandler (evalmachine.<anonymous>:287:11)\n at process.<anonymous> (/home/node/d20-api-server/node_modules/tiny-worker/lib/worker.js:65:55)\n at emitTwo (events.js:106:13)\n at process.emit (events.js:194:7)\n at process.nextTick (internal/child_process.js:766:12)\n at _combinedTickCallback (internal/process/next_tick.js:73:7)\n at process._tickCallback (internal/process/next_tick.js:104:9)"