Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

API: Adding Custom Token marker

Hello, Simple question regarding setting a custom token marker.  I'm trying to use the following code snip to set a custom token marker, it is not working.      let oTarget = getObj('graphic', target_id);               oTarget.set("shield::5817826", true);      oTarget.set("status_blue", true); "shield::5817826" is the correct value for the custom marker, found when the marker is set manually. The blue circle set in on the following line of code and works. Is this the correct way to set a custom marker?  Thank you.
1675501549

Edited 1675501693
Andrew R.
Pro
Sheet Author
TokenMod uses a library libTokenMarkers to handle Custom Token Markers, so perhaps you should use that too?
Thank you, Andrew. Looking to see if that will work for me.