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

Using data from other characters

We have a bard. I wanted to set up a buff that, when click, automatically adds the appropriate bonus based on the Bard's level. If the characters are the same level (which the rest of the PCs are) then this works fine as this: 1 +floor((@{level}+1)/6) to Attack 1 +floor((@{level}+1)/6) to Damage However, we've acquired an NPC groupie of a different level. To avoid simply updating the buff a each level up, I'm trying to pull the Bard's level with the following, but it doesn't seem to register the Bard's level. 1 +floor((@{Nymeriel|level}+1)/6) to Attack 1 +floor((@{Nymeriel|level}+1)/6) to Damage I've double checked and even copy/pasted the character name, but it doesn't work.
This might be due to lazy loading - did you open the bard's character sheet in the same session you tested this? As I tested this, it resolved fine (with character name changed to one in my test game).
1743962011
vÍnce
Pro
Sheet Author
Just a thought.  What sheet?  An NPC attribute "might" use a different attribute name for level. ie npc_level vs level.
1743969089

Edited 1743969131
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
If this is a buff that is run on the sheet as opposed to being sent to chat, this won't work because sheets can't* interact with each other. Some examples of sheets that have buff functionality like this are the Pathfinder community, Pathfinder 2e, D&D 5e 2014, and Starfinder sheets. *A sheet can be written to have cross sheet interaction, but the only ones I'm aware of with it are the Walking Dead and Dragonbane; and both of those have very limited and specific cross sheet interactions.