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

[Script] HealthAura not working for large token libraries

A buddy of mine with a fresh campaign loaded up HealthAura and it looked pretty neat.  I decided to try and import it into my game which has been around since 7/2016, and has 120 maps archived, and it imported fine, but I use bar 3 for my health bar, and trying to switch to bar 3 would kill the API ("Possible infinite loop detected, shutting down").  I was able to set HealthAura to off and switch to bar3 without issue, and it noted that it had updated 1200+ tokens but now I can't reenable the script.   I realize the simplest solution to this problem is probably go clear out my old maps/tokens or don't use the script, but I like having the library around, and removing 120 maps one button at the time does not sound particularly appealing.  
1532526111

Edited 1532526242
The Aaron
Pro
API Scripter
I can fix that, but it might take me a few days to get to it.  That's not my script, but I know what the issue is and the solution, it's only complicated fitting it into someone else's code... maybe I can get DX Warlock to fix it...  (Reference this code for how to fix it.)
1532571857

Edited 1532574120
DXWarlock
Sheet Author
API Scripter
I'll give it a go. see if I can use Aaron's suggestions to handle larger amounts of token updates at once :) Might be a few days before I can get it done, and then whatever time it takes after that for the one click API pull updates before its live.
This community is seriously the best.  Thanks guys.