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

Doubts with 5e sheets, templates and macros

Hi all, New around here and still a little bit lost, so I have a couple of question. 1) I´m creating my Monsters Manual draging monster from the SRD and then creating some macros for the actions, traits and such as per some videos I  have seen. Some of those video provide some macros that dont work, so working slowly myself how to fix them. A thing I need to know is for an npc item, such as npc_senses, if the npc has 2 such as Darkvision 60 Ft., passive Perception 8, How can I do yo just pull the second part for a perception/passive perception macro such as... where I want to remove the passive_wisdom and replace is for the passive perception, as not all monsters are based on passive_wisdom? /w gm &{template:default} {{name=Perception}} {{Passive Perception= @{selected|passive_wisdom}}} {{Perception= [[1d20+@{selected|perception_bonus}]] | [[1d20+@{selected|perception_bonus}]]}} 4) When using action/abilities/tratis from a sheet, how do you know if you need to pull from template attack, or action, or npc_action and all that? 3) On many macros I see the &{template:X} I guess that´s a reference to the template to be used for that macro. Where can I find the different templates and their commands? is & a way to call a template? I know @works for sheet items and %for abilities? 4) the other thing I see often is the  @{CHARACTERNAME|wtype} Why is charactername in caps loc and what does wtype stand for? How is it used? I would really appreciate help with these, I know it is a lot of info, but would be great to know
1589234240

Edited 1589234317
Kraynic
Pro
Sheet Author
If this is for the 5E by Roll20 sheet, you might want to look at the wiki page for the sheet and the roll templates.&nbsp; I'll link the article specific to the templates: <a href="https://wiki.roll20.net/D%26D_5e_by_Roll20_Roll_Templates" rel="nofollow">https://wiki.roll20.net/D%26D_5e_by_Roll20_Roll_Templates</a> If that isn't the sheet you are using, all templates are part of the sheet code (other than the default template that is a basic part of Roll20), so template syntax will be game/sheet specific. I don't play 5E, so if that is the game you are playing, pointing you to the wiki will be about the best I can do.
1589234902
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Kraynic has addressed 2 &amp; 3. For 4), "CHARACTERNAME is just a shorthand way of showing (by typing in all caps) that you don't actually put "CHARACTERNAME" in the macro, but the specific character name, such as "goblin" For 1, and related issues, see if you can pull useful info from the following link, or just use the macro wholesale. It can save you a TON of time and effort by having one centralized macro that does nearly everything. NPC Statblock Chat Menu for D&amp;D 5e sheet — No API required!
keithcurtis said: Kraynic has addressed 2 &amp; 3. For 4), "CHARACTERNAME is just a shorthand way of showing (by typing in all caps) that you don't actually put "CHARACTERNAME" in the macro, but the specific character name, such as "goblin" For 1, and related issues, see if you can pull useful info from the following link, or just use the macro wholesale. It can save you a TON of time and effort by having one centralized macro that does nearly everything. NPC Statblock Chat Menu for D&amp;D 5e sheet — No API required! Thanks you very much. The charactername bit is what I suspected, but cna you please tell me what the wtype is please? It is driving me crazy hahaha and I can´t find it anywhere. I will have a look at does macros. Kraynic, Yes I´m using the D&amp;D 5e by roll20, so will be checking that, thanks a lot.
1589245170

