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 .
×

Changing a Attribute in a Macro

Hey, my DM decided to use roll-d20 for the next campaign we are doing with a weird system. I am impressed with the system thus far. I started playing around with Macros. In the system we are using, you can (optionally) spend points to improve your roll. So I was given access to my character sheet, and added the following Ability (Bash) to simply calculate the result. Orrin bashes the target, with a /roll 1d20+@{MightEdge}+?{Effort|0} What I'd like to do instead (as a player) is to spend the points in effort as well. Something like (though this syntax is totally wrong) set effort = ?{Effort|0} Orrin bashes the target, putting in (effort) set {Might} = @{Might}-(effort) Orrin has @{Might} left /roll 1d20=@{MightEdge}+(effort) vs target Is that possible, or does one have to use the API for such things? AKA do I have to write the hook, then give it to my DM do add to the campaign?
1391965620
Gauss
Forum Champion
Macros cannot modify an attribute, you will need the API. If you need help writing the script I suggest posting what you need in the API forum. Then, as you surmised, you can give it to your GM. :)