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

On the Fly DMing - Custom Attack Macro

April 02 (6 years ago)

Edited April 02 (6 years ago)

Have your PCs derailed from the story and decided to fight something that WASN'T PLANNED?!  Here I hope this helps you BS your way through that dumb encounter.  With this macro just bullsh- I mean act like you knew all along this encounter was gonna happen!

&{template:pf_generic}{{name=?{Name Of Weapon}}}{{attack= [[1d20 + ?{BAB, Dex, Strength or Any bonus to hit?|-10|-9|-8|-7|-6|-5|-4|-3|-2|-1|0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20}]] }}{{Damage Type= ?{Type of Damage|Slashing|Bludgeoning|Piercing|Fire|Cold|Electricity|Thunder|Poison|Necrotic|Radiant|Psychic|Force|Acid}}}{{[[ ?{Number of Dice|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15}d?{Type of Die|2|4|6|8|10|12|20|100} + ?{Modifiers|?} ]]}}


Adjust template as needed.  I personally feel like this is faster then making an entirely new sheet for things that were never really intended to be fought.

++++++++

Will prompt you for a weapon name

Modifiers Available in a list format

Typed damage in a list format

Number of dice in a list format

Type of dice in a list format


++++++++


Let me know if you found this useful!

April 04 (6 years ago)

Tried it, but it doesn't produce anything in the chat?  What might I be missing?

April 04 (6 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

Kharmin, you and Muckbuckle might not be using the same sheet. Muckbuckle's macro is calling "&{template:pf_generic}", which is used by the PF Community sheet. Is that the same sheet you are using? If not, you will need to adjust the template tags to match those used by your sheet, most likely the Roll20 Official Sheet. (Roll Template instructions here.)

April 05 (6 years ago)

Edited April 05 (6 years ago)

So I tried what KeithCurtis suggested using &{template:default} instead of &{template:pf_generic} and it worked. If you are using another character sheet you'll have to find a template that works for you unfortunately.

April 05 (6 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

Fortunately, &{template:default} works for everybody. If you would like to change its appearance (for your browser only), look here.

April 09 (6 years ago)

Edited April 09 (6 years ago)

&{template:default}{{name=?{Name Of Weapon}}}{{attack= [[1d20 + ?{BAB, Dex, Strength or Any bonus to hit?|-10|-9|-8|-7|-6|-5|-4|-3|-2|-1|0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20}]] }}{{Damage Type= ?{Type of Damage|Slashing|Bludgeoning|Piercing|Fire|Cold|Electricity|Thunder|Poison|Necrotic|Radiant|Psychic|Force|Acid}}}{{[[ ?{Number of Dice|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15}d?{Type of Die|2|4|6|8|10|12|20|100} + ?{Modifiers|?} ]]}}


Like I said adjust as needed.