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

April 14 (3 years ago)

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.

April 14 (3 years ago)
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.

April 14 (3 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

From the API page of the script:

  • --replace will replace the characters < , > , ~ , ; , 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:

https://wiki.roll20.net/Chatsetattr

April 15 (3 years ago)

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

April 15 (3 years ago)
Oosh
Sheet Author
API Scripter

You can try a standard escape:

&percnt;