Edited 1589245574
wtype is the whisper setting (probably named after w hisper type ). Its possible values: &lt;blank&gt; (Never whisper rolls) @{whispertoggle} &nbsp; (Whisper toggle) ?{Whisper?|Public Roll,|Whisper Roll,/w gm } &nbsp;&nbsp;&nbsp; (Query whisper) /w gm &nbsp;&nbsp;&nbsp; (Always whisper rolls - note there is a space at the end of this value) Edit: Added detail
keithcurtis said: Kraynic has addressed 2 &amp; 3. For 4), "CHARACTERNAME is just a shorthand way of showing (by typing in all caps) that you don't actually put "CHARACTERNAME" in the macro, but the specific character name, such as "goblin" For 1, and related issues, see if you can pull useful info from the following link, or just use the macro wholesale. It can save you a TON of time and effort by having one centralized macro that does nearly everything. NPC Statblock Chat Menu for D&amp;D 5e sheet — No API required! Hi Keithcurtis, I have been having a look at your macro and it does seem really useful, but also wanted something just in the token actions bars which I really like. I have gotten some stuff from your macros, but the senses bit is still not working for me. For example kobolds have&nbsp; Darkvision 60 Ft., passive Perception 8 , in the senses item, which means when I pull it with **@{selected|npc_senses} as per your sheet (I already had that one), everything shows. Is there a way to split those 2 senses into 2 and just pick the alter? or the former if required?
Rabulias said: I think wtype is the whisper setting (probably named after w hisper type ). That´s something I have no idea about. What does it do? and where can I find more about it? Thanks a lot
1589245676

Edited 1589245839
I edited my original message to add detail. The wtype attribute stores the settings from the Whisper Rolls to GM setting on the D&amp;D 5e by Roll20 sheet. See the General Options on the Settings Page in the wiki: <a href="https://wiki.roll20.net/D%26D_5E_by_Roll20#Settings_Page" rel="nofollow">https://wiki.roll20.net/D%26D_5E_by_Roll20#Settings_Page</a>
1589246722
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Javier B. said: For example kobolds have&nbsp; Darkvision 60 Ft., passive Perception 8 , in the senses item, which means when I pull it with **@{selected|npc_senses} as per your sheet (I already had that one), everything shows. Is there a way to split those 2 senses into 2 and just pick the alter? or the former if required? Macros really can't do any filtering or parsing ( or looping or conditionals for that matter ) like that, but I believe the passive_wisdom gives the same value for whatever the creature's passive perception is. In the case of Kobolds, this has the value of 8. Can you find any exceptions? If not, I'll revisit my macro to improve that part.
keithcurtis said: Macros really can't do any filtering or parsing ( or looping or conditionals for that matter ) like that, but I believe the passive_wisdom gives the same value for whatever the creature's passive perception is. In the case of Kobolds, this has the value of 8. Can you find any exceptions? If not, I'll revisit my macro to improve that part. Lizardfolk for example have Wis 12, but their Passive Perception is 13. Under skills they have a +3 to perception
1589295213
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Well that shoots that down. It looks like the data is only available as a string, not numerically, which means it would likely need an API script to tease out.
1589313368

