Open brunocalado opened 1 year ago
This should be done in the preCreateToken hook.
This should be done in the preCreateToken hook. preCreateToken generates an error. createToken work as in the video. Thank you for your response.
cardToken.updateSource()
would be used to set properties of the token in the preCreateToken hook. I do not know if such a thing is possible with TokenMagic. You may have to bypass the TokenMagic.addFilters function and do what it does in the hook, which I expect is adding flags in flags.tokenmagic
or something like that.
Description: I'm seeking assistance with getting the TokenMagic World Script to work properly. I've attached the code snippet that I'm currently using. The issue I'm experiencing is that the script only activates the effects after I interact with the card on the canvas. Ideally, the effects should be triggered immediately regardless of how I place the card. I have also attached a video demonstrating this behavior.
Script
https://github.com/xaukael/card-tokens/assets/4999783/27337817-4a55-439a-bdb6-7aaf41876314