if (?.active) [Link].
error("Please
enable the Advanced Macros module")
const { actor, token, lArgs } = [Link](args)
const DAEItem = [Link]
if (args[0] === "on") {
await [Link]("Item",
[{
"name": "Hexblade",
"type": "weapon",
"data": {
"quantity": 1,
"equipped": true,
"properties": {
"thr": false,
"ver": false,
"amm": false,
"hvy": true,
"fin": false,
"fir": false,
"foc": false,
"lgt": false,
"lod": false,
"rch": false,
"rel": false,
"ret": false,
"spc": false,
"two": true,
"ada": false,
"mgc": true,
"sil": false
},
"activation": {
"type": "action",
"cost": 1,
"condition": ""
},
"target": {
"value": 1,
"width": null,
"units": "",
"type": "creature"
},
"range": {
"value": 5,
},
"ability": "cha",
"actionType": "msak",
"attackBonus": "1",
"critical": {
"threshold": 19,
"damage": ""
},
"damage": {
"parts": [
["2d6 + @mod + 1 + (@[Link])",
"slashing"
],
],
},
"weaponType": "simpleM",
"proficient": true,
},
"flags": {
"midi-srd": {
"FlameBlade":
[Link]
}
},
"img": [Link],
"effects": []
}]
);
[Link]("A Hexblade appears in your inventory")
}
// Delete Flame Blade
if (args[0] === "off") {
[Link]("FlameBlade", actor)
}