Edited 1589318644
keithcurtis said: Well that shoots that down. It looks like the data is only available as a string, not numerically, which means it would likely need an API script to tease out. Hi Keithcurtis, thanks a lot. It´s all being super helpful. While NPC actions and such can be easily address with&nbsp;%{selected|xxx} How can I know the ability/rolls names for actual characters? I for example have&nbsp;%{selected|repeating_attack_$0_attack} which is quite similar to the npc one, but how would I go to roll the initiative in a similar way? What I mean, is, I have seen the template guides, but that is to set them up. I would like to know where can I read more about how these types of references "repeating_attack_$0_attack" (doesn´t have to be repeating ones always), and how to find out those reference names, all those that you use with %{selected} One I´m really interested is&nbsp;&nbsp; %{selected|npc_init}&nbsp; but for player characters. I know you can click initiative on the PC sheet, but would love to know how to address it like that. Thanks again
Hi Keithcurtis, could you give me one last hand with this please
1589383578
Kraynic
Pro
Sheet Author
If you haven't checked out the main page for that sheet yet (not the same page as the templates), there is a lot of info there:&nbsp; <a href="https://wiki.roll20.net/D%26D_5E_by_Roll20" rel="nofollow">https://wiki.roll20.net/D%26D_5E_by_Roll20</a> Some sheets will tell you what the name of a roll button is if you mouse over it.&nbsp; If the 5E sheet doesn't do that, you can get the same sort of code that keithcurtis was demonstrating by doing the following: 1.&nbsp; Enable the quick macro bar in your collections tab (that is the bar at the bottom of the screen) 2.&nbsp; Drag the button you want the dynamic link/macro command for onto the macro bar 3.&nbsp; Make the roll from that button you just created on the macro bar 4.&nbsp; Put your cursor in chat and hit the up arrow. My guess (from seeing previous posts on the forums) is that for a pc, you just drop the npc_ off of init.&nbsp; So, %{selected|init} might be what you are looking for.&nbsp;
1589385260
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Kraynic said it better than I could. Rabulias did tease out a lot of the attributes and actions from the official sheet some time ago, so it's a bit out of date, but the list is here .
Hi guys, Thanks a lot, I did find the sheet, which has the pc sheet and the npc sheet and worked out a lot of the stuff, but there are a couple of things such as addressing&nbsp; with a macro click on a skill for a so it roll a skill check, or the initiative one (I know I can click on the initiative and it will roll and then grab the fig formular from the chat, but I really want to learn how to address all these). I have tried scrolling over the names of the button, but nothing pops up on scroll over. I will try the above advise. Thanks
Kraynic said: If you haven't checked out the main page for that sheet yet (not the same page as the templates), there is a lot of info there:&nbsp; <a href="https://wiki.roll20.net/D%26D_5E_by_Roll20" rel="nofollow">https://wiki.roll20.net/D%26D_5E_by_Roll20</a> Some sheets will tell you what the name of a roll button is if you mouse over it.&nbsp; If the 5E sheet doesn't do that, you can get the same sort of code that keithcurtis was demonstrating by doing the following: 1.&nbsp; Enable the quick macro bar in your collections tab (that is the bar at the bottom of the screen) 2.&nbsp; Drag the button you want the dynamic link/macro command for onto the macro bar 3.&nbsp; Make the roll from that button you just created on the macro bar 4.&nbsp; Put your cursor in chat and hit the up arrow. My guess (from seeing previous posts on the forums) is that for a pc, you just drop the npc_ off of init.&nbsp; So, %{selected|init} might be what you are looking for.&nbsp; Omg, I have tried that and it just worked perfectly. Thanks a lot both of you, that´sperfect
1589410383

Edited 1589410944
Kraynic, I actually tried again and it is no longer working. I drag the action to the macro, and it when I now click it, it just prints the message, 2 examples.&nbsp; %{Diego|initiative} selected|skills_$3_skills As you can see, it is only printing the text, rather than doing the roll. Could you give me a hand with that. I have also checked keithcurtis list with the big list, and for initiative it goes&nbsp; roll_initiative, but after hitting the macro, it just prints that Thanks and apologies for all this bother. Although it is an amazing system, It is not an easy system, and even harder with out a up to date reference.
1589411239
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
There's been a lot of back and forth in procedures here. Can you give a step-by-step example of something you are trying (so that the steps can be replicated), what you expect to happen and what is actually happening? I'm a bit muddled now.
1589413421

Edited 1589414948
Thanks Keithcurtis. I´m trying the following. On the Character sheet, Atributes and Aabilities, in the Abilities section I´m trying to create macros that are linked to the tokens (I have done this for my npc and I have a nice template set up with many of those) Nor for characters I have a few. The next you I want to create are one that roll percetpion and one that rolls initiative, as if I was clicking in the initiative link in the character sheet or the perception(wis) skill in the same sheet. To do this, I have done as sugested by Kraynic, and I have draged from the initiative link to the macro button at the bottom. I then Click there and in the chat box I click the up arrow to the the last command. What I get is as follows: %{Diego|initiative} The first time I dragged the initiative link, clicking this macro was rolling the initiative properly for me, but it suddenly broke and now, when I click the macro all it does is print the following (for another example I´ve put below also same issue with perception).&nbsp; %{Diego|initiative} (yes it displays the same as is typen in the macro rather than run it) Diego|skills_$3_skills Funnily enough, if I click the same macro on the empty character sheet I have as a template, it works well, but as soon as I chose directly edit the sheet and go out of the charactermancer or whatever, I will try and upload some pictures.&nbsp;&nbsp;
1589427155

