forked from public/wfrp4e-unofficial-grimoire
updated all creatures to use newest traits, first active effect created.
This commit is contained in:
@@ -7,8 +7,139 @@
|
||||
"sourceId": "Compendium.wfrp4e-unofficial-grimoire.ug-careerstalentstraits.4Q0rDMBIs2YtZbfX"
|
||||
}
|
||||
},
|
||||
"img": "systems/wfrp4e/icons/blank.png",
|
||||
"effects": [],
|
||||
"img": "icons/creatures/mammals/rodent-rat-green.webp",
|
||||
"effects": [
|
||||
{
|
||||
"name": "Chittercast (Rating)",
|
||||
"img": "icons/creatures/mammals/rodent-rat-green.webp",
|
||||
"_id": "UnsVhV1JeWHQSNP0",
|
||||
"type": "base",
|
||||
"system": {
|
||||
"transferData": {
|
||||
"type": "document",
|
||||
"originalType": "document",
|
||||
"documentType": "Actor",
|
||||
"avoidTest": {
|
||||
"value": "none",
|
||||
"opposed": false,
|
||||
"prevention": true,
|
||||
"reversed": false
|
||||
},
|
||||
"testIndependent": false,
|
||||
"equipTransfer": false,
|
||||
"selfOnly": false,
|
||||
"prompt": false,
|
||||
"area": {
|
||||
"templateData": {
|
||||
"borderColor": null,
|
||||
"fillColor": null,
|
||||
"texture": null
|
||||
},
|
||||
"keep": false,
|
||||
"aura": {
|
||||
"transferred": false,
|
||||
"render": false
|
||||
},
|
||||
"duration": "sustained"
|
||||
},
|
||||
"zone": {
|
||||
"type": "zone",
|
||||
"transferred": false,
|
||||
"traits": {},
|
||||
"skipImmediateOnPlacement": false,
|
||||
"keep": false
|
||||
}
|
||||
},
|
||||
"itemTargetData": {
|
||||
"ids": [],
|
||||
"allItems": false
|
||||
},
|
||||
"scriptData": [
|
||||
{
|
||||
"script": "if (isNaN(parseInt(this.item.specifier)))\n{\n let value = await ValueDialog.create({text : \"Set Chittercast rating\", title : this.effect.name});\n if (value)\n {\n this.item.updateSource({name: this.item.setSpecifier(value)});\n this.effect.updateSource({name : this.effect.setSpecifier(value)})\n }\n}",
|
||||
"label": "Set Rating",
|
||||
"trigger": "immediate",
|
||||
"options": {
|
||||
"targeter": false,
|
||||
"defending": false,
|
||||
"deleteEffect": false
|
||||
},
|
||||
"async": false
|
||||
},
|
||||
{
|
||||
"script": "args.fields.successBonus += parseInt(this.item.specifier);",
|
||||
"label": "Chittercast Bonus",
|
||||
"trigger": "dialog",
|
||||
"options": {
|
||||
"targeter": false,
|
||||
"defending": false,
|
||||
"hideScript": "return !args.spell",
|
||||
"activateScript": "",
|
||||
"submissionScript": "args.context.chittercast = true;",
|
||||
"deleteEffect": false
|
||||
},
|
||||
"async": false
|
||||
},
|
||||
{
|
||||
"script": "if (args.test.options.chittercast) {\n const padded = String(args.test.result.roll).padStart(2, '0');\n const d1 = Number(padded[0]);\n const d2 = Number(padded[1]);\n let r = await new Roll(\"1d10\").evaluate();\n let chatData = {\n type: CONST.CHAT_MESSAGE_STYLES.ROLL,\n rolls: [r],\n content: 'Horned Rat Influence!'\n };\n ChatMessage.applyRollMode(chatData, \"roll\");\n ChatMessage.create(chatData);\n\n if (d1 === r.total || d2 === r.total) {\n args.test.result.other.push(`<b>${this.effect.name}</b>: Horned Rat Influence!`);\n if (args.test.result.tables.miscast) {\n args.test.result.tables.majormis = {\n label : game.i18n.localize(\"ROLL.MajorMis\"),\n class : \"fumble-roll\",\n key : \"majormis\"\n }\n }\n else {\n args.test.result.tables.miscast = {\n label : game.i18n.localize(\"ROLL.MinorMis\"),\n class : \"fumble-roll\",\n key : \"minormis\"\n }\n }\n } else if (d1 === r.total && d2 === r.total) {\n args.test.result.other.push(`<b>${this.effect.name}</b>: Major Horned Rat Influence!`);\n if (args.test.result.tables.majormis) {\n args.test.result.tables.catastrophicmis = {\n label : game.i18n.localize(\"ROLL.CatastrophicMis\"),\n class : \"fumble-roll\",\n key : \"catastrophicmis\"\n }\n }\n else {\n args.test.result.tables.majormis = {\n label : game.i18n.localize(\"ROLL.MajorMis\"),\n class : \"fumble-roll\",\n key : \"majormis\"\n }\n }\n }\n}",
|
||||
"label": "Manifestacja (Czarowanie)",
|
||||
"trigger": "rollCastTest",
|
||||
"options": {
|
||||
"targeter": false,
|
||||
"defending": false,
|
||||
"deleteEffect": false
|
||||
},
|
||||
"async": false
|
||||
},
|
||||
{
|
||||
"script": "if (args.test.options.chittercast) {\n const padded = String(args.test.result.roll).padStart(2, '0');\n const d1 = Number(padded[0]);\n const d2 = Number(padded[1]);\n let r = await new Roll(\"1d10\").evaluate();\n let chatData = {\n type: CONST.CHAT_MESSAGE_STYLES.ROLL,\n rolls: [r],\n content: 'Horned Rat Influence!'\n };\n ChatMessage.applyRollMode(chatData, \"roll\");\n ChatMessage.create(chatData);\n\n if (d1 === r.total || d2 === r.total) {\n args.test.result.other.push(`<b>${this.effect.name}</b>: Horned Rat Influence!`);\n if (args.test.result.tables.miscast) {\n args.test.result.tables.majormis = {\n label : game.i18n.localize(\"ROLL.MajorMis\"),\n class : \"fumble-roll\",\n key : \"majormis\"\n }\n }\n else {\n args.test.result.tables.miscast = {\n label : game.i18n.localize(\"ROLL.MinorMis\"),\n class : \"fumble-roll\",\n key : \"minormis\"\n }\n }\n } else if (d1 === r.total && d2 === r.total) {\n args.test.result.other.push(`<b>${this.effect.name}</b>: Major Horned Rat Influence!`);\n if (args.test.result.tables.majormis) {\n args.test.result.tables.catastrophicmis = {\n label : game.i18n.localize(\"ROLL.CatastrophicMis\"),\n class : \"fumble-roll\",\n key : \"catastrophicmis\"\n }\n }\n else {\n args.test.result.tables.majormis = {\n label : game.i18n.localize(\"ROLL.MajorMis\"),\n class : \"fumble-roll\",\n key : \"majormis\"\n }\n }\n }\n}",
|
||||
"label": "Manifestacja (Splatanie)",
|
||||
"trigger": "rollChannellingTest",
|
||||
"options": {
|
||||
"targeter": false,
|
||||
"defending": false,
|
||||
"deleteEffect": false
|
||||
},
|
||||
"async": false
|
||||
}
|
||||
],
|
||||
"zone": {
|
||||
"type": "zone",
|
||||
"traits": {},
|
||||
"skipImmediateOnPlacement": false
|
||||
},
|
||||
"sourceData": {
|
||||
"test": {}
|
||||
},
|
||||
"condition": {
|
||||
"numbered": false
|
||||
}
|
||||
},
|
||||
"changes": [],
|
||||
"disabled": false,
|
||||
"duration": {
|
||||
"startTime": null,
|
||||
"combat": null,
|
||||
"seconds": null,
|
||||
"rounds": null,
|
||||
"turns": null,
|
||||
"startRound": null,
|
||||
"startTurn": null
|
||||
},
|
||||
"description": "",
|
||||
"origin": null,
|
||||
"tint": "#ffffff",
|
||||
"transfer": true,
|
||||
"statuses": [],
|
||||
"sort": 0,
|
||||
"flags": {
|
||||
"wfrp4e": {
|
||||
"manualEffectKeys": false
|
||||
}
|
||||
},
|
||||
"_key": "!items.effects!4Q0rDMBIs2YtZbfX.UnsVhV1JeWHQSNP0"
|
||||
}
|
||||
],
|
||||
"system": {
|
||||
"description": {
|
||||
"type": "String",
|
||||
@@ -39,10 +170,10 @@
|
||||
"tests": {
|
||||
"type": "String",
|
||||
"label": "Tests",
|
||||
"value": ""
|
||||
"value": "Spell and Channell tests"
|
||||
}
|
||||
},
|
||||
"folder": null,
|
||||
"sort": 0,
|
||||
"sort": 300000,
|
||||
"_key": "!items!4Q0rDMBIs2YtZbfX"
|
||||
}
|
Reference in New Issue
Block a user