Roll20 / Roll20/roll20-api-scripts
[LazyExperience] Doesn't work for tokens already on the map
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 407
- Forks
- 602
- Avg merge
- 7d 55m
- Merged PRs (30d)
- 18
Description
Hi,
I've got a weird situation where I have two instances of the same D&D Adventure. LazyExperience is working perfectly on one and wasn't working at all (or so I thought) on the other. Same API-scripts and character sheet installed in both.
Today I discovered that it is actually working but only for tokens newly added to the maps. Any tokens that are part of the actual adventure and already on the map it just doesn't trigger xp when they get marked as dead.
I'm not sure if that's a bug, or something I've done wrong?
Is there a solution that doesn't involve me having to manually re instance all tokens in the adventure?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the LazyExperience API script and reproducing the difference between tokens already on the map and newly added tokens. Compare their death events and verify that both trigger XP, while checking whether the script exposes any reinitialization path for existing adventure tokens.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100