My friend pisskop, nobody helped but I have figured it out. Maybe you will make some use of it. I consulted this:
Look for use_action
and made this:
[
{
"id": "chainsword_off",
"type": "TOOL",
"symbol": "/",
"color": "red",
"name": "chainsword (off)",
"name_plural": "chainswords (off)",
"description": "This is MK.xf Hell's Teeth pattern chainsword, a sword with motorized teeth used in close combat. It is off.",
"price": 8000,
"material": ["steel", "plastic"],
"techniques": "SWEEP",
"weight": 6577,
"volume": 10,
"bashing": 10,
"to_hit": 0,
"flags" : ["DURABLE_MELEE"],
"use_action": {
"type": "transform",
"target": "chainsword_on",
"active": true,
"msg": "You turn the chainsword on! Gut them! For the Emperor!",
"moves" : 500
}
},
{
"id": "chainsword_on",
"type": "TOOL",
"symbol": "/",
"color": "red",
"name": "chainsword (on)",
"name_plural": "chainswords (on)",
"description": "This chainsword is running, its atomic motor whirring noisily and its teeth ready to bite into the enemies of the Emperor. Use it to turn it off.",
"price": 8000,
"material": ["steel", "plastic"],
"techniques": "SWEEP",
"weight": 6577,
"volume": 10,
"cutting": 120,
"flags" : ["CHOP", "MESSY", "DURABLE_MELEE"],
"qualities": [["AXE", 3],["BUTCHER", 100],["CUT", 3]],
"use_action": {
"type": "transform",
"target": "chainsword_off",
"active": true,
"msg": "You turn the chainsword off.",
"moves" : 1
}
}
]
It works quite fine, but I still need to attach a strap on it to make it more faithful to the canon.