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

[D&D 4e] Defence stat lookups failing

When using macros to display defence stats in D&D 4e (for example, @{Name|Ref}, the wrong number is being generated - I've only been able to test my own character and his Fort, Ref and Will are all coming up wrong (AC is correct but this may be coincidence). The appropriate characteristic is selected in settings. Looking over how the macro is generating the number it comes to, this doesn't correspond to how the page source code shows the attribute is generated in the character sheet, nor seems to make much sense on its own. @{Name|Ref} worked before the Update of Holding, has the necessary lookup changed with this update, or is something else amiss?
1443137674

Edited 1443137751
Gen Kitty
Forum Champion
For the moment this appears to be a character sheet issue rather than a Roll20 issue, so I'll shift this over to the Character Sheets sub-forum.  If this turns into a bug report, it can be shifted back here again :) If there's multiple 4e sheets, you'll need to say which sheet you're using.
Thanks; missed there being such a sub-forum, sorry about that. I don't know of there being more than one 4e sheet, but I think when I ran lookups on NPCs the macro worked, so there may be a separate NPC sheet only visible to the GM which I don't know about but does work.
1443190038
Lithl
Pro
Sheet Author
API Scripter
There is only one 4e sheet, and there isn't anything separate for NPCs. Checkerbeard said: Looking over how the macro is generating the number it comes to, this doesn't correspond to how the page source code shows the attribute is generated in the character sheet, nor seems to make much sense on its own. @{Name|Ref} worked before the Update of Holding, has the necessary lookup changed with this update, or is something else amiss? There has been only one commit to the sheet since Update of Holding came out in March (change in July). The only attributes that were changed are: @{gender} was changed from a dropdown to a text field in accordance with character sheet policy put into effect after the sheet was created originally. @{ac-highest}: "None" added to the select dropdown in the settings section. Added @{init-tie} in the settings section. (Used for adding tiebreakers to initiative macros.) Added @{weapon- N -per-plus} for each of the six weapons in the inventory tab. (Used for critical damage dice size.) Default values for @{skill- SKILLNAME -roll-text} and @{ability- ABILITYNAME -roll-text} in the settings section were changed, but that doesn't affect existing characters. Additionally, all roll buttons were changed to use the new &{template:dnd4epower}, but the content of the rolls did not change. A %{-wiki-link} roll button was added to the bottom of the sheet which posts a link to the D&D 4e Character Sheet page on the wiki for more information. When I test the defense value attributes on my 4e characters, they come out correct, so it isn't something inherently wrong with the sheet. Try creating a new character and testing the values; it may be a problem with the specific character , rather than with the sheet. If it is a problem with the character, check the Attributes & Abilities tab for duplicate attributes.
Thank you for the clarification; in Abilities and Attributes, there doesn't seem to be a section for the defence stat itself but the maximum, for example, "ref-highest" is set to "@{dexterity-mod}", all defences being in accordance with the drop-down menus in the Settings tab. Can I ask what phrase you are using to test your own characters' defences? The macro I'm using is "&{template:dnd4epower}{{emote=FLAVOUR TEXT}}{{name=Reflex}}{{other=1}}{{=[[@{NAME|Ref}+?{Modifiers|}]]}}"; the amount missing seems not to correspond with the sum of class and enhancement bonuses, but again this could be coincidence.
1443217416

Edited 1443217526
Lithl
Pro
Sheet Author
API Scripter
Checkerbeard said: The macro I'm using is "&{template:dnd4epower}{{emote=FLAVOUR TEXT}}{{name=Reflex}}{{other=1}}{{=[[@{NAME|Ref}+?{Modifiers|}]]}}" Are you including a value for the Modifiers query popup when you try this? Using this macro and just hitting enter when the roll query asks for modifiers, I consistently get a total which is equal to 10+halflevel+ability, instead of 10+halflevel+ability+armor+class+feat+enhancement+misc+misc2 (although all of the numbers show up in the tooltip). If I supply 0 for the popup, I get the correct value. If you don't supply a value for Modifiers with your macro, the result is something to the effect of "10+floor(16/2)+floor((17-10)/2)+0+1+3+4+2+0+" -- notice the trailing "+". You can make the query popup default to 0 by using "?{Modifiers|0}".
That's not something I'd've expected, thanks - I have been leaving it blank, it works perfectly now with a 0 in that place.