![](https://s3.amazonaws.com/files.d20.io/images/68846067/lPYBENUcOe4MEFBswpDy8g/thumb.png?1544541763887)
I can't seem to get this to work. I'm trying to get, say the name of a repeating action, but I don't want a button for 1, 2, 3, 4, etc. so here, I put the query in a template, but neither of these methods seem to work correctly. ! ?{ActionNumber} /w gm &{template:npcaction} {{rname=@{target|target|repeating_npcaction_$ ?{ActionNumber} _name}}} {{name=@{target|character_name}}} {{description=**To Hit:** @{target|target|repeating_npcaction_$0_attack_tohitrange} **Damage:** @{target|target|repeating_npcaction_$ ?{ActionNumber} _attack_onhit} **Description:** @{target|target|repeating_npcaction_$ ?{ActionNumber} _description}
}} Or here replacing the curly braces with html ! ?{ActionNumber} /w gm &{template:npcaction} {{rname=@{target|target|repeating_npcaction_$ ?{ActionNumber} _name } }} {{name=@{target|character_name}}} {{description=**To Hit:** @{target|target|repeating_npcaction_$0_attack_tohitrange}
**Damage:** @{target|target|repeating_npcaction_$ ?{ActionNumber } _attack_onhit}
**Description:** @{target|target|repeating_npcaction_$ ?{ActionNumber } _description}
}}