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 .
×

Macro: Drop down select macro help

Here is the macro that I have been playing with: ?{Which Cure spell are you casting?| #attack | Cure Moderate Wounds, **Cure Moderate ** Target Regains [[2d8+8]] HP.| Cure Serious Wounds, Cure Serious Wounds Target Regains [[3d8+8]] HP.} the # seems to break the drop down box this macro works: ?{Which Cure spell are you casting?| Cure Light Wounds, **Cure Light Wounds** Target Regains [[1d8+5]] HP.| Cure Moderate Wounds, **Cure Moderate Wounds** Target Regains [[2d8+8]] HP.| Cure Serious Wounds, **Cure Serious Wounds** Target Regains [[3d8+8]] HP.} what I am looking to do in the end is: ?{Which level 0 spell?| #spell1 | #spell2| #spell3} ect but the # seems to break the drop down macro.  
1443725912

Edited 1443726059
Due to the order of operations , macro calls nested within Roll Queries are fully expanded before the query is executed. If the nested macros contain any characters that conflict with Roll Query syntax, the Roll Query will break, as you have experienced (see: Using a variable with a Macro / Advanced Usage ). Using the character replacements as outlined, you could amalgamate your spell macros within a Roll Query of a single macro.
I will admit I dont fully understand what I am reading there. could you please show a base setup similer to my setup?
Sure. I'll demonstrate using some of the macros from this thread . &amp;{template:DnD35StdRoll} {{spellflag=true}} {{name=@{selected|token_name} }} ?{Which level 0 spell?| Cure Minor Wounds, {{subtags=casts [Cure Minor Wounds](<a href="http://www.dandwiki.com/wiki/SRD:Cure_Minor_Wounds" rel="nofollow">http://www.dandwiki.com/wiki/SRD:Cure_Minor_Wounds</a>) on @{target|token_name} &amp;#125;&amp;#125; {{School:=Conj (Heal)&amp;#125;&amp;#125; {{Level:= Clr 0&amp;#44; Drd 0&amp;#125;&amp;#125; {{Comp:=V&amp;#44; S&amp;#125;&amp;#125; {{Cast Time:= 1 std action&amp;#125;&amp;#125; {{Range:= Touch &amp;#125;&amp;#125; {{Target:= Creature touched &amp;#125;&amp;#125; {{Dur:= Instantaneous&amp;#125;&amp;#125; {{Save:= Will half (harmless); see text (DC: [[@{selected|spelldc0} + @{selected|sf-conjuration}]]) &amp;#125;&amp;#125; {{SR:= Yes (harmless); see text ([[1d20+@{selected|casterlevel}+@{selected|spellpen}]] vs SR) &amp;#125;&amp;#125; {{checkroll= @{selected|token_name} heals @{target|token_name} for [[1]] point. &amp;#125;&amp;#125; {{notes= PHB p.216&amp;#125;&amp;#125; | Guidance, {{subtags=casts [Guidance](<a href="http://www.dandwiki.com/wiki/SRD:Guidance" rel="nofollow">http://www.dandwiki.com/wiki/SRD:Guidance</a>) on @{target|token_name} &amp;#125;&amp;#125; {{School:=Div&amp;#125;&amp;#125; {{Level:= Clr 0&amp;#44; Drd 0&amp;#125;&amp;#125; {{Comp:=V&amp;#44; S&amp;#125;&amp;#125; {{Cast Time:= 1 std action&amp;#125;&amp;#125; {{Range:= Touch &amp;#125;&amp;#125; {{Target:= Creature touched &amp;#125;&amp;#125; {{Dur:= 1 minute or until discharged&amp;#125;&amp;#125; {{Save:= Will negates (harmless) (DC: [[@{selected|spelldc0} + @{selected|sf-divination}]]) &amp;#125;&amp;#125; {{SR:= Yes ([[1d20+@{selected|casterlevel}+@{selected|spellpen}]] vs SR) &amp;#125;&amp;#125; {{checkroll=&nbsp; @{target|token_name} gets a +1 competence bonus on a single attack roll&amp;#44; saving throw&amp;#44; or skill check. @{target|token_name} must choose to use the bonus before making the roll to which it applies.&amp;#125;&amp;#125; {{notes= PHB p.238&amp;#125;&amp;#125; | Light, {{subtags=casts [Light](<a href="http://www.dandwiki.com/wiki/SRD:Light" rel="nofollow">http://www.dandwiki.com/wiki/SRD:Light</a>) &amp;#125;&amp;#125; {{School:=Evoc [Light]&amp;#125;&amp;#125; {{Level:= Brd 0&amp;#44; Clr 0&amp;#44; Drd 0&amp;#44; Sor/Wiz 0&amp;#125;&amp;#125; {{Comp:=V&amp;#44; M/DF&amp;#125;&amp;#125; {{Cast Time:= 1 std action&amp;#125;&amp;#125; {{Range:= Touch &amp;#125;&amp;#125; {{Target:= Object touched &amp;#125;&amp;#125; {{Dur:= [[10*@{selected|casterlevel}]] minutes (D)&amp;#125;&amp;#125; {{Save:= None &amp;#125;&amp;#125; {{SR:= No &amp;#125;&amp;#125; {{notes= This spell causes an object to glow like a torch&amp;#44; shedding bright light in a 20-foot-radius (and dim light for an additional 20 feet) from the point you touch. See full description for more details. PHB p.248&amp;#125;&amp;#125; }
You are AMAZING