19 lines
774 B
JSON
19 lines
774 B
JSON
{
|
|
"name": "Kritische Fehler beim Zaubern",
|
|
"permission": {
|
|
"default": 2,
|
|
"CBq5YXAqbO7HoJ03": 3
|
|
},
|
|
"type": "script",
|
|
"flags": {
|
|
"core": {
|
|
"sourceId": "Macro.e4KLlTBq8Z4Pt7In"
|
|
}
|
|
},
|
|
"scope": "global",
|
|
"command": "main()\nasync function main() {\n\n//Das richtige Pack (Kompendium) holen\n\nconst pack = game.packs.get(\"midgard5.tabellen-kritische-ereignisse\");\n\nawait pack.getIndex();\n\n// Richtige Tabelle aus dem Pack holen\n\nlet entry = pack.index.find(e => e.name === \"Kritische Fehler beim Zaubern\");\n\n\n// Zum Schluss drauf würfeln\n\npack.getEntity(entry._id).then(table => table.draw());\n\n}",
|
|
"author": "CBq5YXAqbO7HoJ03",
|
|
"img": "systems/midgard5/assets/icons/macro/kritfehlerzauber.svg",
|
|
"actorIds": [],
|
|
"_id": "XtzGuyYRyX8wVi1e"
|
|
} |