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 Character Sheet Macro Problem

I am using the D&D 4e character sheet template. I have this macro as a monster macro: /emas @{selected|token_name} sprays a stream of fire [[d20+4]] to hit vs @{target|token_name}'s Reflex @{target|ref} and deals [[3d6]] fire damage. When I run it I get this: Fire Beetle sprays a stream of fire 24 to hit vs Artanis Talvir's Reflex 10+floor(5/2)+floor((19-10)/2)+0+1+0+0+0+0 and deals 13 fire damage. So instead of getting just one number for reflex, I am getting the reflex score calculation. How do I change so I just get the reflex score?
1426604573
Gen Kitty
Forum Champion
Put the @{target|ref} inside [[ ]] and that SHOULD fix things. I'm 90% sure :>
That fixed it. Now a more difficult question: I want to change a character's attack and damage based on whether they are bloodied or not. I am tried to implement the technique given here but there are a few things wrong I can't figure out. Firstly, my global macro (Is_bloodied) works and outputs a 0 if not bloodied and a 1 if bloodied as a roll. When I try to execute the macro inside another macro, things get wonky. Here is the code: /me uses @{power-3-name} at @{target|target1|token_name} [[1d20+(#Is_bloodied*1)+@{power-3-attack}]] vs @{power-3-def} Hit: [[(1*@{power-3-weapon-num-dice})d@{power-3-weapon-dice}+@{power-3-damage}+(#Is_bloodied*2)]] Damage and deals an additional 4 to @{target|target2|token_name}
1426629876
Gen Kitty
Forum Champion
Instead of a macro inside a macro, use an attribute of 'is_bloodied' and your equation should (at first skim) work as desired.
So how do I set up the attribute?
1426633559
Gen Kitty
Forum Champion
Open your character journal, go to the Attributes & Abilities tab, click +ADD on the Attributes side of the screen, rename the Untitled attribute to 'is_bloodied' and then give it a value of 0 or 1.
Thank you. Is there a way to automate that so that the 0 changes to 1 whenever the character is bloodied?
1426641912
Gen Kitty
Forum Champion
If you want it automated, another way would be to use HP divided by HP_Max (using whatever attributes your character sheet uses to track HP and maximum HP), in an equation that resolves to 0 or 1 in the end. That sort of math is NOT my forte, but I know there's others around here who can do it.
Thanks.