Wolph42 Drop-in Difficult Terrain Mask Applier

These are tools and utilities that make it easier to run games. This includes Lib: macro tokens dropped into MapTool to manage the game, a conversion file for CharacterTool to allow use in MapTool, or just about anything else you can think of -- except graphics with macros and anything specific to a particular campaign framework. Those are already covered by the Tilesets subforum and the Links and External Resources forum.

Moderators: dorpond, trevor, Azhrei, giliath, Gamerdude, jay, Mr.Ice

Post Reply
User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Wolph42 Drop-in Difficult Terrain Mask Applier

Post by wolph42 »

for lack of a better name...

This is a bit more advanced. This drop-in copies difficult terrain tokens (or actually any token you would like) in places where a map is non transparent.
It makes use of the 'Token VBL' option in maptool.

You are probably familiar with 'Token VBL' where the VBL is applied where a token is non transparent. You can use this function for doors, but you can also create a mask of a map in e.g. photoshop. This is what such a mask looks like:
mask image
mask.png
mask.png (68.96 KiB) Viewed 3791 times
note here that the white area is actually transparent. The red obviousl not.

If you drag this image on the background layer of MT and then apply token VBL you would get (yellow) VBL in the red areas.

What this macro does is check whether in a cell is token vbl and if so it copy pastes a 'terrain modifier' token (which you have to create yourself) into that spot. The result would look like this:
result image
result.jpg
result.jpg (80.3 KiB) Viewed 3791 times
Explanation:
next to the Hero token you see the original 'terrain modifier' token (small triangle in lower right corner).
- The mask image has been placed onto the background layer (as you can see)
- Token VBL is turned ON for the mask (any existing normal/blue VBL already on the map will be ignored)
- Run the macro on the drop-in
- result is a 'difficult terrain' token in every cell where there is yellow VBL close to the centre of that cell (thats why you don't see any terrain tokens in cells where the mask has bled into).

when done you can remove the mask image.

Usage:
1. drag and drop token into campaign (macro token)
2. place mask on background (mask token)
3. place 'to be copied token, for example a difficult terrain, on the map (terrain token)
4. turn on token VBL for the mask
5. edit first 3 lines of the macro on the 'macro token':
- mTok is the name of the mask token
- dTok is the name of the terrain token
- layer is the layer where you want to have the terrain tokens placed
6. save and run
7. remove mask token.
done.

DOWNLOAD LINK

Post Reply

Return to “Drop-In Macro Resources”