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

Abilities: How to reference self?

I am currently using a token-based macro that works like this: /r 1d@{selected|Mobilität} + ?{Modifier|0} &{tracker} Never mind the fact that I'm using die steps, which are quite unusual, I'm wondering if I could move this to an ability. Is there a self-command to call an attribute from the same character? I tried Charactername:Attribute, but that doesn't translate in this constellation for some reason. Also, it would require me to rewrite the attribute for every character I create, which is somewhat cumbersome. There are a few workarounds here, but I'd appreciate any help and advice on whether this might be possible after all.
Replace "selected" with the name of your Character as it appears in the Journal tab of the Sidebar.
If it's added as an Ability on someone's character journal, it will self-reference Attributes automatically. ie. if I have Mobilität defined on my character journal as an attribute.  I can refer to @{Mobilität} with any Ability on my journal without an issue. If you want to have it reference a specific character other than itself, then yes you need to use @{journalname|attributename}
Hi Mark, does your statement above work if I use |max? When I don't use it it works fine and that would save me a ton of work but if I add in |max it says it can't find the character.
1450814607

Edited 1450815190
You'll unfortunately have to use @{selected|Mobilität|max} or @{target|...|Mobilität|max} or @{Character Name|Mobilität|max} within your Ability. That said—provided that you're not linking Mobilität to Token Bars—a better option might be to divide it into two Attributes; one for the Current value and one for the Max value.
That is unfortunate but your suggestion of adding the second attribute is a good workaround. Thanks Silvyre.
You can avoid having to use a second attribute if this journal Ability is only going to be used by the Character it's setup on. Since you have to select the token to view the Token Abilities anyway,  @{selected|Mobilität|max} will work just fine.  You'd only need to use a second Attribute for the Max value if someone else' Ability, or a GM Shared Macro, was going to reference it.
Thanks Mark, I use the selected descriptor for monsters since they always have a pog to represent them but for the PCs, they don't always have one on the map, I use one token to represent the party when it makes sense to do so. Using the double attribute adds a bit more but it is so much easier then having to change the character name in every macro the way I had it before... saved me a lot of time. Thanks!