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 posts the call to chat instead of the macro it should be calling

1538609443

Edited 1538609753
Saint
Plus
I have a Macro that works to display the 5e Battle Master maneuver Tripping attack. I named it "Trip" and the character is named Gauss. So the call  ?{ Combat Maneuver| Trip, %{Gauss|Trip}|No,0} Non-html: ?{ Combat Maneuver| Trip, %{Gauss|Trip}|No,0} When above macro (HTML version) is selected it returns: %{Gauss|Trip} The problem is that it posts exactly that into the chat instead of pulling up the Macro that it should be calling. If I just type "%{Gauss|Trip}" and hit enter, then it calls the Trip macro. Any suggestions to get the pick macro to actually call the Trip macro?
1538615331
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
This is because you don't replace the characters in the ability call, you replace them in the actual ability. I would recommend using ability command buttons instead as they are much easier than having to do the html replacements for advanced roll queries.
1538619321

Edited 1538619400
Saint
Plus
Thank you very much! So for this I would need to do the HTML replacement in the Trip macro that is being called and it should work?
1538620348
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Yes, but it is a PITA, Look into the ability command buttons, with them you can make chat menus that give much of the functionality of the roll query
1538620731
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Doubling down on the recommendation for Ability Command Buttons and Chat Menus. Here is an overview .
Remember: DO NOT MAKE MACROS. Macros are broken. Your HTML breaks, literally, if you even look at it. That's not an exaggeration. Don't use 'em! Make Abilities instead. On character sheets. Same link keithcurtis showed, should have something about making a Macro Mule, a character sheet for just macros. It's easier to move 'em from game-to-game this way, too!
1538637056
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
To clarify, there are some time when making macros is preferable, just not many. If you want to have a universal token macro, for instance for calling initiative, only a Collections Tab Macro will do the job.