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

Help with pathfinder spell macro

& {template:default} {{name=?{Select the level spell you would like to cast| &nbsp;Level 0, ?& # 123;Select the type of spell you would like to cast& # 124; &nbsp; &nbsp; &nbsp; Damaging& # 44; ?& amp;# 123;Select the spell& amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Acid Splash& amp;# 44; Acid Splash& amp;# 125;& amp;# 125;&nbsp; &nbsp; &nbsp; &nbsp; & amp;# 123;& amp;# 123;[*Link*](<a href="http://paizo.com/pathfinderRPG/prd/coreRulebook/spells/acidSplash.html#" rel="nofollow">http://paizo.com/pathfinderRPG/prd/coreRulebook/spells/acidSplash.html#</a> acid-splash)& amp;# 125;& amp;# 125; & amp;# 123;& amp;# 123;School:= *Conjuration (Creation) [Acid]*& amp;# 125;& amp;# 125; & amp;# 123;& amp;# 123;Spell Level:= *0& amp;# 44; Arcanist*& amp;# 125;& amp;# 125; & amp;# 123;& amp;# 123;Casting Time:= *1 Standard Action*& amp;# 125;& amp;# 125; & amp;# 123;& amp;# 123;Components:= *V& amp;# 44; S*& amp;# 125;& amp;# 125; & amp;# 123;& amp;# 123;Range:= *[[ [[ 25 + floor(@{Ruby Darkstorm|Class Level} * .5 ) * 5 ]] ]] Feet*& amp;# 125;& amp;# 125; & amp;# 123;& amp;# 123;Effect:= *One missisle of acid*& amp;# 125;& amp;# 125; & amp;# 123;& amp;# 123;Duration:= *Instantaneous*& amp;# 125;& amp;# 125; & amp;# 123;& amp;# 123;Saving Throw:= *None*& amp;# 125;& amp;# 125; & amp;# 123;& amp;# 123;Spell Resistance:= *No*& amp;# 125;& amp;# 125; & amp;# 123;& amp;# 123;Attack:= *[[ 1d20 + @{Ruby Darkstorm|BaB} + @{Ruby Darkstorm|Dex-mod} + ?& amp;# 123;Miscellaneous (Attack)& amp;# 124;0& amp;# 125; [Misc Mod] ]] vs Touch AC*& amp;# 125;& amp;# 125; & amp;# 123;& amp;# 123;Acid Damage:= *[[ 1d3 + ?& amp;# 123;Miscellaneous (Damage)& amp;# 124;0& amp;# 125; [Misc Mod] ]] *& amp;# 125;& amp;# 125; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 2& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 3& amp;# 44;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; & amp;# 125; & # 124; &nbsp; &nbsp; &nbsp; Buff& # 44; ?& amp;# 123;Select the spell& amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 1& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 2& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 3& amp;# 44;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; & amp;# 125; & # 124; &nbsp; &nbsp; &nbsp; Debuff& # 44; ?& amp;# 123;Select the spell& amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 1& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 2& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 3& amp;# 44;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; & amp;# 125; & # 124; &nbsp; &nbsp; &nbsp; Utility& # 44; ?& amp;# 123;Select the spell& amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 1& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 2& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 3& amp;# 44;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; & amp;# 125; & # 124; &nbsp; &nbsp; &nbsp; Bonus& # 44; ?& amp;# 123;Select the spell& amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 1& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 2& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 3& amp;# 44;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; & amp;# 125;&nbsp; &nbsp;&nbsp; &nbsp;& # 125; | &nbsp;Level 1, ?& # 123;Select the type of spell you would like to cast& # 124; &nbsp; &nbsp; &nbsp; Damaging& # 44; ?& amp;# 123;Select the spell& amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 1& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 2& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 3& amp;# 44;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; & amp;# 125; & # 124; &nbsp; &nbsp; &nbsp; Buff& # 44; ?& amp;# 123;Select the spell& amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 1& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 2& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 3& amp;# 44;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; & amp;# 125; & # 124; &nbsp; &nbsp; &nbsp; Debuff& # 44; ?& amp;# 123;Select the spell& amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 1& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 2& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 3& amp;# 44;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; & amp;# 125; & # 124; &nbsp; &nbsp; &nbsp; Utility& # 44; ?& amp;# 123;Select the spell& amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 1& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 2& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 3& amp;# 44;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; & amp;# 125; & # 124; &nbsp; &nbsp; &nbsp; Bonus& # 44; ?& amp;# 123;Select the spell& amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 1& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 2& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 3& amp;# 44;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; & amp;# 125;&nbsp; &nbsp;&nbsp; &nbsp;& # 125; | &nbsp;Level 2, ?& # 123;Select the type of spell you would like to cast& # 124; &nbsp; &nbsp; &nbsp; Damaging& # 44; ?& amp;# 123;Select the spell& amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 1& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 2& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 3& amp;# 44;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; & amp;# 125; & # 124; &nbsp; &nbsp; &nbsp; Buff& # 44; ?& amp;# 123;Select the spell& amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 1& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 2& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 3& amp;# 44;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; & amp;# 125; & # 124; &nbsp; &nbsp; &nbsp; Debuff& # 44; ?& amp;# 123;Select the spell& amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 1& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 2& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 3& amp;# 44;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; & amp;# 125; & # 124; &nbsp; &nbsp; &nbsp; Utility& # 44; ?& amp;# 123;Select the spell& amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 1& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 2& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 3& amp;# 44;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; & amp;# 125; & # 124; &nbsp; &nbsp; &nbsp; Bonus& # 44; ?& amp;# 123;Select the spell& amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 1& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 2& amp;# 44;&nbsp; & amp;# 124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Option 3& amp;# 44;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; & amp;# 125;&nbsp; &nbsp;&nbsp; &nbsp;& # 125; &nbsp;} }}
1505879168

Edited 1505879356
Sorry for the weird spacing, I couldn't get it to work as intended.&nbsp; The macro works until I add a spell into it. The third drop-down window is just refusing to work with me here. The query at the end works as intended, but it breaks at the title. Right around the amp ;#44 ; I think. Any comments/ suggestions/ angry outburst?&nbsp;
1505899339
Ziechael
Forum Champion
Sheet Author
API Scripter
First thing i noticed while passing through is that you use the html replacement for { which you don't need... replace all instances of &amp;#123; and its extended fellows with the original { Will take a more in depth look later when I get time...
Alright! I look forward to hearing from you again.
1505985622

Edited 1505985647
Ziechael
Forum Champion
Sheet Author
API Scripter
Ok, it was pretty much there. You didn't need the }} at the very end as the spell info wraps that up nicely as a result of the query result (although you could keep them and drop the: &amp;amp;amp;#125;&amp;amp;amp;#125; At the end of each spells final template section. The final pointer is that for all the html replacements within the spell template (the actual spell selection section) you need to double nest the html replacements as above.
1505985731

Edited 1505986121
Ziechael
Forum Champion
Sheet Author
API Scripter
Here is a working version of your orignal: &{template:default}{{name=?{Select the level spell you would like to cast| Level 0,?{Select the type of spell you would like to cast&amp;#124; Damaging&amp;#44;?{Select the spell&amp;amp;#124; Acid Splash&amp;amp;#44;Acid Splash&amp;amp;amp;#125;&amp;amp;amp;#125;{{[*Link*](<a href="http://paizo.com/pathfinderRPG/prd/coreRulebook/spells/acidSplash.html#acid-splash)&amp;amp;amp;#125;&amp;amp;amp;#125;{{School:=" rel="nofollow">http://paizo.com/pathfinderRPG/prd/coreRulebook/spells/acidSplash.html#acid-splash)&amp;amp;amp;#125;&amp;amp;amp;#125;{{School:=</a> *Conjuration (Creation) [Acid]*&amp;amp;amp;#125;&amp;amp;amp;#125;{{Spell Level:= *0&amp;amp;amp;#44; Arcanist*&amp;amp;amp;#125;&amp;amp;amp;#125;{{Casting Time:= *1 Standard Action*&amp;amp;amp;#125;&amp;amp;amp;#125;{{Components:= *V&amp;amp;amp;#44; S*&amp;amp;amp;#125;&amp;amp;amp;#125;{{Range:= *[[ [[ 25 + floor(@{Ruby Darkstorm|Class Level} * .5 ) * 5 ]] ]] Feet*&amp;amp;amp;#125;&amp;amp;amp;#125;{{Effect:= *One missisle of acid*&amp;amp;amp;#125;&amp;amp;amp;#125;{{Duration:= *Instantaneous*&amp;amp;amp;#125;&amp;amp;amp;#125;{{Saving Throw:= *None*&amp;amp;amp;#125;&amp;amp;amp;#125;{{Spell Resistance:= *No*&amp;amp;amp;#125;&amp;amp;amp;#125;{{Attack:= *[[ 1d20 + @{Ruby Darkstorm|BaB} + @{Ruby Darkstorm|Dex-mod} + ?{Miscellaneous (Attack)&amp;amp;amp;#124;0&amp;amp;amp;#125; [Misc Mod] ]] vs Touch AC*&amp;amp;amp;#125;&amp;amp;amp;#125;{{Acid Damage:= *[[ 1d3 + ?{Miscellaneous (Damage)&amp;amp;amp;#124;0&amp;amp;amp;#125; [Misc Mod] ]] *&amp;amp;amp;#125;&amp;amp;amp;#125;&amp;amp;#124; Option 2&amp;amp;#44; &amp;amp;#124; Option 3&amp;amp;#44; &amp;amp;#125; &amp;#124; Buff&amp;#44; ?{;Select the spell&amp;amp;#124; Option 1&amp;amp;#44; &nbsp;&amp;amp;#124; Option 2&amp;amp;#44; &nbsp;&amp;amp;#124; Option 3&amp;amp;#44; &nbsp;&amp;amp;#125;&nbsp; &amp;#124; Debuff&amp;#44; ?{;Select the spell&amp;amp;#124; Option 1&amp;amp;#44; &nbsp;&amp;amp;#124; Option 2&amp;amp;#44; &nbsp;&amp;amp;#124; Option 3&amp;amp;#44; &nbsp;&amp;amp;#125; &amp;#124; Utility&amp;#44; ?{Select the spell&amp;amp;#124; Option 1&amp;amp;#44; &nbsp;&amp;amp;#124; Option 2&amp;amp;#44; &nbsp;&amp;amp;#124; Option 3&amp;amp;#44; &nbsp;&amp;amp;#125; &amp;#124; Bonus&amp;#44; ?{;Select the spell&amp;amp;#124; Option 1&amp;amp;#44; &nbsp;&amp;amp;#124; Option 2&amp;amp;#44; &nbsp;&amp;amp;#124; Option 3&amp;amp;#44; &nbsp;&amp;amp;#125; &nbsp;&nbsp; &amp;#125; | Level 1,?&amp;#123;Select the type of spell you would like to cast&amp;#124; Damaging&amp;#44; ?{;Select the spell&amp;amp;#124; Option 1&amp;amp;#44; &nbsp;&amp;amp;#124; Option 2&amp;amp;#44; &nbsp;&amp;amp;#124; Option 3&amp;amp;#44; &nbsp;&amp;amp;#125; &amp;#124; Buff&amp;#44; ?{;Select the spell&amp;amp;#124; Option 1&amp;amp;#44; &nbsp;&amp;amp;#124; Option 2&amp;amp;#44; &nbsp;&amp;amp;#124; Option 3&amp;amp;#44; &nbsp;&amp;amp;#125; &amp;#124; Debuff&amp;#44; ?{;Select the spell&amp;amp;#124; Option 1&amp;amp;#44; &nbsp;&amp;amp;#124; Option 2&amp;amp;#44; &nbsp;&amp;amp;#124; Option 3&amp;amp;#44; &nbsp;&amp;amp;#125; &amp;#124; Utility&amp;#44; ?{;Select the spell&amp;amp;#124; Option 1&amp;amp;#44; &nbsp;&amp;amp;#124; Option 2&amp;amp;#44; &nbsp;&amp;amp;#124; Option 3&amp;amp;#44; &nbsp;&amp;amp;#125; &amp;#124; Bonus&amp;#44; ?{;Select the spell&amp;amp;#124; Option 1&amp;amp;#44; &nbsp;&amp;amp;#124; Option 2&amp;amp;#44; &nbsp;&amp;amp;#124; Option 3&amp;amp;#44; &nbsp;&amp;amp;#125; &amp;#125; | Level 2,?&amp;#123;Select the type of spell you would like to cast&amp;#124; Damaging&amp;#44; ?{;Select the spell&amp;amp;#124; Option 1&amp;amp;#44; &nbsp;&amp;amp;#124; Option 2&amp;amp;#44; &nbsp;&amp;amp;#124; Option 3&amp;amp;#44; &nbsp;&amp;amp;#125; &amp;#124; Buff&amp;#44; ?{;Select the spell&amp;amp;#124; Option 1&amp;amp;#44; &nbsp;&amp;amp;#124; Option 2&amp;amp;#44; &nbsp;&amp;amp;#124; Option 3&amp;amp;#44; &nbsp;&amp;amp;#125; &amp;#124; Debuff&amp;#44; ?{;Select the spell&amp;amp;#124; Option 1&amp;amp;#44; &nbsp;&amp;amp;#124; Option 2&amp;amp;#44; &nbsp;&amp;amp;#124; Option 3&amp;amp;#44; &nbsp;&amp;amp;#125; &amp;#124; Utility&amp;#44; ?{;Select the spell&amp;amp;#124; Option 1&amp;amp;#44; &nbsp;&amp;amp;#124; Option 2&amp;amp;#44; &nbsp;&amp;amp;#124; Option 3&amp;amp;#44; &nbsp;&amp;amp;#125; &amp;#124; Bonus&amp;#44; ?{;Select the spell&amp;amp;#124; Option 1&amp;amp;#44; &nbsp;&amp;amp;#124; Option 2&amp;amp;#44; &nbsp;&amp;amp;#124; Option 3&amp;amp;#44; &nbsp;&amp;amp;#125; &amp;#125; &nbsp;&nbsp; }
1505990879

Edited 1505990948
Much appreciated. Did not occur to me to stack them (&amp;amp;amp;).&nbsp;
1505991294
Ziechael
Forum Champion
Sheet Author
API Scripter
Once you get to the stage of having to do html replacements on your html replacements you know that you are through the looking glass lol. Hope it helps you unravel the mysteries of the universe! :)