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

Help Starting a Chat Menu that Runs Macros

These are the macros I use the most often. I'm having trouble creating a Chat Menu that runs each of these from a button push. I would appreciate ideas and help getting it started. I could use 2d20kl1 for the adv. rolls if needed, but i like seeing the rolls if possible. [Button1]   &{template:default} {{name=*Sylvan Longbow*}} {{Longbow (+12)=[[1d20+12]]}} {{Piercing (+6)=[[1d8+6]]}} [Button2]   &{template:default} {{name=*Sylvan Longbow*}} {{Longbow (+12)=[[1d20+12]]| [[1d20+12]]}} {{Piercing (+6)=[[1d8+6]]}} [Button3]   &{template:default} {{name=*Sylvan Scimitar*}} {{Scimitar (+6)=[[1d20+6]]}} {{Slashing (+6)=[[1d8+6]]}} [Button4]   &{template:default} {{name=*Sylvan Scimitar*}} {{Scimitar (+6)=[[1d20+6]]| [[1d20+12]]}} {{Slashing (+6)=[[1d8+6]]}} [Button5]   &{template:default} {{Sneak Attack (d6)=[[1d6]]}} [Button6]   &{template:default} {{Hunter's Mark (d6)=[[1d6]]}} [Button7]  &{template:default} {{Slayer’s Prey (d6)=[[1d6]]}}
1668023413
Gauss
Forum Champion
Button 1: Make a macro, call it Longbow, include the template code you put for button 1.  Then in the Menu macro this is your code: [Button1](~charname|Longbow) Button 2: Make a macro, call it Adv Longbow, include the template code you put for button 2. Then in the Menu macro this is your code: [Button2](~charname|Adv Longbow) etc. 
Is there a way to do a none specific character name?
1668025696
Gauss
Forum Champion
if you use "selected" (without quotes) in place of charname it will be whatever token is selected. Alternately, if you are using an Ability macro sometimes you can get away with not including the character name. Example: @{charname|Strength_Mod} can be shortened to @{Strength_Mod} in an Ability macro. 
/w gm &{template:default} {{title=Macros}} {{text_big=[Configure Shaped Options](!shaped-config) **Sylvan Longbow** [Normal](!
#Bow)[Advantage](!
#BowAdv)[SuperAdv](!
#BowSupAdv) -------------------------------------- @Gauss Thanks, the buttons work, but I'm it's broken into two separate text windows. Also, is this string needed? I'm I using it correctly?      {{text_big=[Configure Shaped Options](!shaped-config)
1668035825

Edited 1668035867
Gauss
Forum Champion
Tilluan said: /w gm &{template:default} {{title=Macros}} {{text_big=[Configure Shaped Options](!shaped-config) **Sylvan Longbow** [Normal](!
#Bow)[Advantage](!
#BowAdv)[SuperAdv](!
#BowSupAdv) -------------------------------------- @Gauss Thanks, the buttons work, but I'm it's broken into two separate text windows. Also, is this string needed? I'm I using it correctly?      {{text_big=[Configure Shaped Options](!shaped-config) Image : I think you posted an image but it didn't resolve.  Separate windows : You didn't put "}}" at the end of the macro.  /w gm &{template:default} {{title=Macros}} {{text_big=[Configure Shaped Options](!shaped-config) **Sylvan Longbow** [Normal](!
#Bow)[Advantage](!
#BowAdv)[SuperAdv](!
#BowSupAdv)  }} String : As for your string (  {{text_big=[Configure Shaped Options](!shaped-config) ) , I don't know what your intent with that is. Are you trying to change the appearance of the output? Fire an API script? 
1668062240
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Tilluan! There's also a problem of mixing roll templates here. &{template:default} calls the default template, but {{text_big}} is from the shaped template, with the !shaped-config being a call for the shaped script. Which sheet are you running? and if it is the Shaped sheet, do you have the Shaped script installed?