PDA

View Full Version : API for map loaded and initial token dropped



GKEnialb
September 1st, 2022, 01:39
Is there an API (or some other method) to tell when a map has completed loading / displayed? I need to do some stuff to tokens only once and the best time to do it is after the map is up and ready to go. On a semi-related topic, is there a way to tell when a token has been dropped onto a map for the first time (whether it was originally on another map or not)? Thanks.

Moon Wizard
September 1st, 2022, 04:04
You would need to do that in a Token.onAdd handler; just like the one used in the TokenManager in CoreRPG.

Regards,
JPG

GKEnialb
September 1st, 2022, 04:08
Thanks for the quick response! I'll take a look.