Advertisement Create a free account

LazyExperience not working with Aura/Tint HealthColors

1557858387
I use both HealthColors and LazyExperience but can not get them to work together. I'm not sure why the dead marker that displays when a creature dies through HealthColors does not trigger the XP add from LazyExperience... Any help would be greatly appreciated!
1557858879
Scott C.
Pro
Sheet Author
API Scripter
This is not possible in the API. API scripts are deliberately prevented from reacting to changes caused by an API script to prevent infinite loops from forming that would lock your game. The only exception to this is chat messages. The way around this is to use an API generated chat message to trigger the follow up script (taking advantage of the aforementioned exception), or to code direct interaction between the two scripts so that one calls the other instead of relying on generated events to trigger the script. Both of these require the author of at least one of the scripts to buy in to the idea, or for you to edit them yourself.
1557859476
Thank you for sharing your wisdom!
1557863629
Pantoufle
Pro
Sheet Author
Hello you can make it work using another script : Deathtracker script from Robin. It doubles the effect on dead creatures to the red cross but this script works with lazyexperience. The only caveat I've found so far is when I use a macro with token-mod to set up token, first I set up hp bar to nothing  then apply dice formula. So it activates deathtracker for a brief moment therefore lazyexperience. But I suppose I could change the macro :) Cheers
1557944464

Edited 1557944490
DXWarlock
Pro
Sheet Author
API Scripter
I could put something in HealthColors to tell LazyExperience that I set dead status via the API. LazyExperience and Deathtracker are both made by Robin and talk to each other. If I do it on my side in HealthColors I just need to know what to call, and what arguments it needs inside it. Like: LazyExperience.giveXP(obj, prev) for example.
1557954410
DXWarlock said: I could put something in HealthColors to tell LazyExperience that I set dead status via the API. LazyExperience and Deathtracker are both made by Robin and talk to each other. If I do it on my side in HealthColors I just need to know what to call, and what arguments it needs inside it. Like: LazyExperience.giveXP(obj, prev) for example. That would be great!