So I'm trying to do a silly thing maybe. There are some rolls whose results I would like for GM eyes only. I have accomplished this by using the API, but I was trying to take a crack at it with the character sheet not having to make any API calls. The way it would work is that the Player hits their button, which puts an ability button in chat for the GM to press, which whispers the templated roll to himself as a poor mans gmroll. <input type="text" name="attr_DSskillname" value="Adventuring Detect Secret" readonly>
<input type="number" name="attr_DSskillvalue" value="18">
<button type="roll" value="[@{name} Detect Secret](~@{character_id}|GMDSSkill)" name="roll_DSSkill"></button>
<button class="sheet-hide-it" type="roll" value="/w gm &{template:acks_template} {{name=@{DSskillname}}} {{skillroll=[[1d20+(?{Modifier|0})]]}} {{target=[[@{DSskillvalue}]]}}" name="roll_GMDSSkill"></button>
But now I want to put it in a repeating section. When I do that, the Ability Button reference to roll_GMSkill name is no longer valid. I believe this is because at runtime there is an ID connected to that roll name. <fieldset class="repeating_gmskills">
<input type="text" name="attr_GMskillname" class="sheet-bottom-line sheet-skillname" placeholder="Skill Name">
<input type="number" name="attr_GMskillvalue" class="sheet-skillvalue" value="18">
<button type="roll" value="[@{name} @{GMskillname}](~@{character_id}|GMSkill)" name="roll_Skill"></button>
<button class="sheet-hide-it" type="roll" value="/w gm &{template:acks_template} {{name=@{GMskillname}}} {{skillroll=[[(1d20+?{Modifier|0})]]}} {{target=[[@{gmskillvalue}]]}}" name="roll_GMSkill"></button>
</fieldset>
My question is, can the Repeating Section ID be referenced inside the fieldset? Here I saw $0 used in place of the ID, but there isn't really any context. I tried changing GMSkill to $0GMSkill inside the Ability Button, but that did not work. Anyone know if this is possible, and how to do it?