
Okay, this might be found under Stupid Tricks or somewhere else, but my search-fu has failed me, and I would swear I managed to do this before, but now I can't figure out how. I'm using the default roll template &{template:default} and trying to figure out how to nest queries to make lines disappear. When the template is parsed and posted, every instance of {{property=something}} must be unique for the property name, even if the result isn't. In this way, I'm looking to setup a multiple-hit ability/macro for the notoriously unfriendly-to-code 40kRPG system, where I can use a query of some type on the property side of the = to trick the template into not displaying unneeded lines. I can use a simple query on the small scale, such as the first property being: {{Hit #1=__DAMAGEFORMULA__}} While the second property is: {{?{Second hit?|No,Hit #1|Yes,Hit #2}=__DAMAGEFORMULA__}} And it will proc correctly - choosing no will use "Hit #1" which is the same property value as the previous line, and when the table is posted that line will disappear because it isn't a unique property name, while choosing yes will give it a different entry and cause the line to display. However, I want to avoid having the player answer yes, yes, yes, yes, no, no, no, no, no to a series of 20 queries, since the table needs to be able to handle up to that many hits in a batched roll. I think this can be done with a carry-through query. I tried using something like this: {{Hit [[{?{Number of hits (1 to 20)?|1},1}kl1]]=__DAMAGEFORMULA}} {{Hit [[{?{Number of hits (1 to 20)?|1},2}kl1]]=__DAMAGEFORMULA}} {{Hit [[{?{Number of hits (1 to 20)?|1},3}kl1]]=__DAMAGEFORMULA}} {{Hit [[{?{Number of hits (1 to 20)?|1},4}kl1]]=__DAMAGEFORMULA}} In the hopes that setting, say, 3 (because answering a query carries that answer through to all identical copies of that query elsewhere in the template) would mean that lines 4 and beyond would all default to {{Hit 3=__}} due to the keep-lower logic and refuse to display due to being duplicate entries, but it seems that the roll engine is counting it as a unique entry due to there being a dice roll even when it's deliberately identical and no dice roll included. I think this may be on purpose, since you wouldn't want a line to be hidden due to a random chance that made it non-unique, but if there's no random element at all, does that still need to trigger?. I would swear that I tripped over this logic previously, but now I can't figure out how I did it. Or I could be wrong and I'm misremembering it. I'm a plus but not pro user, and I don't know enough about HTML or CSS or Java to even consider coding via the API, but I really think there's a way to make the template behave the way that I intend without the API, I'm just missing the right bit of syntax. Thoughts?