ST Random NPC Dialog - ironmonk88/monks-module-wiki GitHub Wiki
The selected actor speaks a line of dialog at random from the Roll Table results; the table needs text entries with your desired dialog.
-
Chat Message
- Text:
{{{value.text.[0]}}}
- Text:
- Roll Table
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"
}
MATT 10.11