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

Are we able to use a macro to change a target token's stat with a generated roll yet?

Hello all! I know that Aaron was working on something he called CharMod that might be abe to do this in the future, but I use the following formula to generate an amount of healing for a cure spell: "@{selected|token_name} casts CURE Wounds on @{target|Target|token_name}, healing them for [[(?{Spell Slot Level|1})d8 + @{selected|PB} + @{selected|wisdom_mod}]]!".  Next as the DM, I manually adjust the target's HP to reflect the rolled outcome of the script. Is there a way to automate the process so that it automatically adds the calculated amount to the targeted bar3 of the targeted token?  Thanks!
TokenMod is able to accomplish this, from a quick skim of the documentation.
Thanks for the reply Silvyre, however, TokenMod doesnt seem to allow for the selecting of variables such as spell level as a multiplier toward the number of d8s calculated. Still, it is an improvement over what I was using. 
TokenMod doesn't need to do that... since you can just use a roll query for that purpose.
HoneyBadger, would you be able to elaborate on that?  I have been using [[(?{Spell Slot Level|1})d8 + @{selected|PB} + @{selected|wisdom_mod}]] to query the spell level used to calculate the roll - can I incorporate this somehow for TokenMod? My understanding is that TokenMod is not flexible enough to handle a query.  I am currently using this formula for with TokenMod to create a fixed "level" of casting:  !token-mod {{ --set bar1_value|[[{@{target|Target|bar1}+1d8+3+2, @{target|Target|bar1|Max}d1}kl1]] --ids @{target|Target|token_id}}} Any suggestions?  Thanks!
Queries and attributes are always done first before the data even gets sent to the api. Just put it in where it needs to be !token-mod {{ --set bar1_value|[[{@{target|Target|bar1} + [[(?{Spell Slot Level|1})d8 + @{selected|PB} + @{selected|wisdom_mod}]], @{target|Target|bar1|Max}d1}kl1]] --ids @{target|Target|token_id} }}
I feel compelled to mention that (coincidentally?) Alter Bar on Token is currently featured on the Community Spotlight menu.
1449430746

Edited 1449430984
Really? That old piece of junk... lol. It would work in this instance too... but TokenMod does the same thing and is far more powerful.
Thanks HoneyBadger, this looks promising. However, when I use the macro, it requests the "spell level" and requests a target, then I hear the dice roll, but then nothing actually happens.
I dunno. I don't use token-mod. I am powercards guru.