Is there a good JSON tutorial somewhere? I’m trying to teach myself by looking at the game files and I’m having some difficulties.
(For example, as an early first step I tried making the motorised crossbow, a simple edit of the repeating crossbow. My entry looks like this:
]{
"id" : "mot_crossbow",
"type" : "GUN",
"symbol" : "(",
"color" : "green",
"name" : "motorised crossbow",
"description" : "A repeating crossbow that has been modified with an electric motor and belt-feed for sustained fire. Draws from a standard UPS.",
"price" : 2000,
"material" : ["iron", "wood"],
"flags" : ["ALWAYS_TWOHAND", "USE_UPS", "MODE_BURST"],
"skill" : "archery",
"ammo" : "bolt",
"weight" : 4500,
"volume" : 15,
"bashing" : 14,
"cutting" : 0,
"to_hit" : -2,
"ranged_damage" : 10,
"range" : 8,
"dispersion" : 22,
"recoil" : 15,
"durability" : 6,
"burst" : 5,
"clip_size" : 30,
"reload" : 600,
"valid_mod_locations": [[ "accessories", 4 ],[ "grip", 1 ],[ "mechanism", 4 ],[ "rail", 1 ],[ "sights", 1 ],[ "stock", 1 ],[ "underbarrel", 1 ]]
}
But I can’t figure out how to set how much UPS it takes per shot, or how to adjust the amount of noise it makes.
Thank you for any help you can offer.