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

Tavern Macro Help?

I am trying to generate a macro using the default template and would like to rolls to add together in a 3rd place. This is the basic macro I have so far and what it looks like when used. &{template:default} {{name=Tavern Weekly Cash Flow}}{{Base=[[50 gp]]}}{{Bonus=[[?{Bonus d20|0}*?{Bonus d6|0}]]}}{{Profit=}}. What I would like is for the Base and the Bonus to add together in the Profit section, and can't seem to figure it out. Is this possible?
Honestly I figured out a much easier way right after posting this, but if anyone knows it would still be very helpful for future endeavors. 
1756873212
timmaugh
Forum Champion
API Scripter
Without scripts: &{template:default} {{name=Tavern Weekly Cash Flow}} [[[[50]] + [[?{Bonus d20|0}* ?{Bonus d6|0}]]]]  {{Base=$[[0]] }} {{Bonus=$[[1]] }} {{Profit=$[[2]] }} With scripts: ! &{template:default} {{name=Tavern Weekly Cash Flow}} {{Base=[[50 gp]]}} {{Bonus=[[?{Bonus d20|0}*?{Bonus d6|0}]]}} {{Profit=[\[\ $[[0]] + $[[1]] \]\] }} {&simple} Second version requires the MetascriptToolbox.
Thank you!