MATT Tile Templates - ironmonk88/monks-module-wiki GitHub Wiki

Tile Templates

Monk's Active Tile Triggers includes a directory for saving tile data; you can then drag & drop them onto the canvas from here.

Saving a Template

Click this button on the tile configuration window AFTER saving the tile and re-opening the tile configuration window. You will be asked to name the template, and then the tile's data will be saved to the Tile Template directory.

https://github.com/ironmonk88/monks-module-wiki/blob/8484fbe8d20686e02bedd15124319de0433c6c3a/MATT/Tile_Templates_Guide/Tile_Config_Template_Button.png

Accessing Tile Templates

On the left tool-bar, click on the Tile layer tool, then use this button to access the template directory.

https://github.com/ironmonk88/monks-module-wiki/blob/8484fbe8d20686e02bedd15124319de0433c6c3a/MATT/Tile_Templates_Guide/Tile_Templates_Tool.png

The window can also be opened with the following macro:

ui.controls.controls.find(c => c.name == "tiles").tools.find(t => t.name == "templates").onClick()

Tile Template Directory

Here you can right-click to import, export, or delete templates; or drag and drop them onto your currently viewed scene.

  • To import a template, use Create Tile to create a new one and give it a name. Then right-click it and import the JSON file.
  • Sample Tiles includes JSONs for the majority of the examples.

https://github.com/ironmonk88/monks-module-wiki/blob/8484fbe8d20686e02bedd15124319de0433c6c3a/MATT/Tile_Templates_Guide/Tile_Templates_Window.png

Using Templates

Drag the template from the window to the canvas.

https://github.com/ironmonk88/monks-module-wiki/blob/a15daa5044f729a2eae9a2773364ecfd590fc7ed/MATT/Tile_Templates_Guide/Tile_Template_Example.gif

Notes

  • Saving a template saves all flags & attributes on the tile.
    • $\color{yellow}{\textsf{Warning}}$ Token Attacher data is included in this; if the tile was attached to a token when it was saved, it will be created as a broken link and will be unable to be moved until you fix this via Token Attacher's macros.
    • Z-Index is another issue; if your template is saved at Z 0, and you drop it where there is another tile at Z 100, you will be placing it below the other tile and be unable to see it.
  • Multiple Document Selection works in this directory, allowing you to mass move, delete, or export & import templates between worlds.
    • Tile targets will still be broken when importing. Use Tagger for targets that accept Tags, and fix the ones that don't manually.
  • $\color{yellow}{\textsf{Warning}}$ Any templates created as part a scene with Levels active will not function properly in a scene without Levels active.
  • Foundry JSONs with image assets being publicly hosted on services such as Forge will contain your asset links. You may want to clear this out before sharing the JSONs.

Page Last Updated

MATT 10.18