Referencing tokeninstance objects
I was wondering if someone could point me in the right direction. I'm not new to programming, but I am new to lua.
I wanting to use two functions from tokeninstance, onActivation and setActive. I'm not sure how to reference the functions. Trying something like:
if setActive() == true then
Debug.console('setActive called')
end
This gives me a console error "Attempt to call global 'setActive' (a nil value)". Do I have to call it like tokeninstance.setActive()? Did I miss defining it as a global?
Thanks for any help.