Edited 1589427204
Kraynic
Pro
Sheet Author
Interesting.&nbsp; I can reproduce it in a test game with the 5E sheet.&nbsp; It will roll from the button on the sheet, but %{selected|initiative} throws a syntax error.&nbsp; It throws the syntax error using the name on the sheet as well.&nbsp; It was a simple single word name (no special characters of any kind).&nbsp; That same macro works fine on my palladium sheets, and it works in a test game with the Pathfinder by Roll20 sheet (after changing initiative to init, since that sheet has the shortened button name).&nbsp; Maybe something got messed up on the 5E sheet yesterday/today?
Kraynic said: Interesting.&nbsp; I can reproduce it in a test game with the 5E sheet.&nbsp; It will roll from the button on the sheet, but %{selected|initiative} throws a syntax error.&nbsp; It throws the syntax error using the name on the sheet as well.&nbsp; It was a simple single word name (no special characters of any kind).&nbsp; That same macro works fine on my palladium sheets, and it works in a test game with the Pathfinder by Roll20 sheet (after changing initiative to init, since that sheet has the shortened button name).&nbsp; Maybe something got messed up on the 5E sheet yesterday/today? Thank you Kraynic, but I guess that should be it? It´s very weird as when I did it for the first time, it worked, and then suddenly it stopped working. Thanks for the support.
1589479385
Kraynic
Pro
Sheet Author
In further messing around, it seems to NOT be a universal problem.&nbsp; I don't remember if the 3 test characters in that game were all made with the charactermancer or not.&nbsp; Of those 3, 2 of them work correctly and the macros (name or selected) work.&nbsp; On the other one, nothing works.&nbsp; It won't even complete the roll from the initiative button dragged to the quick macro bar.&nbsp; I have no idea what the difference would be with that particular character.&nbsp; Corrupted/glitched sheet somehow?&nbsp; Making a copy of that sheet didn't fix the problem.&nbsp; I've no idea what might be the issue.&nbsp; Since I only have that game so that I can look up things to answer questions, but don't actually play the game, I have no idea what I might have done to break the buttons of that particular sheet.&nbsp;
Kraynic said: In further messing around, it seems to NOT be a universal problem.&nbsp; I don't remember if the 3 test characters in that game were all made with the charactermancer or not.&nbsp; Of those 3, 2 of them work correctly and the macros (name or selected) work.&nbsp; On the other one, nothing works.&nbsp; It won't even complete the roll from the initiative button dragged to the quick macro bar.&nbsp; I have no idea what the difference would be with that particular character.&nbsp; Corrupted/glitched sheet somehow?&nbsp; Making a copy of that sheet didn't fix the problem.&nbsp; I've no idea what might be the issue.&nbsp; Since I only have that game so that I can look up things to answer questions, but don't actually play the game, I have no idea what I might have done to break the buttons of that particular sheet.&nbsp; Thanks a lot. Same thing happens to me, and all are copies from the Template I created, so I guess all are glitched. I will try and create a new one and see how that goes. Thanks a lot, at least I now know it is not just me. Is there a way to report these issues?
1589491301

Edited 1589491466
Kraynic
Pro
Sheet Author
On the bug report forums there is a sticky thread with an index to specific bug report threads.&nbsp; I expect something like this would go in this one:&nbsp; <a href="https://app.roll20.net/forum/post/5392197/wizards-of-the-coast-bug-report-megathread" rel="nofollow">https://app.roll20.net/forum/post/5392197/wizards-of-the-coast-bug-report-megathread</a> But I'm not sure how much good it would do to report it without a clear way to reproduce the issue.&nbsp; If you make a replacement sheet from scratch and have issues, then posting it with the exact steps you used would be good. Edit:&nbsp; I thought there was actually an active thread specifically for the sheet itself, but I'm not finding it on a quick search.
1589494423
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The sheet thread is here: D&amp;D 5th Edition by Roll20 But the title indicates Q1 still. A new thread is due.
Thanks guys.