In another topic I was having the following difficulty, I got help from Scott and I was able to move on but I haven't solved the problem yet: I'm making a roll template that calculates the chance of a firearm hit, it should: (1) - take the value of a proficiency (2) - receive a modifier value (3) - receive the amount of shots Of these three factors the system uses a table of the difference between proficiency (1) and modifier (2) as a function of the number of shots (3). Thus the macro should look in the scrollable tables for a table named 1t [profXrdfY] at where: X = (1) - (2) Y = (3) I am using the following code: {{Teste=[[1t[prof?{Proficiência--}+?{Valor}rdf?{RDF=}]]]}} With his tips I came to this: for some reason it interrupts and does not read this part of the code: rdf? {RDF =}]]]}} The complete code is: &{template:default}{{name=@{selected|token_name} atacou @{target|character_name}}}{{Proficiência(Nível)=?{Proficiência--|Armadura,@{selected|armadura}|Armas brancas(@{selected|armas_brancas})|Armas de Energia(@{selected|armas_energia})|Armas de projéteis(@{selected|armas_projeteis})|Armas pesadas(@{selected|armas_pesadas})|Arremesso(@{selected|arremesso})|Artes Marciais(@{selected|artes_marciais})|Canhões(@{selected|canhoes})}}}{{Modificador=?{Valor}}}{{Proficiência modif=[[?{Proficiência--}+?{Valor}]]}}{{RDF=?{RDF=|1|3|5|10|20|50|100|150|200|250}}}{{Teste=[[1t[prof[[?{Proficiência--}+?{Valor}]]rdf?{RDF=}]]]}} Following the querys wiki replaces the brackets with the equivalent html symbol, I've had changes, but it still didn't work: Using the html code the macro assembles all the rollable table equation I need 1 [tprofXrdfY] (where X and Y are the results of queries) except that it doesn't turn the equation into the rollable table result I need. Would anyone know how to solve?