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 .
×
May your rolls be chill this holiday season!
Create a free account

Initiative Highlighter with Waypoints

I tried to use this initiative highlighter API script, but every time the aura flashes, the waypoints are interrupted and disappear. I don't know a lot about API yet, and I know waypoints are rather new. Is there a way around this?
1389015661
Gauss
Forum Champion
Moved to the API forum.
1389015762

Edited 1389015772
You can use the script I created: <a href="https://app.roll20.net/forum/post/447239/script-hi" rel="nofollow">https://app.roll20.net/forum/post/447239/script-hi</a>... It also highlights the token at the top of the initiative order, but does so with a separate token.
Why not use the newly implemented function to ping? You could just insert in your script a few lines like these to have a ping on the current token (with all players' pages centering on it): on("change:campaign:turnorder", function(obj) { var tempTO = JSON.parse(obj.get("turnorder")).shift(); if(tempTO.custom == "") // We have most probably a token - but you could also implement better checks here { var tempTok = getObj("graphic", tempTO.id); sendPing(tempTok.get("left"), tempTok.get("top"), Campaign().get('playerpageid'), null, true); } }); Just an idea.