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

Assorted Macro questions.

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} Assorted Macro questions. Ok, so I’ve read through various guides and the stupid tricks thread, and feel like I have a reasonable understanding of stuff, and have a few questions about the stuff I don’t grok yet. I’d also sure there is stuff I just haven’t thought about that would be useful, so I’d like to be long winded ask a bunch of questions in one thread in case there’s something I’m missing or a better way of doing thing e.g. like using a character sheet to hold your macros instead of the macro tab as it’s easier to back up &amp; manage. So a question about character sheets holding macros, if I want to use a macro that’s from my character sheet that holds macros, does the player need edit permissions? Is there a workaround to that if so? I’d rather not leave the ability for players to edit the code. &nbsp; Does the same restriction apply to macros kept elsewhere like in the macro collection, that the player must be able to edit the macro to be able to use it? I’m playing essentially a homebrew system, and I’m aware I’ll need to use attributes and abilities rather than a character sheet template (that is the character sheets listed under game settings like D&amp;D 5e, not characters in the journal). &nbsp;&nbsp;&nbsp; I’m using the default roll template eg for displaying when a player using a power, e.g. The macro is stored on a character in the journal called “Air Blast” where I intend on putting all the Air Blast related powers, and in this example is being used by an air elemental. <a href="https://i.imgur.com/FfaS0aP.png" rel="nofollow">https://i.imgur.com/FfaS0aP.png</a> (tried doing pictures inline, but the forum defeated me) &amp;{template:default} {{name=@{selected|token_name} does Air Bolt}} {{Rolling=%{MM|Uroll}}} {{Type=Ranged ST}} {{Green=@{Air Elemental|AirBlastValue} Physical damage}} {{Yellow=Knockback I}} &nbsp; {{Red=Stun I}} Which nicely tell me who fired what, lists the possible effects for me and uses the AirBlastValue correctly But when I try to replace the =@{Air Elemental|AirBlastValue} with {name=@{selected|AirBlastValue” I get an error (“ No character was found for 'selected'” and the output of the green box is “selected|AirBlastValue”) <a href="https://i.imgur.com/Snh3Ryc.png" rel="nofollow">https://i.imgur.com/Snh3Ryc.png</a> The complete bit I’m trying is: &amp;{template:default} {{name=@{selected|token_name} does Air Bolt}} {{Rolling=%{MM|Uroll}}} {{Type=Ranged ST}} {{Green=@{selected|AirBlastValue} Physical damage}} {{Yellow=Knockback I}} &nbsp; {{Red=Stun I}} &nbsp;The token clicked on (selected) is linked to the air elemental character. I also would like to use a different template. I’ve looked at the help page ( <a href="https://roll20.zendesk.com/hc/en-us/articles/360037257334-How-to-Make-Roll-Templates#HowtoMakeRollTemplates-Built-InRollTemplates" rel="nofollow">https://roll20.zendesk.com/hc/en-us/articles/360037257334-How-to-Make-Roll-Templates#HowtoMakeRollTemplates-Built-InRollTemplates</a> ) but I cannot see how to add them to my game. The actual process, how do you select one and insert into your game. I don’t mind doing some adapting an existing one. Can you have more than one roll template in use, that is add a few different styles so I can for different types of output? More general use question. Each player can choose different powersets, each of which has up to ten powers. It seems the best way of doing this would be to use chat menus so the player can opt to pick their power set, then see a list of powers, and activate the one they want. Are there other options I'm unaware of? Is there a way of suppressing the first output, the list of powers, so the rest of the table only sees the result of the choice of the menu? I’m also having trouble when using the roll template if I use the same heading twice, That is &amp;{template:default} {{name=air powers}}{{Use=[Air Bolt](~Air Blast|Air-bolt)}} {{Use . =[Air Push](~Air Blast|Air-bolt)}} {{more test=more text}} {{text 3=yet more text}} Works but if I try remove the . after the second use, it doesn’t display correctly. <a href="https://i.imgur.com/1x7I14y.png" rel="nofollow">https://i.imgur.com/1x7I14y.png</a> &amp;{template:default} {{name=air powers}}{{Use=[Air Bolt](~Air Blast|Air-bolt)}} {{Use=[Air Push](~Air Blast|Air-bolt)}} {{more test=more text}} {{text 3=yet more text}} <a href="https://i.imgur.com/99wCRqs.png" rel="nofollow">https://i.imgur.com/99wCRqs.png</a> Is this a known thing that you can’t use the same name more than once for headings? It’s not mentioned as a limit on the help page but I can’t work out why else it's not functioning. &nbsp;Thanks in advance. &nbsp;
Ok will try to answer what I can. Based on what you are trying to do I assuming you are using a custom character sheet? Roll Templates are custom css that is part of the character sheet you add to the game. Most character sheets made for Roll20 are in your game settings where you select from a drop down list and many authors may already have set specialized roll templates to use with that character sheet. In this case to add your own you need to on your game settings to use custom sheet. Below that will appear HTML, CSS, Translation and Preview.&nbsp; Since Roll Templates are defined by CSS and HTML this is where you would make your changes.&nbsp; Note thats how you load it into the game. There is such a thing as the custom sheet sandbox where you can create a sandbox game and test out the sheet your making. See&nbsp; <a href="https://roll20.zendesk.com/hc/en-us/articles/360037773413-Intro-to-Sheet-Development#preview-panel-0-8" rel="nofollow">https://roll20.zendesk.com/hc/en-us/articles/360037773413-Intro-to-Sheet-Development#preview-panel-0-8</a> . Note Dnd5e sheets has its own roll template which you can access to make your own custom macros&nbsp; if the above is not what you would like to do.&nbsp; As for how your players can use your macro's. Well there's a number of strategies. Depending on what you want to do depends how you will approach this. In most cases if any of the macros use @selected the character needs to have access to the sheet to be able to select the token. Ideally if these abilities are going to be used by your players you may want to create a default character sheet that is a master and have these abilities setup ahead of time. Then it up to you if you want to create token action macros or use global macros. If you do use global macros you will need to give the player access to it.&nbsp; There's no right approach but it can get complicated. Looking at the macros you did post, it looks like after the&nbsp; &amp;{template:default} you have a carriage return which will break the macro.&nbsp; This how they look when i tested them: Note the . is not needed is just part of the title you give for the named section. &amp;{template:default} {{name=@{selected|token_name} does Air Bolt}} {{Rolling=%{MM|Uroll}}} {{Type=Ranged ST}} {{Green=@{selected|AirBlastValue} Physical damage}} {{Yellow=Knockback I}} {{Red=Stun I}} When you get no ability found for selected means its not finding the ability or attribute on the character sheet so either you have naming issue or its incorrectly targeted. With the default template you cannot use the name twice, the last one used will overwrte the last so its best to make the unique.&nbsp; As far as menus and chats you can accomplish this via some macros and query choices but ideally if you are going to do something like that it might be best at looking at creating your custom sheet and use sheetworkers and javascript so it make the work easier on you and your players come game time, but that comes with its own learning curve.&nbsp; Some of the more experience sheet authors and macro makers and scripters can give you other ideas too.
1592465085
GiGs
Pro
Sheet Author
API Scripter
Paul &nbsp;said: So a question about character sheets holding macros, if I want to use a macro that’s from my character sheet that holds macros, does the player need edit permissions? Is there a workaround to that if so? I’d rather not leave the ability for players to edit the code.&nbsp;&nbsp;Does the same restriction apply to macros kept elsewhere like in the macro collection, that the player must be able to edit the macro to be able to use it? The way you ask this is a bit confusing. I assume you mean if a player wants to use macros from their character sheet? &nbsp;The answer is, yes, they do need edit permission. Edit permission marks a player as a controller of that character, and you need to be a controller to use their macros. Your use case seems to be to store powers on NPCs and let players access those powers? In that case what you can do is give the players Edit rights over the creature, but set its Visibility to none. That way players can use any powers on it, but cannot see it in their journal so cannot open the character. The one thing to be wary of, is if you put a token attached to that to that character on the board, players will be able to select it, and then they can access the character. So it's best to use this trick for special Journals - ones that are not attached to characters. Also if you build macros not attached to a character sheet, you can set their permission to be usable by all, so that's likely the way to go. Bear in mind though that players will be very limited if you dont give them the ability to control their own characters. But when I try to replace the =@{Air Elemental|AirBlastValue} with {name=@{selected|AirBlastValue” I get an error (“ No character was found for 'selected'” and the output of the green box is “selected|AirBlastValue”) <a href="https://i.imgur.com/Snh3Ryc.png" rel="nofollow">https://i.imgur.com/Snh3Ryc.png</a> The complete bit I’m trying is: &amp;{template:default} {{name=@{selected|token_name} does Air Bolt}} {{Rolling=%{MM|Uroll}}} {{Type=Ranged ST}} {{Green=@{selected|AirBlastValue} Physical damage}} {{Yellow=Knockback I}}&nbsp; {{Red=Stun I}} &nbsp;The token clicked on (selected) is linked to the air elemental character. In the token settings, check the Represents drop down is set up properly. If you set up the token in the wrong order, any new tokens you drag from the character will not be set up correctly. I also would like to use a different template. I’ve looked at the help page ( <a href="https://roll20.zendesk.com/hc/en-us/articles/360037257334-How-to-Make-Roll-Templates#HowtoMakeRollTemplates-Built-InRollTemplates" rel="nofollow">https://roll20.zendesk.com/hc/en-us/articles/360037257334-How-to-Make-Roll-Templates#HowtoMakeRollTemplates-Built-InRollTemplates</a> ) but I cannot see how to add them to my game. The actual process, how do you select one and insert into your game.&nbsp; The only way to add extra rolltemplates to your game is to use a&nbsp; Custom Character Sheet, and create the code for the template in the html and CSS. Since you're a pro user you can do this. You dont have to make a full character sheet, you can just copy the rolltemplate related code from another character sheet. This can be pretty complex, especially if its a complex template. More general use question. Each player can choose different powersets, each of which has up to ten powers. It seems the best way of doing this would be to use chat menus so the player can opt to pick their power set, then see a list of powers, and activate the one they want. Are there other options I'm unaware of? Is there a way of suppressing the first output, the list of powers, so the rest of the table only sees the result of the choice of the menu? I’m also having trouble when using the roll template if I use the same heading twice, You cant use the same heading twice. You must use different headings. Chat menus seem like a good approach for your need. It's a good way to cope with not using a character sheet. Regarding the question in bold, you can put /w @{selected|character_name} &nbsp;at the start of the chat menu. Assuming the player has a token that represents them, that will send the menu to just their chat. Any macros or abilities in the menu will be launched normally.
Thanks for reples. I think I should have broken up the questions better. Based on what you are trying to do I assuming you are using a custom character sheet? Roll Templates are custom css that is part of the character sheet you add to the game. Most character sheets made for Roll20 are in your game settings where you select from a drop down list and many authors may already have set specialized roll templates to use with that character sheet. In this case to add your own you need to on your game settings to use custom sheet. Below that will appear HTML, CSS, Translation and Preview.&nbsp; Since Roll Templates are defined by CSS and HTML this is where you would make your changes.&nbsp; Note thats how you load it into the game. There is such a thing as the custom sheet sandbox where you can create a sandbox game and test out the sheet your making. See&nbsp; <a href="https://roll20.zendesk.com/hc/en-us/articles/360037773413-Intro-to-Sheet-Development#preview-panel-0-8" rel="nofollow">https://roll20.zendesk.com/hc/en-us/articles/360037773413-Intro-to-Sheet-Development#preview-panel-0-8</a> . Note Dnd5e sheets has its own roll template which you can access to make your own custom macros&nbsp; if the above is not what you would like to do. I'm not using a character sheet. So to add a different sort of table, I'll have to make my own character sheet? Damn. As for how your players can use your macro's. Well there's a number of strategies. Depending on what you want to do depends how you will approach this. In most cases if any of the macros use @selected the character needs to have access to the sheet to be able to select the token. Ideally if these abilities are going to be used by your players you may want to create a default character sheet that is a master and have these abilities setup ahead of time. Then it up to you if you want to create token action macros or use global macros. If you do use global macros you will need to give the player access to it.&nbsp; The D&amp;D equivalent would be if a player picked a cleric, I provide a macro that lists the spell level, then the spells (eg lists what command does, rolls 1d8 for cure). If I want to store those macros on a sheet, that sheet has to editable by the player wanting to use the macros? Looking at the macros you did post, it looks like after the&nbsp; &amp;{template:default} you have a carriage return which will break the macro. When you get no ability found for selected means its not finding the ability or attribute on the character sheet so either you have naming issue or its incorrectly targeted. The carriage return is a forum copy and paste error. I had set up the token wrong. With the default template you cannot use the name twice, the last one used will overwrte the last so its best to make the unique. Damn. This should be in wiki page for it. As far as menus and chats you can accomplish this via some macros and query choices but ideally if you are going to do something like that it might be best at looking at creating your custom sheet and use sheetworkers and javascript so it make the work easier on you and your players come game time, but that comes with its own learning curve.&nbsp; Some of the more experience sheet authors and macro makers and scripters can give you other ideas too. No idea what sheet workers is, and looking at the wiki, making a custom sheet is well above my skill ability. Thanks for your information and help.
The way you ask this is a bit confusing. I assume you mean if a player wants to use macros from their character sheet? &nbsp;The answer is, yes, they do need edit permission. Edit permission marks a player as a controller of that character, and you need to be a controller to use their macros. Your use case seems to be to store powers on NPCs and let players access those powers? In that case what you can do is give the players Edit rights over the creature, but set its Visibility to none. That way players can use any powers on it, but cannot see it in their journal so cannot open the character. My use case is using a 'character sheet' for storing macros, so not a PC or NPC. That is the macro character idea as per <a href="https://app.roll20.net/forum/post/5899495/stupid-roll20-tricks-and-some-clever-ones/?pageforid=5924364#post-5924364" rel="nofollow">https://app.roll20.net/forum/post/5899495/stupid-roll20-tricks-and-some-clever-ones/?pageforid=5924364#post-5924364</a> The D&amp;D example would be a player picks the 1st level spells macro, then chooses what spell from a list presented by that macro, then has that spell's descriptions &amp; effects listed. &nbsp; The setting visibly to none to players but allowing editing looks like it will work great. Macro works when called by the player and they wont be able to see it to edit it. In the token settings, check the Represents drop down is set up properly. If you set up the token in the wrong order, any new tokens you drag from the character will not be set up correctly. Yep, that was the problem. Thanks. You cant use the same heading twice. You must use different headings. Chat menus seem like a good approach for your need. It's a good way to cope with not using a character sheet. Regarding the question in bold, you can put /w @{selected|character_name} &nbsp;at the start of the chat menu. Assuming the player has a token that represents them, that will send the menu to just their chat. Any macros or abilities in the menu will be launched normally. Damn re not using headings twice. Thanks re the /w. I'm having trouble getting it to work properly, My character name looks set up: <a href="https://i.imgur.com/j9mGF6Q.png" rel="nofollow">https://i.imgur.com/j9mGF6Q.png</a> The token looks set: <a href="https://i.imgur.com/jRlbb96.png" rel="nofollow">https://i.imgur.com/jRlbb96.png</a> Yet when /w @{selected|character_name}&nbsp; is goes to a different character/page in journal. Do spaces in the character name break it? Thanks for all the help.
1592472178
GiGs
Pro
Sheet Author
API Scripter
Yes, spaces in the name break it. You can use quotes to fix that: &nbsp;/w "@{selected|character_name}"&nbsp;