So my character has an attack that gets bonuses for the margin of success on a skill roll. &{template:pf_generic} {{name=Deadly Leap}}{{color=green}}{{Acrobatics Check=[[ ?{Acrobatics Check}]]}} {{Enemy CMD=[[ ?{Target CMD}]]}}{{Margin of Success= [[(( ?{Acrobatics Check})-(?{Target CMD}))]]}}{{AC Bonus=+[[{[[floor(((?{Acrobatics Check})-(?{Target CMD}))/5)]]d1,@{Andrea Full Merge|level}d1 }kl1]]}}{{Attack Bonus=+[[{[[floor(((?{Acrobatics Check})-(?{Target CMD}))/5)]]d1,@{Andrea Full Merge|level}d1 }kl1]]}}{{Bonus Damage=+[[[[{[[floor(((?{Acrobatics Check})-(?{Target CMD}))/5)]]d1,@{Andrea Full Merge|level}d1 }kl1]]d6]]}} This macro works if I make the acrobatics check separately and input the results of the acrobatics check into the query box. What I want, is for the macro to make the check itself instead of me making the roll and manually inputting the results. I have tried a bunch of different ideas trying to get it to pull the check and make the roll, then input it into the other query boxes that need that information.