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

lazy experiance

i'm trying out lazy experiance for the first time and i have token mod however when i bring a tokens health to 0 and it woutomatically puts the x on the token it doesn't activate the xp api  i have to manually put the x on the token to fire the api    any idea why?
1641051167
timmaugh
Forum Champion
API Scripter
This is likely because scripts don't trigger events that can be detected by other scripts (other than a chat message). This is a safeguard against an infinite loop of event responses (ScriptA triggers an event that ScriptB responds to, in turn triggering an event that ScriptA responds to, in turn triggering...) Another explanation could be that it isn't a player making the change, but the API. I'd have to know more about the Lazy Exp script to tell you if that mattered. In either case, there could be workarounds, up to and including metascripts. Can you share a little more info about the TokenMod command that sets the X marker, and also about the Lazy Exp command/config that gets triggered?
1641053899
David M.
Pro
API Scripter
Hm, looks like Aaron wrote both and registered Token-mod's ObserveTokenChange public function to lazyxp, so seems like it *should* be notified if token-mod made the change.  Are you reducing health with token-mod, or is token-mod putting the X on the token? Is some other script adding the X (like Aura/Tine Healthcolors)? If it  is another script besides token-mod, DeathTracker, or StatusInfo (which all register events to lazyxp), then what Tim said about scripts not triggering other scripts is probably in play.
1641057130
Surok
Roll20 Production Team
I had the same problem today. Aura/Tint doesn't work with it but I prefer Aura/Tint to Deathtracker for aesthetic reasons. I set the trigger status marker to "skull" for Lazyxp which kinda lets me confirm the kill in case the "kill" isn't valid or some other reason.
tokenmod sets the death marker however it's aueratint that activates the tokenmod and apparently it is aura/tint is the culprit that's a shame i guell ill have to figure out a work around for it