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 .
×
May your rolls be merry + bright! 🎄
Create a free account

NPC Macro Attacking "/as" NPC Name

I've recently discovered the joy of setting up attack macros for common monsters by attacking, pressing up in the chat, copying the text, and making a token action for that. It works great, though it is a little annoying to do it for each attack mode and every monster. However, the rolls show up as Tito Las Vegas (GM), not as the monster. I've also discovered the /as chat tag, which I used to make a random conversation generator for guards and the like.  What I'd like to do is combine these two things: adjust the up-arrow macro such that it includes the monster doing the attacking (i.e., Goblin, not me as the GM). If I start out with most combinations I can think of with @{Goblin} or what have you, I either get an error (Invalid. Try /as "Name of Character" <message>.) or the name at the top of the roll is something goofy like @Goblin.  Is this possible?
1634563767
Ziechael
Forum Champion
Sheet Author
API Scripter
You can call upon the character name to use the /as command: /as @{Goblin|character_name} Hello, I'm a Goblin! Where you have tokens set up to be linked to journal entries you can make it more dynamic: /as @{selected|character_name} ?{What does it say} or /as @{target|character_name} ?{What} you could also use token_name in place of character_name when using the selected or target command in case you want to use a Goblin base but with a bespoke named token :)
1634567975
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Tito Las Vegas said: I've recently discovered the joy of setting up attack macros for common monsters by attacking, pressing up in the chat, copying the text, and making a token action for that. It works great, though it is a little annoying to do it for each attack mode and every monster.  As a pro user, have you considered using Token Action Maker? It's available in the one click installation, and does a full suite of token actions for every selected monster just by typing !ta in chat.
Well that Token Action Maker script is ridiculously handy. Works like a charm.  So the combination of all the help above means that I can roll as an NPC easily, and I don't have to fiddle around with individually making each attack for everybody.  Very helpful, thanks to you both!