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

4th Edition Sheets not calculating stats correctly

I'm having a problem with the premade 4th eidtion character sheets. When I make a macro that calls out any attribute it adds the entire attribute instead of the attribute modifier. For example, my character has an 18 strength which gives him a +4 modifier for that attribute and I make a macro for a basic melee attack that looks like the following: /me swings sword [[d20+@{strength}]] and hits for [[d8+@{strength}]] When I roll the macro my modifiers look like +18 and +18 instead of +4 and +4. I've swapped the modifier and attribute in the Attributes and Abilities page but now my strength score shows up as a 4 on the Character Sheet page. Anyone else have this problem or know how to solve it? Thanks!!!
1407966660

Edited 1407966880
Myself I use this calculations from the stats to get the modifire for my abilites [[1d20 + floor((@{strength}-10)/2)]] It first -10 to the attribute then divides it by 2 to calculate the modifire. It then rounds down the number to ensure it's a full number and increases on a full 2 increase. That's how I figured out how to do it, since the modifire in the sheet is just a calculation itself. I hope this helps.
1407993339
Lithl
Pro
Sheet Author
API Scripter
Use @{strength-mod} instead of @{strength}
Brian said: Use @{strength-mod} instead of @{strength} Ahhh...thanks! That makes sense now!
Hmmm...new problem. I don't have "strength-mod" as a built-in modifier. Do I need to make the ability-mod stats for all of my stats? If so, how do I get it to automatically change when the scores change or when I level up?
Also...the "Level" just uses the actual number of the level for the modifier and not 1/2 level as the modifier should be.
1408041604
Lithl
Pro
Sheet Author
API Scripter
Indelible Mark said: Hmmm...new problem. I don't have "strength-mod" as a built-in modifier. Do I need to make the ability-mod stats for all of my stats? If so, how do I get it to automatically change when the scores change or when I level up? Not sure what you mean. The 4e sheet has @{strength-mod}, @{constitution-mod}, @{dexterity-mod}, @{intelligence-mod}, @{wisdom-mod}, and @{charisma-mod}. There's also @{strength-mod-level} (&c.) which adds 1/2 Level to the ability modifier, and @{halflevel} for 1/2 level. More generally, though, you ought to fill out the weapon/implement information on the Items tab of the sheet, and then you can use the Powers tab with @{power-1-attack}, @{power-1-weapon-num-dice}, @{power-1-weapon-dice}, and @{power-1-damage}. (Replacing "1" with the appropriate power number, and omitting the weapon-num-dice and weapon-dice if it's not a weapon power.) The ability-mod attributes are still useful for extra effects of the power, but the most common dice rolls (attacking and damaging) are fully handled with the weapon(/implement) stats.
Brian said: Not sure what you mean. The 4e sheet has @{strength-mod}, @{constitution-mod}, @{dexterity-mod}, @{intelligence-mod}, @{wisdom-mod}, and @{charisma-mod}. There's also @{strength-mod-level} (&c.) which adds 1/2 Level to the ability modifier, and @{halflevel} for 1/2 level. More generally, though, you ought to fill out the weapon/implement information on the Items tab of the sheet, and then you can use the Powers tab with @{power-1-attack}, @{power-1-weapon-num-dice}, @{power-1-weapon-dice}, and @{power-1-damage}. (Replacing "1" with the appropriate power number, and omitting the weapon-num-dice and weapon-dice if it's not a weapon power.) The ability-mod attributes are still useful for extra effects of the power, but the most common dice rolls (attacking and damaging) are fully handled with the weapon(/implement) stats. Thanks so much! I've been using the "Attributes and Abilities" tab since it was added and I didn't see the "Strength-mod" or other "(Ability)-mod" entries in the Attributes and Abilities page so I didn't think I would be able to add it into a macro. I tested it out though using @{strength-mod-level} and it worked just like it should!
1408050806
Lithl
Pro
Sheet Author
API Scripter
Auto-calculated values (and repeating section values) don't appear in the attributes and abilities tab, so you wouldn't see them there. =)
Just as a final question: where can I find a list of the auto-calculated values and repeating section values so that I know how to call them out in a macro? Thanks again for all of your help!
1409089585
Lithl
Pro
Sheet Author
API Scripter
I don't think there's a full list anywhere. The description for the sheet lists some available attributes: level halflevel hp hp-bloodied surge-value surges tmp-hp initiative speed action-points ac fort ref will strength constitution dexterity intelligence wisdom charisma [ability]-mod [ability]-mod-level modifier with half level passive-insight passive-perception acrobatics arcana athletics bluff diplomacy dungeoneering endurance heal history insight intimidate nature perception religion stealth streetwise thievery Some of the above are calculated attributes, others are not. For a complete and up-to-date listing of the attributes available, you could search the sheet's source for name="attr_ Another option, assuming you're looking for a value that is displayed (like @{surge-value}) as opposed to a hidden value (like @{halflevel}) is to right-click on the value and choose "Inspect Element" (available in Chrome and Firefox, not available in Internet Explorer, and I don't have any other browsers installed to check). A dialog will open with the element you've clicked on highlighted, and you can look at the name value for it. Some character sheets (but not the 4e sheet) have been set up to show the attribute name when you hover your mouse over it, so you don't have to go looking things up.
Awesome info, but it leads to a question: When I try to use /roll d20+@{pc_name|charisma-mod-level}, I get the following result: rolling d20+floor((20-10)/2)+floor(3/2) (15)+floor((20-10)/2)+floor(3/2) = 21 That's a literal copy and paste. Effectively, all of the text of the math (including floor function calls) are actually showing up in my game's chat instead of what I would expect: "rolling d20+6" and "15+6=21". Is that just "the way it is" and do I need to adjust my (and my group's) expectations, or am I missing something? Thanks in advance for your patience with a new user!
1409720859

Edited 1409720865
Lithl
Pro
Sheet Author
API Scripter
All attributes are "just" copy and paste. That's the way it is. However, if you're using /roll for your attacks/damage/etc., you could wrap the attributes in inline rolls and you wouldn't see the formula unless you hovered your mouse over it: /roll d20+[[@{pc_name|charisma-mod-level}]]
Ahhh, that's the trick. Thanks!
All that math shit is one reason why I don't use the built in sheets. It just looks ugly.