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

Token Macros/Beyond20

September 12 (4 years ago)
Meeda
Plus

I'm needing some help with token actions. I want to use switch the PC character sheets to DnD beyond and use the Beyond20 extension so the rolls show up in roll20 chatbox. Simple, right? Except I'm not using the 5e sheets, I'm using the older community sheets because the video i watched on token macros used them and I needed to follow along exactly. I learned that Beyond20 needs to link to the 5e character sheet, so I reluctantly copied my game and changed to the 5e character sheets in Settings. I was distressed to learn all the token macros I had set up for my npcs now returned error messages instead of executing the macros. What changed and how can I, as a non technically inclined DM, handle this?


I'm fine with editing with current token macros to work with the 5e sheets, but the syntax is beyond me and I'm wasting valuable prep time figuring it out. For example; I just want to select a token and click its primary melee attack; this is what used to work:


%{Selected|NPCAction1}


When I wanted to roll its initiative, I used this macro with the old community char sheet:


%{Selected|npc_Initiative}


I'm probably missing something simple, so if someone could just point that out to me....







September 12 (4 years ago)
Spren
Sheet Author

We'd probably need to see one of your macros to tell what needs to change. What you're probably seeing though is that the roll template for the community sheet is very different and it will have a whole bunch on things that just won't match the roll template for the other 5e sheets. For example a simple thing like "attack=d20" might be "atk=d20" on the new sheet, and your original macro won't work.

There's a page for the 5e by roll20 sheet to help out: https://wiki.roll20.net/D%26D_5e_by_Roll20_Roll_Templates

You should be able to re-craft your macros, but it could take a lot of work.

September 12 (4 years ago)
Oosh
Sheet Author
API Scripter

Some of those should be simple fixes - different sheets have different names for Attributes and Abilities. For example:

%{selected|repeating_npcaction_$0_npc_action}

should fire the first action listed on an NPC sheet. The syntax is different as it's part of a repeating section - the next ability would be $1, then $2 and so on.


Initiative should work with:

%{Selected|initiative}


As Spren said, if you post the macros you're trying to use, we can help you fix them - the templates, Attribute names and Ability names all change between sheets, but the bulk of the macro should be similar.

September 12 (4 years ago)


Oosh said:



Initiative should work with:

%{Selected|initiative}


He was doing NPC initiative, so it should be:

%{selected|npc_init}



September 13 (4 years ago)
Meeda
Plus

Thanks for your replies, here's the most important macros I was using fpr npc tokens:


Action: Melee Weapon

%{Selected|NPCAction1}


Action: Ranged Weapon

%{Selected|NPCAction1}


Initiative

%{Selected|npc_Initiative}


Perception

%{Selected|npc_perception_check}

/w gm &{template:default} {{name=Passive Perception}} {{Passive Perception=[[@{Selected|npc_passive_perception}]]}}



September 13 (4 years ago)
Oosh
Sheet Author
API Scripter

There's only one repeating section for the attacks, so there's no specific name for ranged attacks - there's a whole thread here about NPC chat menus & macros for the 5e sheet, but using the format posted above will work for all the standard actions.

@{selected|passive_wisdom} is the Attribute for NPCs and for PCs for passive perception - there's no specific NPC one. Same for initiative, so the two ways of rolling it %{selected|npc_init} and %{selected|initiative} are different templates, but the same roll since NPCs and PCs both use @{initiative_bonus}. The standard sheet initiative roll doesn't include advantage, if you find yourself needing that, you can use a universal macro, like:

@{selected|wtype}&{template:simple}{{rname=INITIATIVE ROLL}}{{mod=@{selected|initiative_bonus}}}{{r1=[[?{With advantage?|Normal, 1d20|Advantage, 2d20kh1 |Disadvantage, 2d20kl1} + @{selected|initiative_bonus}@{selected|pbd_safe}[INIT] &{tracker} ]]}} {{normal=1}} @{Selected|charname_output}

for NPCs and players.


One very minor difference is that %{selected|npc_init} has the wrong inline label - it says [DEX] instead of [INIT]. A few classes have ways to increase initiative rolls, so the two are not always the same. It's only the label though - it uses the correct stat, and monsters might all have identical Initiative and Dex bonuses, I've never bothered checking.

September 13 (4 years ago)
Meeda
Plus

You guys are like wizards hanging around the guild hall discussing the arcane with how quickly I lose track of what you're trying to tell me. I'm going to read the threads you've indicated and experiment a bit and I may be back with more questions.