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 .
×
The Roll20 Black Friday sale is live now! Up to 30% Off Your Favorite Content!

"/as @{selected|token_name}" and other Gm Macros

I'm trying to setup some NPC Macros so I can spend less time typing up stuff to roll in my games. One issue that I've been having is that when I use a Token Action Macro It shows it as whatever I'm posting As(typically my GM Character). I found the "/as @{selected|token_name} " command but it doesn't work right if a character has a space in their name and I have to put it on every line of the macro. What are some ways around these problems? And while I'm asking is there a Way to change a Value with a Macro(A Bar value especially). And is there a Way to select multiple Tokens and have them all use an Action Macro?
1443543173

Edited 1443543343
Alicia
Sheet Author
I personally use /as "@{selected|token_name}" and for emotes /emas "@{selected|token_name}" and then in the chat I type #as "will say something"
Wang F. said: I found the "/as @{selected|token_name} " command but it doesn't work right if a character has a space in their name and I have to put it on every line of the macro. What are some ways around these problems? /as "@{selected|token_name}" Wang F. said: And while I'm asking is there a Way to change a Value with a Macro(A Bar value especially). Only with the assistance of the API , which is available to Pro-level subscribers. Wang F. said: And is there a Way to select multiple Tokens and have them all use an Action Macro ? Are you referring to Token Actions ? Not per se. You could incorporate multiple targets into such macros, selecting the tokens after executing a macro, instead of vice versa.
Wang F. said: I'm trying to setup some NPC Macros so I can spend less time typing up stuff to roll in my games. One issue that I've been having is that when I use a Token Action Macro It shows it as whatever I'm posting As(typically my GM Character). I found the "/as @{selected|token_name} " command but it doesn't work right if a character has a space in their name and I have to put it on every line of the macro. What are some ways around these problems? I use /emas which takes away who is saying it, but then you can preface all of the macros with @{selected|token_name} so it will show the name of the token. And while I'm asking is there a Way to change a Value with a Macro(A Bar value especially). And is there a Way to select multiple Tokens and have them all use an Action Macro? You would have to have the API, a pro feature, to do either of those. The closest thing you can do without the API is to target a number of tokens with a macro by using the @{target|target 1|token_name}, @{target|target 2|token_name}, @{target|target 3|token_name}... ect.
1443585882

Edited 1443585934
Simply wrap "@{selected|token_name}" in quotes to get around the name with a space issue.
1443593881
vÍnce
Pro
Sheet Author
HoneyBadger said: Simply wrap "@{selected|token_name}" in quotes to get around the name with a space issue. Nice trick HB