ST Token Magic FX on Hover - ironmonk88/monks-module-wiki GitHub Wiki

Token Magic FX on Hover

Applies a Token Magic FX to the tile when hovered over; this requires Token Magic FX installed and active.

Not officially supported by MATT.

Hover In Macro

For the hoverin macro, I'm not including all of the TMFX macros; it requires modifying a Token Magic macro by replacing the final line with the following line:

await TokenMagic.addUpdateFilters(arguments[0].tile, params);

Hover Out Macro

// Based on the original macro by Token Magic FX; modified by Ove.

await TokenMagic.deleteFilters(arguments[0].tile);

Setup Required

Setup Tab

  • When: Hover In & Hover Out

Actions

Click here to view Tile Template JSON Data

Copy & paste this into Notepad and save it as a .JSON file. Then import it using MATT's Tile Templates.

{
  "texture": {
    "src": null,
    "scaleX": 1,
    "scaleY": 1,
    "tint": null,
    "offsetX": 0,
    "offsetY": 0,
    "rotation": 0
  },
  "x": 3900,
  "y": 3500,
  "z": 100,
  "width": 100,
  "height": 100,
  "rotation": 0,
  "alpha": 1,
  "flags": {
    "tagger": {
      "tags": ""
    },
    "monks-active-tiles": {
      "active": true,
      "record": false,
      "restriction": "all",
      "controlled": "all",
      "trigger": [
        "",
        "hoverin",
        "hoverout"
      ],
      "allowpaused": false,
      "usealpha": false,
      "pointer": false,
      "pertoken": false,
      "minrequired": 0,
      "chance": 100,
      "fileindex": 0,
      "actions": [
        {
          "action": "anchor",
          "data": {
            "tag": "_hoverin",
            "stop": true
          },
          "id": "QvFhnG3QscBVmsPK"
        },
        {
          "action": "runmacro",
          "data": {
            "entity": {
              "id": "Macro.Bi8ZK0vj4ciGzad6",
              "name": "TMFX Fire on Hover In"
            },
            "args": "",
            "runasgm": "unknown"
          },
          "id": "id6PTZITTXwUvgdi"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "_hoverout",
            "stop": true
          },
          "id": "BpMkN5yQbNcUL9vX"
        },
        {
          "action": "runmacro",
          "data": {
            "entity": {
              "id": "Macro.tcqnAFDjjXIHdj4o",
              "name": "Delete TMFX on Hover Out"
            },
            "args": "",
            "runasgm": "unknown"
          },
          "id": "3Mh8dLWipXSq9iOf"
        }
      ],
      "files": []
    },
    "tokenmagic": {},
    "exportSource": {
      "world": "matt-test",
      "system": "dnd5e",
      "coreVersion": "10.291",
      "systemVersion": "2.1.5"
    }
  },
  "overhead": false,
  "roof": false,
  "occlusion": {
    "mode": 1,
    "alpha": 0,
    "radius": null
  },
  "video": {
    "loop": true,
    "autoplay": true,
    "volume": 0
  },
  "hidden": false,
  "locked": false,
  "id": "vAksEghkr3sxmvAN",
  "name": "TMFX_On_Hover",
  "visible": true,
  "img": null,
  "thumbnail": "modules/monks-active-tiles/img/cube.svg"
}

Page Last Updated

  • MATT 10.12
  • TMFX 0.6.1.2
⚠️ **GitHub.com Fallback** ⚠️