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

Macro working for one character, but not another

1563185232

Edited 1563185334
I have a macro for the mirror image spell, that adds an icon and a number to that icon to represent number of images created. And then I can click another button to subtract 1 from that number. It works fine for one character, but not for another, even though they use the exact same macro. I get the error below. I have two global macros: one to add images, called MI-Add-Images: !token-mod --set statusmarkers|!half-haze:[[floor(@{selected|level}/3) +1d4, 8d1}kl1 ]] one to subtract 1, called MI-Remove-Image: !token-mod --set statusmarkers|half-haze:-1 The description in the spell is as follows: [Add Images](~MI-Add-Images) [Remove an image](~MI-Remove-Image) Any ideas? Could the different characters somehow have different permissions to access global macros or something?
1563203061
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Are the abilities MI-Add-Images and MI-Remove-Image on each character? Your syntax indicates as such but if they are not, the code doesn't know where to look.
Yeah, I'm an idiot. I had actually added those macros to the other character, forgotten I had, and thought it was the global macro he was referencing, and then couldn't understand why it worked on one and not the other :D Thanks :)
1563223436
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You could also use a macro character sheet . Basically, put the sub abilities on a sheet of their own. That way, each character only needs to have the referencing macro, which (assuming the name of the Macro Character sheet is "Macros") could be:  [Add Images](~Macros|MI-Add-Images) [Remove an image](~Macros|MI-Remove-Image) The advantage here is you could create only one ability on each sheet, and you have a central location to change the definition of those sub-macros.
Ok, cool. I might try that, thanks :)
Hello Lina W., I am glad to hear that your issue has been resolved. As this issue dealt with Macro issues, I have moved it to the Specific Use Questions & Macro forum. Thanks!