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

DnD4e Character Sheet changes???

1683433193

Edited 1683433506
Glen
Pro
Hi all I'm not a programmer by trade but I do tinker a bit and usually have pretty good success, but I'm running into a bit of a wall on the DnD4e character sheet and would love to get some input here.  I'm having issues referencing the calculated values on the character sheet from a macro, getting responses with the calculation algorithm rather than the resulting calculation value and I'm not sure how to get around it. As a specific example I'm trying to get the total bonus for a character's Initiative, for which there's really no reference provided in the D&D4e Character Sheet wiki found here . Using @{selected|initiative} returns a value of "floor((17-10)/2)+floor(4/2)+0+0+0" and what I'm looking for is "2" (without the d20 roll result of 17).   The wiki only lists a 'Roll' button and not the actual bonus value, but I did tinker a bit trying to find a solution.   I've tried various permutations such as @{init-score} and @{init-bonus} (as well as sub initiative- for init-) but to no avail.  The 4e wiki page does not provide any insight that I can find, guessing 4e is falling out of favor and lacking support? Similarly, I'm finding @{selected|hp-max} returns a response of "No attribute was found for @{selected|hp-max}", despite that being the documented reference for that field in the wiki.  Is the DnD4e sheet still supported and wiki up to date?
1683458541

Edited 1683458726
[[@{selected|initiative}]] will return the initiative value and [[@{selected|hp|max}]] will give you the full hp. The part about the hp referencing hp-max might be outdated, but it references the auto calculated and hidden attributes section where it does give a better example. There aren't a ton of 4e players out there, but there is still a following.
1683590653

Edited 1683590716
Glen
Pro
Thanks very much for the reply.  I know 4e is a bit of a dying breed but my group is in the middle of a long-term campaign and don't wanna burn the time to convert, so appreciate the assist.  I'm just starting to dive deeper into the macros, still trying to wrap my head around the syntax and difference between { and ( and [ and [[ as well as @ and & and (~ and which are used in chat vs macro vs api calls....and finding something in the forum that matches exactly what you're trying to do is very hit and miss.  Just going to take time I guess.  Thanks again!