Action only when on a specific map

I would like to have an action for a piece that is only available when on a specific map. So I tried creating a ‘hidden’ option to do the action (blank Command Name), and a Trigger Option with a Trigger when properties match of “mapName=Main Map” (for an action only on the main map), but the option is always greyed out (even when on the Main Map) and doesn’t seem to work.

Is there a way to do what I want?

Even better would be to have an action that is only available when stacked with another piece that has some property set. Is there a way to do that?

I think what you’re looking for here is

CurrentMap = Main Map

You can give pieces a Marker Trait. For example, you have a piece representing a car driver and give it a Marker trait of

Driver = Roy

Then have a car piece with the Marker

Car = Chevy

You can then set up a trigger to go off if Driver = Roy && Car = Chevy are in the same location.