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

Pathfinder Concentration Super Macro trouble

I'm trying to create a Concentration Super Macro for Pathfinder but can't get it to work, basically it needs to ask spell lvl then depending on what the concentration check is for, add either a static number alone or a static number + something (like dmg dealt) - so far I have the following [[?{Type of Concentration Check?|Casting defensively,15+2*?{spell lvl?}|Injured while casting,10+?{damage dealt?}+?{spell lvl?}|Continuous damage while casting,10+floor(0.5*?{damage dealt?})+?{spell lvl?}|Affected by a non-damaging spell while casting,?{DC of the affecting spell?}+?{spell lvl?}| Grappled or pinned while casting,10+?{grappler's CMB?}+?{spell lvl?}|Vigorous motion while casting,10+?{spell lvl?}|Violent motion while casting,15+?{spell lvl?}|Extremely violent motion while casting,20+?{spell lvl?}|Wind with rain or sleet while casting,5 +?{spell lvl?}|Wind with hail and debris while casting,10+?{spell lvl?}|Weather caused by spell,see spell|Entangled while casting,(15+?{spell lvl?})}]] I know the problem isn't too many things in the dropdown because "[[?{what?|a,1|b,2|c,3|d,4|e,5|f,6|g,7|h,8|i,9|j,10|k,11|l,12}]]" works, the problem seems to be with having multiple { and } nested
1449367396

Edited 1449367426
Dharkus said: the problem seems to be with having [...] } nested Indeed, that is the problem. Please see: Advanced Usage for Roll Queries .
thx, worked a trick here's the full macro working for anyone who wants it: [[?{Type of Concentration Check?|Casting defensively,15+2*?{spell lvl?}|Injured while casting,10+?{damage dealt?}+?{spell lvl?}|Continuous damage while casting,10+floor(0.5*?{damage dealt?})+?{spell lvl?}|Affected by a non-damaging spell while casting,?{DC of the affecting spell?}+?{spell lvl?}| Grappled or pinned while casting,10+?{grappler's CMB?}+?{spell lvl?}|Vigorous motion while casting,10+?{spell lvl?}|Violent motion while casting,15+?{spell lvl?}|Extremely violent motion while casting,20+?{spell lvl?}|Wind with rain or sleet while casting,5 +?{spell lvl?}Wind with hail and debris while casting,10+?{spell lvl?}|Weather caused by spell,see spell|Entangled while casting,15+?{spell lvl?})}]]
I'm new to Roll20, dunno if I make some kind of error, but I copied the macro as is, and it doesn't work for me. It keeps popping up input prompts with bits of code in them.
Queries within a Query means you have to replace all the {  and }  with "& #123;" and   "& #125;" , respectively.  (removing the extra space after the &) For example:  a modification of this code (thanks for the idea, btw, Dharkus) &{template:pf_generic} {{name=Concentration: [[1d20cs>1cf<20 + @{MyConcentration}]] }} {{ ?{Concentration type? |Casting Defensively, DC [[ 15 + (2 * ?{Spell Level?} )[SL] ]]=Casting Defensively |Injured while casting, DC [[ 10 + ?{Damage Taken?}[DMG] + ?{Spell Level?}[SL] ]]=Injured while casting |Continuous damage, DC [[ 10 + floor(0.5 * ?{damage dealt?})[DMG] + ?{Spell Level?}[SL] ]]=Continuous damage |Affected by a non-damaging spell, DC [[ ?{DC of the affecting spell?}[DC] + ?{Spell Level?}[SL] ]]=Affected by a non-damaging spell |Grappled or pinned, DC [[ 10 + ?{grappler's CMB?}[CMB] + ?{Spell Level?}[SL] ]]=Grappled or pinned |Entangled while casting, DC [[ 15 + ?{Spell Level?}[SL] ]]=Entangled while casting |Vigorous motion, DC [[ 10 + ?{Spell Level?}[SL] ]]=Vigorous motion |Violent motion, DC [[ 15 + ?{Spell Level?}[SL] ]]=Violent motion |Extremely violent motion, DC [[ 20 + ?{Spell Level?}[SL] ]]=Extremely violent motion |Wind with rain or sleet, DC [[ 5 + ?{Spell Level?}[SL] ]]=Wind with rain or sleet |Wind with hail and debris, DC [[ 10 + ?{Spell Level?}[SL] ]]=Wind with hail and debris |Weather caused by spell, (*see spell*)=Weather caused by spell } }} I would have to change this line from: |Casting Defensively, DC [[ 15 + (2 * ?{Spell Level?} )[SL] ]]=Casting Defensively To: |Casting Defensively, DC [[ 15 + (2 * ?& #123;Spell Level?& #125; )[SL] ]]=Casting Defensively
1449426477

Edited 1449426542
Mark G. said: Queries within a Query means you have to replace all the {  and }  with "& #123;" and   "& #125;" , respectively.  (removing the extra space after the &) For what it's worth, it's not necessary to subject opening braces to character replacements. ( E.g. )
Thanks, I had read that but I'm new and couldn't distinguish the queries within the query in the code above. All fine now.