Maptools – Quick Visibiltiy Change

Posted by on May 5, 2012

Maptools – Quick Visibiltiy Change

Looking for a fast way to change the visibility of a token or object in map tools?  Then look no further!I decided to start posting useful macros every week or so on my blog.  The first one I want to start is my quick visibility change button.  This is one I use all the time and I am thinking that everyone could find a useful place for it in their game.

[H: assert( isGM(), "<b>" + getMacroName() +
  "</b> is a GM only macro.", 0 )]

[if(getVisible()==1), CODE:
{
   [h:setVisible(0)]
   [g: "They are hidden"]
   [H: state.Hidden = 1]
};{
   [h:setVisible(1)]
   [g: "They are visible"]
   [H: state.Hidden = 0]
}
]

The only other thing you need to do for this macro is to check the “Apply to Selected Tokens” checkbox. This will change all the selected tokens from visible to hidden and visa versa. It also spits out a nice message to the DM that says if they are hidden or visible. I found that to be useful for when I forgot and need to scroll back in the chat log to see. Sometimes I just have a hard time seeing the slight shade of grey that says they are invisible.

So what is this useful for? Well I use it to keep all the monsters and traps on my map invisible to players. It allows me to keep a stockpile of invisible creatures off the map that I can move into place. Then when the time is right I can make them visible to attack or surprise the party. It works very well for traps since you usually want to have those hidden around the map. It also means that the players never know if I really had a trap there the whole time or if I just decided to be mean. ;)