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

Need help with Marco, as it showing its working fine in the test but not when i save it.

1623413570

Edited 1623414768
Been trying to add a Marco for a Crit fail melee for my players to use, and i have gotten to the point were i like it but when i test it looks great, but then when i save it and click on the marco bar to use it, its only shows the text info of the box and not the Crit effect.  This is the marco that i have along with a image at the top of what id like it ot look like and then what its turning out to be.   &{template:npcaction} {{rname=Critical Fail Melee}} } {{description= You have: [Macro] (!#Critical-Fail-Melee )}} This was the start of the marco i use  /w gm &{template:npcaction} {{rname=Dice Roller}} } {{description=Select your die type: [Macro](!#MacroName)}}
1623420546
timmaugh
Forum Champion
API Scripter
To make an API command button work with a macro, you need to use the html "new line" character: 
 So your macro would be: /w gm &{template:npcaction} {{rname=Dice Roller}} } {{description=Select your die type: [Macro](!
#MacroName)}} But, be careful if you ever edit that macro again, that HTML character will be eaten by the parser and you will find that your macro now reads: /w gm &{template:npcaction} {{rname=Dice Roller}} } {{description=Select your die type: [Macro](! #MacroName)}} So you will have to replace that HTML encoding.
Crow (RnG) said: Been trying to add a Marco for a Crit fail melee for my players to use, and i have gotten to the point were i like it but when i test it looks great, but then when i save it and click on the marco bar to use it, its only shows the text info of the box and not the Crit effect.  This is the marco that i have along with a image at the top of what id like it ot look like and then what its turning out to be.   &{template:npcaction} {{rname=Critical Fail Melee}} } {{description= You have: [Macro] (!#Critical-Fail-Melee )}} This was the start of the marco i use  /w gm &{template:npcaction} {{rname=Dice Roller}} } {{description=Select your die type: [Macro](!#MacroName)}} It looks like you want to use a rollable table, not an API button.  What is in the '#Critical-Fail-Melee' macro?  I'm assuming that is just a macro to roll from a rollable table that includes the 'voided warranty', 'pulled muscle', 'cramp', etc. items?  If that's the case then you don't need the interim macro at all.  
Thanks guys for getting Back to me on this, but it seems i got it working