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

Chatt sett atr help

1649958904
I cant find a solid tutorial on the chat set atr script, how do i use the --replace flag, and how do i target one of the repeating resources.
1649965295
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Assuming you mean on the D&D 5th Edition by Roll20 Sheet, you can find the names of the first two by hovering over the field. You can find the others by using the Inspector button on your browser, but if you can stick with the first two, you would make life easier on yourself.
1649965434
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
From the API page of the script: --replace &nbsp;will replace the characters &lt; , &gt; , ~ , ; , and ` by the characters [,],-,?, and @ in attribute values. This is useful when you do not want roll20 to evaluate your expression in chat before it is parsed by the script. Alternatively, you can use \lbrak, \rbrak, \n, \at, and \ques to create [, ], a newline, @, and ?. You would use this if you were going to insert macro code into a field. You can find more info here: <a href="https://wiki.roll20.net/Chatsetattr" rel="nofollow">https://wiki.roll20.net/Chatsetattr</a>
1650024623
Is there a way to replace the % call, there is a replace call in a similar script "set ability" and i need to use replace so that the percent calls another macro
1650025915
Oosh
Sheet Author
You can try a standard escape: &amp;percnt;