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

Attributes for mooks

I'm trying to do something clever, and I'm clearly not as clever as I'd hoped. Is the following possible? I want to create mook tokens based off a template character. Then I want to create a macro that gets the name of the selected token, accesses the attributes of the character with that name, and does stuff with that. I think I'm running into an order-of-operations problem here. Any ideas how to get around it without invoking the API? For example, I've got a character called Dalek. The character has all the attributes it needs. I don't want to modify these attributes in any way. I can easily create mook Dalek tokens called Dalek. I tried creating a macro that looked like this: @{@{selected|token_name}|Awareness} This would, theoretically, send the Awareness attribute of the Dalek character to the chat if I had selected a Dalek mook. Unfortunately, the chat returns  No character was found for '@{selected' , which suggests to me that the syntax is not being evaluated in the order I want. So, any tricks to access the attributes of the character for which the tokens are named?
1471876952

Edited 1471877008
The system pares it all at once, so nesting like that will not work. Luckily the system is set up to read through to the token that is assigned to a sheet. So as long as the "Represents Character" is set in the token to the sheet you want it to represent you can just use the @{selected|Awareness} and it will read back to the sheet that the token is representing. See Linking tokens to journals here and how to set up a token here . Good luck and happy gaming.
Hmm. I suppose since I'm not tracking any of these attributes in the token's bubbles, that works if I link the token to the character. Thanks!
Be careful not to link HP attributes from multiple tokens to the same sheet;  change one and you'll change it on all of them.
1471880382
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
An easy way to set up mook tokens so that they always have the correct HP when you first pull them on to the table is to link the token to the character sheet, link the bars to the attribute you want them to be, then unlink the bars (the values will remain). Now set the token as the default token for that character.
I won't be linking any attributes to tokens for mooks.
1471881846
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
oh, yeah, you don't leave them linked, you just do that to pull the value in so that the token has that info on it. Once their unlinked, you can do whatever you want to the token, and the mook sheet remains unchanged.