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

How do I check character sheet (drag+drop) macro coding?

February 17 (5 years ago)

Hi all,

I play DnD 5e and I'm really new to the Roll20 format. Found out about macros today and have been plugging away at a lot of my own for the past few hours, learning how to call out modifiers and script out advantage rolls. It's been a ridiculously joyous headache!

My issue starts here: I've pulled my Greatsword action off of my character sheet and down to the macro hotbar, because I really like the template that it uses in-chat (first rolling atk and then dmg when you click the weapon name again). I've tried shift-clicking the macro to dig into the coding behind it but nothing comes up. I'm not sure why, but I cant seem to focus the chat block that it outputs either..

I'd really like to fiddle with that style of template, if at all possible, and any help would be greatly appreciated!!

February 17 (5 years ago)
Kraynic
Pro
Sheet Author

Have you checked out the wiki pages for the sheet and the roll templates built into it?  They will give you some info to play with.

https://wiki.roll20.net/5th_Edition_OGL_by_Roll20

https://wiki.roll20.net/5e_OGL_Roll_Templates

Also, when you roll from the sheet (not from a quick macro bar button), you can put your cursor in the chat box and hit the up arrow to see the exact command that was sent by that sheet button.  Actually, you can from the macro bar also, but you will see it is formatted much differently because it is actually calling for the sheet macro to be rolled, so it won't show you much about the specific macro code.

March 01 (5 years ago)

Edited March 01 (5 years ago)

Nice!

Okay so, follow-up question;

How would I work the "RO<2" on damage rolls mechanic from great weapon fighting style into this:

@{Fujin Ing|wtype}&{template:atk} {{mod=+5}} {{rname=[Greatsword](~-LyzqustYC_H95uIBRve|repeating_attack_-LyzyrTKlWQcd2zkqPOJ_attack_dmg)}} {{rnamec=[Greatsword](~-LyzqustYC_H95uIBRve|repeating_attack_-LyzyrTKlWQcd2zkqPOJ_attack_crit)}} {{r1=[[@{Fujin Ing|d20}cs>20 + 3[STR] + 2[PROF]]]}} @{Fujin Ing|rtype}cs>20 + 3[STR] + 2[PROF]]]}} {{range=}} {{desc=}} {{spelllevel=}} {{innate=}} {{globalattack=@{Fujin Ing|global_attack_mod}}} ammo= @{Fujin Ing|charname_output} 


The second tab that's generated just references the repeating atk dmg line in this.

%{-LyzqustYC_H95uIBRve|repeating_attack_-LyzyrTKlWQcd2zkqPOJ_attack_dmg}

March 02 (5 years ago)
Ziechael
Forum Champion
Sheet Author
API Scripter

The damage is driven by the weapon entry, add the ro<2 to the weapons damage die and it will do what you need (can hover over the result to see it in action, although it looks weird there too lol):