Skip to content

ST Random NPC Dialog

Crowguard edited this page Apr 14, 2023 · 3 revisions

Random NPC Dialog

The selected actor speaks a line of dialog at random from the Roll Table results; the table needs text entries with your desired dialog.

Setup Required

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": 2400,
  "z": 100,
  "width": 100,
  "height": 100,
  "rotation": 0,
  "alpha": 1,
  "flags": {
    "tagger": {
      "tags": ""
    },
    "betterroofs": {
      "brMode": false,
      "occlusionLinkId": "",
      "occlusionLinkSource": false
    },
    "monks-active-tiles": {
      "active": true,
      "record": false,
      "restriction": "all",
      "controlled": "all",
      "trigger": [
        "enter"
      ],
      "allowpaused": false,
      "usealpha": false,
      "pointer": false,
      "pertoken": false,
      "minrequired": 0,
      "chance": 100,
      "fileindex": 0,
      "actions": [
        {
          "action": "rolltable",
          "data": {
            "rolltableid": "RollTable.0ExcFVeO62g3BVuB",
            "quantity": 1,
            "rollmode": "roll",
            "chatmessage": true,
            "reset": true,
            "roll": false
          },
          "id": "clt1yvT0NXEDa0I3"
        },
        {
          "action": "chatmessage",
          "data": {
            "flavor": "",
            "text": "{{{value.text.[0]}}}",
            "entity": "",
            "incharacter": false,
            "chatbubble": true,
            "for": "all",
            "language": ""
          },
          "id": "xFd8Dy2PSjDu1EBH"
        }
      ],
      "files": []
    },
    "multiface-tiles": {
      "originalImage": "D20.webp"
    },
    "exportSource": {
      "world": "matt-test",
      "system": "dnd5e",
      "coreVersion": "10.291",
      "systemVersion": "2.1.3"
    }
  },
  "overhead": false,
  "roof": false,
  "occlusion": {
    "mode": 1,
    "alpha": 0,
    "radius": null
  },
  "video": {
    "loop": true,
    "autoplay": true,
    "volume": 0
  },
  "hidden": false,
  "locked": false,
  "id": "JzNSPvXitdy0Nxnp",
  "name": "Random NPC Dialog",
  "visible": true,
  "img": null,
  "thumbnail": "modules/monks-active-tiles/img/cube.svg"
}

Page Last Updated

MATT 10.11

Clone this wiki locally