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 .
×

@{name|max} don't work ? need a little help

hi all :) easy and simple how can i use max on character sheet ? thank you. @{name} give good answer @{name|max} give error
1481741456

Edited 1481741495
Pat S.
Forum Champion
Sheet Author
What character sheet are you using? What is the max for? the hp?
I assume that you are trying to use the command @{<keyword>|<attribute>|<options>} @{name} where name is an attribute and used inside a character sheet (or macro for the character) defaults to @{charname|name} The reason that @{name|max} fails used in this way is because it is associating "name" as the <keyword> entry and max as the <attribute> entry. When you are wanting to specify the <options> like max, you must use a keyword selected, target, character name, or character id.
Kyle G. said: I assume that you are trying to use the command @{<keyword>|<attribute>|<options>} @{name} where name is an attribute and used inside a character sheet (or macro for the character) defaults to @{charname|name} The reason that @{name|max} fails used in this way is because it is associating "name" as the <keyword> entry and max as the <attribute> entry. When you are wanting to specify the <options> like max, you must use a keyword selected, target, character name, or character id. What he's saying is, try @{character_name|name-of-attribute|max}
Thank you all. i use custom sheet. i can use @{character_name|name-of-attribute|max} or @{name-of-attribute) but not this : (name-of-attribute|max}, i must select character_name or put character_name before.  that 's disapointing :-/
1481815638

Edited 1481815661
If you really need to be able to use @{name|max} I would suggest making a name_max attribute with the value @{character_name|name|max}. However, this essentially doubles all of the attributes in the character sheet then you can access it by @{name_max}
1481828565

Edited 1481828647
You should be able to use @{AttributeName|max} within the Attributes & Abilities Tab or Character Sheet Tab .
1482286051

Edited 1482286118
hi thank you all :) i use Character Sheet Tab . i test it :  /r @{Force}  it's k i am not able to use /r @{Force|max}  (force is the attributename ) i got some error : No character was found for 'Force' There was an error with your formula. Please try again. No character was found for 'Force'
1482290795

Edited 1482290996
Tetsuo
Forum Champion
You have to do @{sheetname|force|max} or @{selected|force|max}. When ever you use the max attribute call, you need to use all three sections, else it reads as @{charname|ability}. @{force|max} is trying to call the attribute max from the charsheet force
1482298958

Edited 1482299539
It seems that Abilities behave in a unique way when tested (rather than called/used normally). I brought this to the attention of the Dev Team. Click the .gif below to see this behaviour in action: (Note: the error message was unfound Attribute (and not unfound Character ) because my Character was named 'Test'.) Okami K. , do you think that this might be related to the issues you're experiencing?
"You have to do @{sheetname|force|max} or @{selected|force|max}. When ever you use the max attribute call, you need to use all three sections, else it reads as @{charname|ability}. @{force|max} is trying to call the attribute max from the charsheet force " i think that was a bug (sorry)
Just to confirm, in my testing, once the Ability is created, I was able to use it fine with the button on the Abilities pane, and also using it via chat (for example, %{Riley|Test} where "Test" is the name of the Ability created). It correctly found the attribute using the "shorthand" version. However, as Silvyre pointed out, when you use the "test roll" button that is present when you are actively editing the Ability, it doesn't seem to work. Is that what everyone is seeing? Or is there another issue? We'll get the discrepency fixed.
Here are some other discrepancies possibly related to the matter at hand: The inability to use "shorthand"/keywordless Ability calls (e.g. %{Test}) from within a Character Window, while this can be done with Attributes. The inability to use a characterid as the keyword for Attribute calls (e.g. @{-K_-px2ekOzVBEUPDM5p|Test}), while this can be done with Abilities.