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

CHATSETATTR and character sheet

Hello, I use character sheets to represent spells and they have the spell abilities written ito them as abilities. Is there a way to target a cahracter sheet to modify its abilities without it being on the map?
1602459600
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Two ways. Both of these are from the documentation: --charid charid1, charid2, ...  allows you to supply a list of character ids, and will affect characters whose ids come from this list. Non-GM Players can only affect characters that they control. --name name1, name2, ...  allows you to supply a list of character names, and will look for a character with this name to affect. Non-GM Players can only affect characters that they control.
Cool. Thanks. Is there an example of how it should look? Is it just --name {dave} or --name @{dave} ?
1602465239

Edited 1602465324
Andreas J.
Forum Champion
Sheet Author
Translator
It's just --name dave , like Keith said/the example gives I recently update a wiki page, and in this section included a few example uses of ChatSetAttr. <a href="https://wiki.roll20.net/Stargate#API" rel="nofollow">https://wiki.roll20.net/Stargate#API</a> I wasn't to clear about hwo to use it either before today, but looking at the examples in the API's Readme and experimenting a few minutes I figured things out.