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

Referencing repeating_role value

Hi there folks, I'm currently trying to create macro (or abilities) that refers to specific repeating list values. My list is built like this :  <h2>Rôle</h2>         <fieldset class="repeating_role">             <select name="attr_roles">                 <option value="Acrobate">Acrobate</option>                 <option value="Assasin">Assasin</option>                 <option value="Cambrioleur">Cambrioleur</option> ... .Sometime, I would need to oppose a "spot check" VS a "infiltation" check. Could it be possible to only refer to a repeating list attribute and compare it to another repeating list attribute and let the system find these values and compare them and then give me a result? Thanks. Sorry if this is in the wrong forum.
Up, someone have any idea about that? thanks a lot.
1602738243
GiGs
Pro
Sheet Author
API Scripter
You're in the right forum. Are you asking if you can compare a repeating attribute against a different repeating attribute on the same character? If you want to compare against the score of a different character, you'll need to use the @{target|attribute-name} syntax. Using repeating attributes in this way will be very difficult. If your system has a fixed list of skills, it would be much, much better to set them up as normal attributes (not in a repeating section), so that you can grab their value using the skill name. You won't be able to do that with repeating attributes.