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

Possible to restrict macro to one map page?

I made an overworld map for my players, and they can click on a location they've been to, which brings up a macro button to get more info. Is there a way to restrict that macro to only run on that page?  Otherwise, that button shows up on every combat map page. I tried searching, but wasn't able to find anything, thanks in advance!
There's no way to restrict a macro to a page within the macro itself, but depending on how the macro is set up it is possible to to what you want. Where is the macro button located? In the Collections tab? Or on their character sheet? In those cases, the macro will always be available. However, if you create a token for each town on the map page, and then link those town tokens to a 'Town' character, and create an Ability macro button on the 'Town' character sheet for the macro, then it will only be available when they click on the town token. Then if the town token is only on the map page, it'll only be available when they're on that page. You want to make sure that the macro is set up with the "Show as Token Action" checked, not the "Show in Macro Bar".
1619201120
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
More info: Map Pins  - keithcurtis ( More info  - Airsickhydra) ( More info  - Matthew T)
keithcurtis said: More info: Map Pins  - keithcurtis  This is the tutorial I did! I wonder if since it is linked to a handout and not a character, that's why the macro button shows up when I click on characters on other pages.