Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Need macro help

So I'm trying to make a macro, I've gotten a bit of help to get to this point but no one seems to be willing or able to help with this part. The issue is that it's breaking on a basic error, I assume, I just can't find the place it's breaking or why... here is the issue And here is the macro itself; &{template:default}{{name=Kichiro loads his rifle, gathers his power, prepares to initiate and FIRES!}}{{**Attack Roll**=[[1d20cs>19+15]] vs Touch}}{{**Crit Confirm**=[[1d20cs>19+15]] vs Touch}}{{**B&P Damage**=[[4d8+@{INT_Mod}]]}}{{**B&P Crit Damage**=[[12d8+30]]}}{{**Winters Finale Damage**=[[@{Level}d6]]-2 to Reflex for [[1d4]] rds}}{{**Winters Finale Crit**=[[@{Level}d6]]}}{{?{Initiated Maneuver?|Cutting Gale, **Cutting Gale Used:**=[[5d6]] DC [[14+@{INT_Mod}]] Fort or Bleed [[@{INT_Mod}]] until healed|Dustcatching Breeze, **Dustcatching Breeze Used:**=[[4d6]]|Iron Wind, **Iron Wind Used:**=[[4d6]] DC [[14+@{INT_Mod}]] or be staggered for [[@{INT_Mod}]] rds|Tip the Hourglass, **Tip the Hourglass Used:**=[[4d6]] DC [[14+@{INT_Mod}]] or be slowed for [[@{INT_Mod}]] rds|Time-Thief’s Talons, **Time-Thief’s Talons Used:**=[[@{INT_Mod}*2]] extra damage and heal for same amount|Energy Hammer, **Energy Hammer Used:**=[[6d6]]{?{Active Element?|Air, Elec Damage=DC [[14+@{INT_Mod}]] Fort or Deafened for [[1d4]] rds|Earth, Acid Damage=DC [[14+@{INT_Mod}]] Will or be Stunned for [[1d4]] rds|Fire, Fire Damage=DC [[14+@{INT_Mod}]] Reflex or be Blinded for [[1d4]] rds|Water, Cold Damage=DC [[14+@{INT_Mod}]] Fort or be Nauseated for [[1d4]] rds}}}}}{{?{Ordinance Type?|Force, **Force Damage:**=[[5d6+5+@{INT_Mod}]] DC [[10+({@{Level}}*0.5)+@{INT_Mod}]] or be prone|Frost, **Cold Damage:**=[[5d6+@{INT_Mod}]]}}}
1618183415

Edited 1618183588
it's the {{?{Initiated Maneuver?|Cutting Gale, **Cutting Gale Used:**= part.You're forgetting to close that query. Edit: wait, that's not only it. Gimme a few mins.
1618184282

