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

Unique Token Actions independent of its assigned sheet?

I'm trying to figure out how to give a Token Action to a token, but independently from its assigned character sheet. So multiple tokens that are assigned to the same sheet could have different sets of Token Actions, or better yet: be able to  give a Token Action to a token that isn't assigned to any sheet.  The purpose of this is to have dozens of abilities that can combine into hundreds of unique ability sets. Having customizable Token actions would make each unique tokens ability set  easy to remember and access.  So it's unfeasible to create a unique character sheet for each token, having them all be universal token actions would clutter the screen, and each token would only have a few Token Actions so having all the abilities on one sheet would  be impossible to sift through. 
This isn’t possible.  There are two places that can have Token Actions: Collections Macros, or Ability Macros.  Collections macros that have ‘Show as Token Action’ checked will show up for any and all  selected tokens.  Ability Macros on a character sheet that have ‘Show as Token Action’ checked will show up for any token that is linked to the character.  Unfortunately there is nowhere on an individual token to create a macro.  You could make a suggestion for this to be a feature to be added on the Suggestions forum . 
1726457014
Gauss
Forum Champion
Hi Struthious Scrub,  Your description of dozens of abilities combining into hundreds of unique ability sets might be possible, depends on how it was done.  Please indicate which character sheet you are using, and what determines which characters have which abilities. 
@Gauss  I'm using the D&D 5e (2014) sheet. As for what determines a characters abilities in this context, I designed and borrowed abilities for their species, class/niche, weapon type, magic type, styles of fighting, bonus actions, and reactions.  I suspect Jarren is correct, but I was hoping otherwise. I might have to bite the bullet and just name the token after all of its abilities, so I can remember what universal macro to type in chat for each one. Its the next best thing I can think of, but quite tedious. 
You can't create unique token actions on a token, but you can create unique references to abilities for a generic token action to call, which will get you what you're trying to achieve. I will detail this further when I have my keyboard available to me, but it's definitely doable, with some concessions. 
1726469077
Gauss
Forum Champion
Could you provide a more specific example of what you are trying to do? With more information folks may be able to figure something out.
 Right, so, first step - set up a token ability mule character sheet - referred here to as "tokenmule". On that sheet, create an attribute named "prefix", and fill it in as "%{" (all without quotes). Next, create an ability on that sheet, as follows: @{prefix}tokenmule|@{selected|token_name}} Set it up as a token action, and then create abilities for your tokens on that mule sheet. Each should have the name of the token it belongs to, and contain a chat menu for the abilities you want the token to have. You'll of course likely want to set up those abilities on the mule sheet, too. Lastly, create the token, link it with the mule sheet, and make sure the name of the token matches the chat menu ability you made for it in the previous step. If you set this all up correctly, the tokens linked to the mule sheet will all have their own chat menu for their own abilities, called via a token ability.
@Tuo Thank you! That would work, I just gotta wrap my head around Chat Menu Macros. Although this gave me an idea that might make it so I don't have to set up a unique macro for each characters ability sets, and just have their name dictate what they can do. But I can't get it to work. I'm trying to put multiple macros from my collection as options in a drop down menu, but it either just outputs the plaintext macro name or fails to fully execute (sometimes a macro containing a roll query will ask for its input, but still not output anything). I'm making an ability with this in it: ?{Choose|@{selected|token_name}} and to use this ability I name the token in such a way that it the dropdown menu can call upon my macro collection: #deflect|#hamstring|#dragonskin|#nimble But again, this wont work. I've also tried putting the individual macros in brackets, doing `/r  , and replacing symbols with their HTML code. So is their any way to make a dropdown that takes a text input of a macro name and actually execute it?
The problem you're likely encountering is that the macros are fully expanded within the query, and problem characters within them break that query. To get around while still using a query, you'd need to do html replacements in the macros the query calls - including every brace, pipe, and comma in them. But, opening saved collections macros to edit them resolves all html entities in them, so working on them that way might prove frustrating. Saving them as abilities on a mule character lets you preserve the html entities, so fitting them in a query would be easier. But, given the trouble involved, I'd still recommend a chat menu over a query.
You could create a 'mule' character such as 'TAMule' and create a bunch of abilities that include whatever you want.  Such as 'Race-Elf', 'Race-Dwarf', 'Style-Deflect', 'Style-Dragonskin', etc. Then on a token you could reference those abilities with %{TAMule|Race-Elf}. The issue is you have a limited number (7 I believe) of places on a token (token attributes) to put references: token_name, bar1, bar1_max, bar2, bar2_max, bar3, and bar3_max. So you could potentially have 7 unique 'categories' to pull from if you used all 7 to allow for more granularity.  Or you could put all of the references into a single token attribute if you still want to be able to use the other fields for other purposes (such as keeping the token name, or using bar1 for hit points). Let's assume you're going to put all of them into the bar3_max field. Testing with just two: %{TAMule|Race-Elf}%{TAMule|Style-Deflect}.  Then you'd create a chat menu: &{template:npcaction} {{rname=@{selected|token_name}}} {{description=@{selected|bar3|max}}} This will be a long and tedious amount of work. It will require you to accurately type in the correct attribute references on the token's bar3_max field or get error messages. However, if you had a Roll20 Pro subscription, then this could be simplified a lot.  You could put information into the token's tooltip or GM notes and pull it using any number of scripts to dynamically generate/reference the attributes from the TAMule character. It would also leave the token name and bars available for other purposes.
EURIKA!! Thank you all for your advice! It helped me learn what I needed to know in order to figure this out. I'm now able to customize a tokens abilities by just naming it, instead of setting up a unique character sheet or macro for it. I made it so a dropdown calls upon a chat menu, which calls upon my macro collection. I start by making a mule sheet and give it this ability: ?{Choose|@{selected|token_name}} Then I simply name the token with a bunch of macros inside chat menus, like this: [deflect](`#deflect)|[hamstring](`#hamstring)|[execute](`#execute) Just rename the abilities to anything in your macro collection, and you're all set. Add more options to it by continuing the pattern, placing the " | " symbol between each chat menu. Thank you all again for your ideas, otherwise I wouldn't have been able to figure this out. Now I'm off to easily populate my battlemaps with hundreds of unique enemies!