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

Macros work on their own, but not in a chat menu?

I have a team-mate in 40K deathwatch with a fairly complex weapon with multiple fire modes  Ive made 2 macros, both of which work perfectly on their own, but in the chat menu just don't want to  I know this is something to do with nesting HTML entities but I cant seem to tease it out, help much appreciated Chat Menu: &{template:default} {{name= Barrage Plasma Rifle }}{{Single Shot?=[Fire!](!#BPR-Single-Shot)}}{{Full Auto?=[Fire!](!#BPR-Full-Auto)}} Single Shot  &{template:default} {{name= Barrage Plasma Rifle }}{{against=@{target|token_name}}}  {{Success=[[(@{Hrur|BallisticSkill}+?{Modifier|0}+0-(1d100))/10)]]}} {{Wounds Inflicted=[[ ?{Shot Type|Standard,1d10+7[DMG]-({0,@{target|BArmour}[BArmour]-8[PEN]&#125kh1)-@{target|unnatural-Toughness}[Toughness]|Max Mode,2d10+7[DMG]-({0,@{target|BArmour}[BArmour]-10[PEN]}kh1)-@{target|unnatural-Toughness}[Toughness]}]]}}{{Location=Body}}{{RF?=[DEUS VULT!](!#RFBoltPistol)}}{{Notes= No weapon bonus for single shot, max mode Blast of 2, expends 3 ammo}} Full Auto &{template:default} {{name= Barrage Plasma Rifle Full Auto}}{{against=@{target|token_name}}}{{Shells=[[floor((@{Hrur|BallisticSkill}+30[Always Full Auto]+?{Modifier|0}+0-(1d100cf>94))/10))+1]]}} {{Wounds Inflicted (first shell)=[[1d10+7[DMG]-({0,@{target|BArmour}[BArmour]-8[PEN]}kh1)-@{target|unnatural-Toughness}[Toughness]]]}}{{RF?=[DEUS VULT!](!#RFBoltPistol)}}{{Next Shell=[INCINERATE THEM!](!#NextPlasma)}}{{Notes= Max shells 5}}
1617608537

Edited 1617608644
Ziechael
Forum Champion
Sheet Author
API Scripter
This kinda thing is coming up a lot these days... it's a little tricky though so I'm not surprised. You are right, it requires some html in the button call to prevent the initial macro trying to nest the result of the buttons with the first pass: &{template:default} {{name= Barrage Plasma Rifle }}{{Single Shot?=[Fire!](! 
 #BPR-Single-Shot)}}{{Full Auto?=[Fire!](! 
 #BPR-Full-Auto)}} The functionality above is covered here if you want to learn more (just ignore the 'API' bit of the API buttons lol).
Thank you my friend, I thought I had tried this but I missed the semicolon, now works, easier than trying to nest it all in one macro 
1617658607
Ziechael
Forum Champion
Sheet Author
API Scripter
You are most welcome :) Happy rolling!