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

Selected Token Attack Macro Button

First, my apologies.  I’m sure this is simple and answered elsewhere but I had no idea how to express in search terms what I’m looking to achieve. In short my combats are being slowed by having to open NPC character sheets to find the attack option.  My PC’s, however, have macro buttons for each of their attack options (eg bow, sword etc).  These, however, are specific PC macros in their character sheets. Is there a way that I can set a universal Macro or something so that when I select an NPC, several buttons pop up for each of their different attack options?   Alternatively, anyone have any suggestions for how I can speed this along? Thanks in advance folks.
1582826292
Kraynic
Pro
Sheet Author
Since you have a pro account, you could try a script.&nbsp; Depending on the sheet you are using, there may be examples for your system.&nbsp; A script I use is here:&nbsp;&nbsp; <a href="https://app.roll20.net/forum/post/7474530/script-call-for-testers-universal-chat-menus/?pagenum=1" rel="nofollow">https://app.roll20.net/forum/post/7474530/script-call-for-testers-universal-chat-menus/?pagenum=1</a>
1582826597

Edited 1582826716
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Edit. Both of these options are for the&nbsp; D&amp;D 5th Edition by Roll20 &nbsp;sheet. UCM can be adapted for any sheet, and the thread has many examples. &nbsp; There are a couple of options for a Pro subscriber. 1) Use the&nbsp; Universal Chat Menus &nbsp;API script. Once that is installed, you can use these macros [ NPC Code ] [ PC Code ] to produce chat menus for any selected token. Install them as macros on your collections tab, and click "Token Action". If you give permissions to the PC version to "All Players", your Players will be able to use them too. They are set up to whisper to the controller, so as not to spam chat too badly. Everything on these images are clickable buttons: 2. Use the Token Actions script If you prefer token action buttons to chat menus, use this script I adapted from an original by Three of Swords. Select a token that represents a character and type "!ta" into chat. For NPCs this will create a token action button for every action. For PCs every attack. I tend to use both of these approaches. The buttons are great for attacks, the menus for rolls and spells.
Thanks Keith.&nbsp; You are a star.&nbsp; This is super helpful (and I'm really really grateful for all your support these past few days).&nbsp; I do hope Roll20 show you the appreciation you deserve.
Sorry, quick question.&nbsp; How did you edit the style to create the link text rather than buttons.&nbsp; I've seen one of your replies with some code, but I'm unsure what I should do with it (I am in the very dangerous territory of " a little bit of knowledge ").
1582917796
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Ah, that uses the Sylus extension, detailed in my second favorite thread(s):&nbsp; Show Off Your Style , and Show Off Your Style 2: The Stylening! The one you are looking for is detailed in the first thread, along with an install link and instructions in the top post. You are looking for&nbsp; Inline Links on OGL Roll Templates
Anyway to do something like that on a free account?
I have a Plus account and realise I need to upgrade to Pro to access API scripts. These Chat menus look very much like they alone are worth the investment. Before I take the plunge though, if I am a player in a GM's game who is not a pro subscriber, would I still be able to use these APIs? Or is this something that would always need to be run by the GM of a game?
I'm impulsive, I have upgraded. Still, can this script be used as a player or only as a GM?
1589705600

Edited 1589705858
Oosh
Sheet Author
API Scripter
BIGdamnheroes said: I'm impulsive, I have upgraded. Still, can this script be used as a player or only as a GM? Yep, Keith has links above for PC scripts, make sure the macro containing the script is shared with your players. Jason C. said: Anyway to do something like that on a free account? Chat menus can be used by all users. Keith's links in the post above are for API scripts but the method I've linked here will work for anyone (Keith's awesome work once again). His screenshots also use the Stylus extension to tidy up the output, which he has (yet again) provided handy instructions for ! Allan said: Thanks Keith.&nbsp; You are a star.&nbsp; This is super helpful (and I'm really really grateful for all your support these past few days).&nbsp; I do hope Roll20 show you the appreciation you deserve. He's already got a Forum Champion badge, what more could a man want from life???
1589706066
GiGs
Pro
Sheet Author
API Scripter
BIGdamnheroes said: I have a Plus account and realise I need to upgrade to Pro to access API scripts. These Chat menus look very much like they alone are worth the investment. Before I take the plunge though, if I am a player in a GM's game who is not a pro subscriber, would I still be able to use these APIs? Or is this something that would always need to be run by the GM of a game? API scripts need to be installed by the GM, who must be a Pro subscriber. Whether Players are Pro or not has no impact on whether they can use API scripts in&nbsp; a game - it's set ourely by the subscription level of the game's creator.