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

Looking for variable documentation

1557627360

Edited 1557629012
Hello, I am trying to find a good place with various information about filling in things with parameters, such as Damage: 1d6 + @{level}. On my own messing around in the sheets in my game I can't figure out ways to do things like 5ft per 2 levels without just doing 1d6 + [[2.5 * @{level}]] which isn't 100% correct. And my attempt to use [[@{level}]]d6 to roll #d6 doesn't work at all. I'm also not sure how to cap something at a certain number (ie leveld6 max 5d6) Maybe I cannot find it because I do not know exactly what this is called in roll20. Thanks
1557630159
The Aaron
Roll20 Production Team
API Scripter
Those are "Attributes"  Which ones exist generally depends on which character sheet you're using.  You can add them in the Attributes & Abilities tab of a character if you aren't using a character sheet.  Character Sheets will generally have ones that you fill in, and ones that are calculated.  The fill in ones will show up in the Attributes & Abilities tab, the auto calculated ones will not.  You can inspect the html and find attributes in the character sheet, if you can't find them documented anywhere else.
1557631649
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Also, repeating attributes are not listed in the Attributes & Abilities tab. This would be things that you can add as part of a list: Equipment, spells, etc.
1557632247

Edited 1557632394
GiGs
Pro
Sheet Author
API Scripter
The wiki can help out a lot here. The Dice Reference page will answer a lot of your questions. Also, every character sheet has different ways of doing things, so if you want help with a specific sheet, you'll need to say which one it is. But speaking generally, if you want to cap something, you need to use a Group Roll. For instance: If you want to roll1d6/level, you should be able to do this: @{level}d6 or [[@{level}]]d6. If you want to cap it to 5dice, using a group roll looks like this: [[{@{level},5}kl1]]d6 These examples assume you are putting these as Abilities on your character sheet. See the Macro page for more about them. If instead you want to just type them into chat, or add them to universal macros, you need to identify the character. Here are a couple of ways to do it: [[{@{selected|level},5}kl1]]d6 This will work if you have a token selected before   running the macro, which is linked to a character. If instead you want to click the macro and then  their token, use target: [[{@{target|level},5}kl1]]d6 For your other example:  1d6 + 5' per 2 levels: You do that with the floor(), round(), or ceil() functions. floor is for rounding down, ceil is for rounding up, and round is for rounding to the nearest. So that would be /roll 1d6 + round(@{level}/2) assuming it's meant to be rounding to the nearest.
Thanks.