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

Need help creating a macro:

Hi, I´ve been trying to create a macro for our campaing in which we have a homebrew version of the healing potion: When you take one, you restore 2d4 + level + consti mod. I am quite a noob with the macro system, and I haven´t been able to do it... Could anyone help me? Thanks in advance and have a great day!!
1638554045
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Ymah! You'll need to supply the name of the sheet and system you are using. The answer will vary based on that info.
Oh, sorry, as stated, total noob here We are using D&D 5e, the roll20 sheet
1638556497

Edited 1638556519
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Thanks! Here is the basic formula you need: [[2d4+ @{selected|level} [Level] + @{selected|constitution_mod} [Constitution Mod]]] Adding the labels in single brackets will help in mousing over the roll and seeing the roll detailed in the popup. The double brackets make it an in-line roll, so you could pretty it up even more with a roll template: &{template:npcaction} {{rname=Healing Potion}} {{description=@{selected|character_name} takes a healing poition and regains [[2d4+ @{selected|level} [Level] + @{selected|constitution_mod} [Constitution Mod]]] hp!}} This would display as:
Oh... my... god.... This is even better than expected!!! thanks thanks thanks thanks Can I use  your name as a name for the ancient alchemist who invented the original formula for the healing potion? As a small gesture of gratitude. Keith the affable, one of the heroes on the fight against the pague.
1638564260
timmaugh
Roll20 Production Team
API Scripter
You have been Keith-ed. Go, now, and be excellent to one another.
1638567026
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Immortalized!