Edited 1618184426
vÍnce
Pro
Sheet Author
I think this works... found extra "}}" and I don't think you need to substitute special characters since there isn't any nested queries... &{template:default}{{name=Kichiro loads his rifle, gathers his power, prepares to initiate and FIRES!}}{{**Attack Roll**=[[1d20cs>19+15]] vs Touch}}{{**Crit Confirm**=[[1d20cs>19+15]] vs Touch}}{{**B&P Damage**=[[4d8+@{INT_Mod}]]}}{{**B&P Crit Damage**=[[12d8+30]]}}{{**Winters Finale Damage**=[[@{Level}d6]]-2 to Reflex for [[1d4]] rds}}{{**Winters Finale Crit**=[[@{Level}d6]]}}{{ ?{Initiated Maneuver?|Cutting Gale, **Cutting Gale Used:**=[[5d6]] DC [[14+@{INT_Mod}]] Fort or Bleed [[@{INT_Mod}]] until healed|Dustcatching Breeze, **Dustcatching Breeze Used:**=[[4d6]]|Iron Wind, **Iron Wind Used:**=[[4d6]] DC [[14+@{INT_Mod}]] or be staggered for [[@{INT_Mod}]] rds|Tip the Hourglass, **Tip the Hourglass Used:**=[[4d6]] DC [[14+@{INT_Mod}]] or be slowed for [[@{INT_Mod}]] rds|Time-Thief’s Talons, **Time-Thief’s Talons Used:**=[[@{INT_Mod}*2]] extra damage and heal for same amount|Energy Hammer, **Energy Hammer Used:**=[[6d6]]} ?{Active Element?|Air, Elec Damage=DC [[14+@{INT_Mod}]] Fort or Deafened for [[1d4]] rds|Earth, Acid Damage=DC [[14+@{INT_Mod}]] Will or be Stunned for [[1d4]] rds|Fire, Fire Damage=DC [[14+@{INT_Mod}]] Reflex or be Blinded for [[1d4]] rds|Water, Cold Damage=DC [[14+@{INT_Mod}]] Fort or be Nauseated for [[1d4]] rds} }}{{ ?{Ordinance Type?|Force, **Force Damage:**=[[5d6+5+@{INT_Mod}]] DC [[10+((@{Level})*0.5)+@{INT_Mod}]] or be prone|Frost, **Cold Damage:**=[[5d6+@{INT_Mod}]]} }}
You have your ?{Active Element?} query nested inside your ?{Initiated Maneuver?} query, which will break the ?{Initiated Maneuver?} query.  As soon as the first vertical pipe '|' or closing brace '}' is encountered, it's applied to the first query, not the embedded query.  The way around this is to use a Chat Menu or use html replacements for all the embedded query items.
Ah, I was reminded that I forgot to mention that I'm NOT using a sheet template, just attributes. Also, thanks guys, and I'll try that, Vince
1618184644
vÍnce
Pro
Sheet Author
hmm.  I didn't think there were any nested queries after I "thought" there were extra "}}" that I removed.  Agree chat menus are the future. Nested queries be damned. ;-)
∇ince said: hmm.  I didn't think there were any nested queries after I "thought" there were extra "}}" that I removed.  Agree chat menus are the future. Nested queries be damned. ;-) Well, whatever happened your version works! I'm curious what a chat menu is though... how is it different?
Okay, there were some issues in the nesting for Active Element, Ordinance Type did not require nesting, and that multiplication by 0.5 was just acting weird. Try this instead, edited for legibility (remember to remove extra lines/spaces): &{template:default}  {{name=Kichiro loads his rifle, gathers his power, prepares to initiate and FIRES!}}  {{**Attack Roll**=[[1d20cs>19+15]] vs Touch}}  {{**Crit Confirm**=[[1d20cs>19+15]] vs Touch}}  {{**B&P Damage**=[[4d8+@{INT_Mod}]]}}  {{**B&P Crit Damage**=[[12d8+30]]}}  {{**Winters Finale Damage**=[[@{Level}d6]]-2 to Reflex for [[1d4]] rds}}  {{**Winters Finale Crit**=[[@{Level}d6]]}}  {{?{Initiated Maneuver?|     Cutting Gale,**Cutting Gale Used:**=[[5d6]] DC [[14+@{INT_Mod}]] Fort or Bleed [[@{INT_Mod}]] until healed|     Dustcatching Breeze,**Dustcatching Breeze Used:**=[[4d6]]|     Iron Wind,**Iron Wind Used:**=[[4d6]] DC [[14+@{INT_Mod}]] or be staggered for [[@{INT_Mod}]] rds|     Tip the Hourglass,**Tip the Hourglass Used:**=[[4d6]] DC [[14+@{INT_Mod}]] or be slowed for [[@{INT_Mod}]] rds|     Time-Thief’s Talons,**Time-Thief’s Talons Used:**=[[@{INT_Mod}*2]] extra damage and heal for same amount|     Energy Hammer,**Energy Hammer Used:**=[[6d6]]?{Active Element?|         Air,Elec Damage=DC [[14+@{INT_Mod}]] Fort or Deafened for [[1d4]] rds|         Earth,Acid Damage=DC [[14+@{INT_Mod}]] Will or be Stunned for [[1d4]] rds|         Fire,Fire Damage=DC [[14+@{INT_Mod}]] Reflex or be Blinded for [[1d4]] rds|         Water,Cold Damage=DC [[14+@{INT_Mod}]] Fort or be Nauseated for [[1d4]] rds}}}}}  {{?{Ordinance Type?|Force,**Force Damage:**=[[5d6+5+@{INT_Mod}]] DC [[10+(@{Level}/2)+@{INT_Mod}]] or be prone|Frost,**Cold Damage:**=[[5d6+@{INT_Mod}]]}}}
1618187641
vÍnce
Pro
Sheet Author
Alkain said: Well, whatever happened your version works! I'm curious what a chat menu is though... how is it different? Often times nested queries can be a real PIT@ because of the need to substitute special characters which can then get converted in future edits that will break your macro. Chat menus do not suffer the same pitfall.  Chat menus might work in lieu of queries.  Might be handy for extra damage(s) if you had a successful hit.  Click the button in chat to roll the additional damages.  Not the best option in all situations/macros.  Some people like to roll everything up front and ignore what doesn't apply.  Chat menus may add an unwanted step... All depends on your particular needs. 
∇ince said: Often times nested queries can be a real PIT@ because of the need to substitute special characters which can then get converted in future edits that will break your macro. Chat menus do not suffer the same pitfall.  Chat menus might work in lieu of queries.  Might be handy for extra damage(s) if you had a successful hit.  Click the button in chat to roll the additional damages.  Not the best option in all situations/macros.  Some people like to roll everything up front and ignore what doesn't apply.  Chat menus may add an unwanted step... All depends on your particular needs.  Oh, neat! Don't think I'll need it, but thanks for the tip ^_^