Roll20 / Roll20/roll20-api-scripts

[LazyExperience] Doesn't work for tokens already on the map

Open
#913 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.