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

Would someone kindly check my nested script to see what I have done wrong?

Do some nested macros conflict with referenced macros?  When I created this nested macro, it asks for the dice that are requested within the referenced macro, but then does not actually roll them, or do anything else that the referenced macro is suppose to do.  Is there a problem within my scripting? ?{Cast which spell?|Firebolt,#Spell-FireBolt0-Wizard |Light,#Spell-Light0-Wizard } In case it help, here is the "Firebolt" referenced macro, WHICH WORKS PERFECTLY when I activate it manually: *@{selected|token_name} speaks the mystic words, "Igne fulmen in convertendo inimicum meum!"*, ***and attacks his enemy with FIRE BOLT!! Total roll: [[1d20 + @{selected|PB} [Proficiency] + @{selected|intelligence_mod} [Intelligence]]] / [[1d20 + @{selected|PB} [Proficiency] + @{selected|intelligence_mod} [Intelligence]]] *** ***If an attack roll is successful, he damages his enemy for [[(?{# d10 Dice|2})d10]] points of FIRE damage or ``if CRITICAL MISS then [[ 1t[Critical-Miss] ]] or CRITICAL HIT adds [[ (?{# d10 Dice|2})d10) * 1t[Critical-Hit] ]] points of damage``!!!*** !token-mod {{ --set bar3_value|[[ {@{selected|bar3}-.5,0}kh1 ]] --ids @{selected|token_id} }} Thank you for the help! Barry
1473736964
Tetsuo
Forum Champion
It looks like you need to replace the | and } symbols with html replacement entities in the fire ball macro. Check out  This thread for more info!
1473737338

Edited 1473737367
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
I'll just reiterate one part of mine and Silvyre's responses to that thread here since it always catches people up; I would highly recommend making any macros that you are doing html replacements in as character abilities instead of global macros. Also remember that once they are html replaced they are no longer usable outside of a roll query. Ok, so two parts of it ;)
Thanks guys.