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

Change Attribute on Macro

Hi everyone! I'm currently in a campaign and creating some macros for it. One of my issues is that i have a weapon which deals 1d6 damage, but if i activate a specific stance, my damage rises to 2d6. My idea was, to have a macro called "StanceOn" which will express a short flavor text and change the attribute @{WeaponDmg} from '1d6' to '2d6'. I'd also have a macro to do the reverse thing, called "StanceOff". I didn't find any way of doing this at first glance in the macro wiki, so is this even possible? What would be another way to solve this without having to change my attribute manually? Best regards Evenus
1422003216
Gen Kitty
Forum Champion
Here's one way, something you'd slip into a larger macro: Damage: [[ ?{# Dice?|1}d6 ]] When you ran the macro, it would ask you '# Dice?' and default to 1. You could then choose to accept the 1, or enter in a 2 to roll 2d6. Other methods would require API because macros can not change attributes.
Okay, thanks a lot :)