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

Abilities receiving values from macros.

I'll explain this case in details: I have a player in a D&D 4th campaign with a power that gives him temporary hp equal to half his level +3. The math code is easy and it's done, but how do I make the ability 'tmp-hp' receive the assigned value automatically? Is there anything like this? tmp-hp:= [[floor(@{Character|level}/2)+3]]
Generally macros can only read from attributes and not modify them. There are several API scripts that can accomplish what you are looking for, but the API is a mentor only feature.