
So I am trying to make a macro that will let you choose which repeating_weapon to use when you roll it with a roll query. Have tried a few variants but keep having issues. The closest I have gotten to working is below(query removed, but I replaced every 0 with ?{WeaponID}. Have tried using it with inline brackets and other things but each time it get's to the instance of ?{WeaponID} it ask for the variable again. Also show up like this in the query box(Example: WeaponID [blankbox]_crit-target} So it keeps registering the line after the query as part of the query. Any advice? &{template:pf_attack} {{character_name=@{selected|character_name}}} {{character_id=@{selected|character_id}}} {{name=@{selected|repeating_weapon_0_name}}} {{attack=[[ 1d20cs>@{selected|repeating_weapon_0_crit-target} + [[ (@{selected|repeating_weapon_0_proficiency} + (((@{selected|repeating_weapon_0_enhance} + @{selected|repeating_weapon_0_masterwork}) + abs(@{selected|repeating_weapon_0_enhance} - @{selected|repeating_weapon_0_masterwork})) / 2) + @{selected|repeating_weapon_0_attack} + @{selected|repeating_weapon_0_attack-type} + @{selected|armor-proficiency}) ]] ]]}} {{damage=[[ @{selected|repeating_weapon_0_damage-dice-num}d@{selected|repeating_weapon_0_damage-die} + [[ (@{selected|repeating_weapon_0_enhance} + @{selected|repeating_weapon_0_damage} + @{selected|repeating_weapon_0_damage-ability}) ]] ]]}} {{crit_confirm=[[ 1d20 + [[ (@{selected|repeating_weapon_0_proficiency} + (((@{selected|repeating_weapon_0_enhance} + @{selected|repeating_weapon_0_masterwork}) + abs(@{selected|repeating_weapon_0_enhance} - @{selected|repeating_weapon_0_masterwork})) / 2) + @{selected|repeating_weapon_0_attack} + @{selected|repeating_weapon_0_attack-type} + @{selected|armor-proficiency}) ]] ]]}} {{type=@{selected|repeating_weapon_0_type}}} {{description=@{selected|repeating_weapon_0_notes}}} @{selected|macro_options}