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 .
×

How do you place an option selectable Macro within a template?

I've been trying to place the below macro into a frame, but everything I try just posts the entire code into the chat window.  Is it possible without API access?  If so, can someone point me to the right place to learn how to do it? Code: Points of Telekinetic Melee Damage=?{Select TK Skill Level | Level 1, [[0]], | Level 2, [[0]] | Level 3, [[0]]  | Level 4, [[1d5]]  | Level 5, [[3d5]] | Level 6, [[10d5]]} Turns Stunned, [[1d2-1]] Thanks.
Samot said: place the below macro into a frame I don't understand what you mean by putting a macro into a frame. Could you rephrase or explain again what you're trying to do?  Any chat output will happen in the chat window on the right sidebar. 
Sorry for the confusion.  I'm new to Roll20, so my terminology is not quite up to par yet.  By frame I mean within a Template.  Hope that makes my intent clearer.
What game are you playing and which character sheet is selected for the game? If you’re not sure, please post a screenshot of the entire browser window with the character sheet open. There are thousands of games with hundreds of character sheets, and any game may have multiple to choose from. 
Not sure why the game and character sheets are related to Macro code which posts to the chat, but I am creating a Star Frontiers game with the Star Frontiers Character Sheet.   You can see an example of the Macro in the Edit Macro window within the screenshot, which results are in the bottom of the chat window.  I'm trying to place the first output line (1 Psy Player Avoids Mind Control Damage) within the default template below.  However, every attempt I've made to include the Select command (&(Select...)) within the &(template:default)... results in the complete disappearance of the Template frame, and the rest of the coding showing up as text in the chat.  The desired results would be the current first output line listed in the template box just above the Psy Player  [5] line instead.   Thanks.
Please post the macro code instead of just including it in a screenshot. :)  I'm not going to try to retype it. Samot  said: Not sure why the game and character sheets are related to Macro code which posts to the chat, but I am creating a Star Frontiers game with the Star Frontiers Character Sheet.   Roll Templates (which you called a 'frame') are included in the code for the character sheet that is selected for a game, with the exception of the 'default' template, which is available in any Roll20 game. That is why the selected character sheet is relevant. I'm not super familiar with the Star Frontiers character sheet, but it looks like it has three primary roll templates: SF, SFAttack, SFSkill So if you didn't want to use the 'default' template, you could use one of those three templates instead, which could have a different appearance in chat.  Samot  said:  You can see an example of the Macro in the Edit Macro window within the screenshot, which results are in the bottom of the chat window.  I'm trying to place the first output line  (1 Psy Player Avoids Mind Control Damage)  within the default template below.  However, every attempt I've made to include the Select command  (&(Select...))  within the  &(template:default)...  results in the complete disappearance of the Template frame, and the rest of the coding showing up as text in the chat.  The desired results would be the current first output line listed in the template box just above the  Psy Player  [5]  line instead.   Usually, if you have an output from a character sheet that displays in the chat window, you can then click into the chat window message box and press the up arrow, and you should see the code that was generated, which would include the roll template information. (Sometimes you'll just get the Attribute or Ability code on the character sheet, such as '@{Character Name|Martial_Arts_Macro}'). Roll Templates need to use braces, not parentheses: &{template:default}  I do not see a Pro or Elite subscriber tag next to your name, so if you are trying to use the {&select } functionality from the SelectManager script , then that is not going to be possible. If you instead mean you want to use the 'selected' id reference, that would look like this (replacing ATTRIBUTENAME with an attribute from the character sheet): @{selected|ATTRIBUTENAME} But I'm not sure what you are trying to do in terms of using a selected token/character. It sounds like what you want is something like this: &{template:default} {{name=Telekinetic Melee Damage}} {{Damage=?{Select TK Skill Level|Level 1,[[0]]|Level 2,[[0]]|Level 3,[[0]]|Level 4,[[1d5]]|Level 5,[[3d5]]|Level 6,[[10d5]]} }} {{Turns Stunned=[[1d2-1]] }}