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

Macro question

I am looking for the tutorial of the making a custom character sheet (not with API) that explains how to fetch bonuses from the attribute column into the ability macros. Can anyone help me?
1473284470
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Are you trying to program the sheet so that it displays properly calculated values (i.e. html and css coding) or are you just trying to make an ability that uses an existing character sheets stats?
I am making a Mass Effect D6 text character sheet and am using the Attributes and Ability tab to make the macros. I want to pull the number of dice from one of the attributes and the bonus from another attribute skills so when characters advance they don't have to edit each macro individually just the corresponding attribute/skill EXAMPLE: [[(Dexterity Dice)D6+(Skill Bonus)]]
1473286045

Edited 1473286090
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Ah if you're working in the ability attributes tab of the in game sheet, then I actually know something. If it had been a question about the html/css for programming the char sheet, I'd have had nothing. To call an attribute you do @{attributeName}. To call an ability, you do %{abilityName}. What exactly the names are will depend on how you named them in the sheet. So, assuming your dexterity dice attribute was named dexterity_dice and your skill bonus was skill_bonus: [[@{dexterity_dice}d6+@{skill_bonus}]] Depending on what the value of dexterity_dice or skill_bonus is, you may need to put a set of inline roll brackets around the dexterity_dice call itself as well: [[[[@{dexterity_dice}]]d6+[[@{skill_bonus}]] ]] in order to use the @{...} or %{...} syntax, you can't have any spaces in the name.
1473287165

Edited 1473287174
Is there a way to make a drop down selection instead of individual macros. EXAMPLE [[@{Dexterity}D6+@{?{Skill}}]]