Hi there, I'm in the middle of creating a character sheet for a game where characters can have a number of different kinds of weapons -- I've taken to the approach of using a repeating section. Here's a snippet of code is as follows: <fieldset> <button type='roll' name='roll_useWeapon' value='&{template:weaponAttack} {{name=@{character_name}}} {{weapon=@{repeating_weapons_$X_WeaponName} - @{repeating_weapons_$X_WeaponType}}}'></button> <input type="text" name="attr_WeaponName" placeholder="Weapon Name" style="width:20%"> <select name="attr_WeaponType" placeholder="Type"> <option value="Melee">Melee</option> <option value="Ranged">Ranged</option>
</select>
...
However, on looking at the Macro documentation, it seems like my only two options are referring to a specific row ($0, $1...) or a specific ID -- is there a way to make a macro in a repeating section be able to reference itself, i.e. pulling in the random ID when it's first generated so that's assigned to the macro? Essentially, what I'm looking for is the ability to reference @{repeating_weapons_$X_WeaponName} where X just automatically refers to the row it's part of. Is there a better practice for doing this?