179 lines
8.1 KiB
JSON
179 lines
8.1 KiB
JSON
{
|
|
"_id": "4Q0rDMBIs2YtZbfX",
|
|
"name": "Chittercast (Rating)",
|
|
"type": "talent",
|
|
"flags": {
|
|
"core": {
|
|
"sourceId": "Compendium.wfrp4e-unofficial-grimoire.ug-careerstalentstraits.4Q0rDMBIs2YtZbfX"
|
|
}
|
|
},
|
|
"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",
|
|
"label": "Description",
|
|
"value": "<p>Before you roll any Channelling or Language (Magick) Test, you may call upon the fickle will of the Horned Rat to aid you in your spellcasting. If the Test succeeds, add your Chittercast Rating in SL to your Test. When you call upon this power, roll an extra 1d10. This die does not provide a bonus but it counts towards Miscast possibilities. A roll of triples increases the Miscast severity by one table. </p>"
|
|
},
|
|
"gmdescription": {
|
|
"type": "String",
|
|
"label": "Description",
|
|
"value": ""
|
|
},
|
|
"max": {
|
|
"type": "String",
|
|
"label": "Max Advances",
|
|
"value": "1"
|
|
},
|
|
"advances": {
|
|
"type": "Number",
|
|
"label": "Advances",
|
|
"value": 1,
|
|
"force": false
|
|
},
|
|
"career": {
|
|
"value": "",
|
|
"type": "String",
|
|
"label": "Career"
|
|
},
|
|
"tests": {
|
|
"type": "String",
|
|
"label": "Tests",
|
|
"value": "Spell and Channell tests"
|
|
}
|
|
},
|
|
"folder": null,
|
|
"sort": 300000,
|
|
"_key": "!items!4Q0rDMBIs2YtZbfX"
|
|
} |