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

Concentration check required macro inside a spell macro

This is the piece I'm trying to get working ?{{Con check| YES, {{compcheck= Conc: [[ {1d20 + [[ @{concentration} ]] }&gt;?{Concentration DC=15+Spell Level or 10+Damage Received|16} ]] &amp;#125 {{succeedcheck=Concentration check successful! +1 on one attack roll, saving throw, or skill check.&amp;#125 {{failcheck=Concentration check failed! +1 on one attack roll, saving throw, or skill check.&amp;#125|No, +1 on one attack roll, saving throw, or skill check.}} And this is the whole macro &amp;{template:DnD35StdRoll} {{spellflag=true}} {{name=@{character_name} }} {{subtags=casts [Guidance!](<a href="http://www.d20srd.org/srd/spells/guidance.htm" rel="nofollow">http://www.d20srd.org/srd/spells/guidance.htm</a> )}} {{School:= Divination}} {{Level:= Cleric 0, Druid 0}} {{Cmpnts:=V, S}} {{Casting Time:=1 standard action}} {{Range:= Touch }} {{Target:= Creature touched }} {{Duration:= 1 minute or until discharged}} {{Spell Resist.:= Yes}} {{Saving Throw:= Will negates (harmless)}} {{Caster level check: = [[ 1d20+@{casterlevel2}+@{spellpen} ]] vs spell resistance.}} ?{{Con check| YES, {{compcheck= Conc: [[ {1d20 + [[ @{concentration} ]] }&gt;?{Concentration DC=15+Spell Level or 10+Damage Received|16} ]] &amp;#125 {{succeedcheck=Concentration check successful! +1 on one attack roll, saving throw, or skill check.&amp;#125 {{failcheck=Concentration check failed! +1 on one attack roll, saving throw, or skill check.&amp;#125|No, +1 on one attack roll, saving throw, or skill check.}}&nbsp; {{notes= This spell imbues the subject with a touch of divine guidance. The creature gets a +1 competence bonus on a single attack roll, saving throw, or skill check. It must choose to use the bonus before making the roll to which it applies. }}
1589380622

Edited 1589382635
Oosh
Sheet Author
API Scripter
I'm not familiar with the sheet or template, but you have the leading '?' outside the {{ }} I'm only familiar with 5e/OGL templates, but I'd assume this won't be parsed as part of the template if it's outside the parentheses. You probably want {{ ?{Con check....&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp; }} or {{ propertyname := ?{Con check....&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp; }} depending on the requirements of the template. Edit - Now that I look at the rest of it... either I have no idea how that template works (very likely) or it needs a bunch of bracket work. Probably someone who knows the template would be more help, but it looks like the whole last half needs a rejig. There's double curlies opening inside other double curlies, dangling vertical bars and all sorts. I don't think it's possible to create a template in the middle of a query, if that's what you're trying. Or to compare the results of multiple queries and modify the output depending on result. As a Pro subscriber, you have access to the API which can do things with variables and conditionals, vanilla macros don't really do this in one click.