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

getting info from a different character sheet (Pathfinder)

1561621555

Edited 1561621580
Is it possible to pull information from another character sheet? Like if I want to get the summoners level so the summoned creature has an automatic countdown timer. or use the level of the caster on a buff option to get the right values?
1561627449
GiGs
Pro
Sheet Author
API Scripter
You can use either the characters name, or selected or target keywords, as long as know the attribute name. Assuming the name for the level attribute is caster_level any of these will work: @{selected|caster_level} @{target|caster_level} @{mycharacters_name|caster_level} For selected, you must have the token representing the character selected. That wont be possible if you dont control the character. For target, you'll get prompted to select a token, and it works with anyone. For using a characters name, you'll need to have control over that character, but you dont have to select anything.
That works for macros, but I'm trying to put it in the custom section of the Summoned creature so that I can put it one of the rings on the token and it doesn't work. @{level} gives the proper return for the monster but @{caster_name|level} returns 0
1561697303
GiGs
Pro
Sheet Author
API Scripter
I dont know how the character sheet works, but if you can do it with a macro, you will be able to do it in the character sheet too. You just have to figure out the right syntax. Note that caster_name is an example, you need to replace it with the character's actual name. Try using @{REPLACE WITH NAME|level} in chat, just to see if it works. If not, try using @{selected|level} - if you have the caster's token selected, and that doesnt work, it means the problem is with the level attribute.
They work just fine in chat.
1561726788

Edited 1561726811
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Unfortunately, character sheets cannot directly access another sheet's info. This isn't something that is possible without writing an API script or some hacky workarounds in the sheet code.
I was afraid that was the case. Thanks