
This is an annoying behavior I have discovered. Maybe someone has a workaround? My custom sheet has been working perfectly with custom roll parsing, but if it is called by a macro row index shortcut, it fails. The problem is that when I getAttrs() other values from the row, it oddly gets the default values instead of the ones for the row. Here's a cut down bit of the code. on("clicked:repeating_weapons:attack", (eventInfo) => {
getAttrs("repeating_weapons_damage", (x) => {
});
}); <fieldset class="repeating_weapons">
<button type="action" class="roll_button" name="act_attack">&#x1F3B2;</button> <h4 class="head_label">Damage</h4> <input type="text" placeholder="none" class="pb_input" spellcheck="false" name="attr_damage" value="0"> </fieldset> If called with the actual row ID, even from a macro, it reads @damage from the row (for example: 1d10). If called with $0 (like a player using a macro would do), it returns the default value for @damage (for example: 0). eventInfo has sourceAttribute="repeating_weapons_$0_attack", triggerName ="clicked:repeating_weapons_$0_attack", and htmlAttributes is an empty object. Short of gathering the rowid list and reorder list, and working out the ID each time, I'm not sure how to fix this behavior.