Is there any way for a single roll query name to produce different results at different points of a roll template or macro? My current formula varies by weapon, so I'll use a basic one. &{template:default}
{{name=Iron Lance}} {{rank=D}}
{{damage=[[{@{Str}+7-@{target|Def}+?{Triangle?|No,0|Win,1|Lose,-1},
0}kh1+?{Modifiers|0}]]}}
{{hit=[[{@{Acc}+80-@{target|Eva}+?{Triangle?}*15, 0, 100}kh2dh1]]}}
{{crit=[[{@{Crt}-@{target|Lck}, 0}kh1]]}} {{range=1}} {{speed=[[@{Spd}]]
vs [[@{target|Spd}]]}} The important parts to my question, made readable: {{damage=[[{@{Strength} + 7 - @{target|Defense} + ?{Weapon matchup? | Neutral, 0 | Advantage, 1 | Disadvantage,-1} ,
0}kh1+?{Modifiers|0}]]}}
{{hit=[[{@{Accuracy} + 80 - @{target|Evasion} + ?{Weapon matchup?}*15 , 0, 100}kh2dh1]]}}
Currently, this system works. In the dumbed-down version I've been using, unit gets +1 Damage and +15 Accuracy when at an advantage, and -1 Damage and -15 Accuracy at a disadvantage. However, I want to use the proper system from the Fire Emblem games. Units can gain proficiency with weapon classes as they use them, measured in rank letters. They get bonuses to damage and accuracy based on rank, but these are nullified if they're at a weapon disadvantage. The bonuses for a lance are as follows. Rank Damage Query Accuracy Query E/D ?{Matchup? | None, 0 | Win, 0 | Lose, -1} ?{Matchup? | None, 0 | Win, 5 | Lose, -15} C ?{Matchup? | None, 1 | Win, 1 | Lose, -1} ?{Matchup? | None, 0 | Win, 10 | Lose, -15} B ?{Matchup? | None, 1 | Win, 2 | Lose, -1} ?{Matchup? | None, 5 | Win, 15 | Lose, -15} A ?{Matchup? | None, 2 | Win, 3 | Lose, -1} ?{Matchup? | None, 5 | Win, 20 | Lose, -15} S ?{Matchup? | None, 3 | Win, 5 | Lose, -1} ?{Matchup? | None, 10 | Win, 30 | Lose, -15 Now, the thing is, these queries happen twice every single time someone wants to attack; once for the attacker, once for the defender (long story); because of that, I really, really don't want to make two separate roll queries for this. Is there any possible way I could use the same roll query name for both? (Side note: Holy Christ, what is with the undo function on these forums? No, I did
not want to empty the entire table, I wanted to reverse a single cell
change!) EDIT: Oh, I should clarify. The macros will be manually changed when a unit ranks up; I don't need that part to be automatic.