Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: If I wanted to mod in scabbards, how would I go about it?  (Read 1452 times)

Wyrdean

  • Bay Watcher
    • View Profile
If I wanted to mod in scabbards, how would I go about it?
« on: May 04, 2019, 10:32:36 pm »

It took me a while, but I finally noticed the distinct lack of scabbards in dwarf fortress.
I mean, they aren't really required, as you can strap weapons to your upper body even buck naked.
It's just that it seems odd sword fighting without a place to put a sword after you're done using it.
« Last Edit: May 04, 2019, 10:46:05 pm by Wyrdean »
Logged

FantasticDorf

  • Bay Watcher
    • View Profile
Re: If I wanted to mod in scabbards, how would I go about it?
« Reply #1 on: May 05, 2019, 11:30:18 am »

Functionally it can't be done because the raws work off strict lists, but you can most definitely add cosmetic scabbards for a warrior race or something.

I always assumed DF clothes and armor had little hoops to store things like the binding for a bath-robe or a belt, just tailored in fixtures to help keep things in place or serve utility to store objects without pockets.
Logged

Wyrdean

  • Bay Watcher
    • View Profile
Re: If I wanted to mod in scabbards, how would I go about it?
« Reply #2 on: May 08, 2019, 05:22:35 pm »

That's unfortunate, ah well. I just hope toady adds them or the ability to add them before I die.
Logged

peasant cretin

  • Bay Watcher
  • [MEANDERER][GNAWER]
    • View Profile
Re: If I wanted to mod in scabbards, how would I go about it?
« Reply #3 on: May 09, 2019, 06:16:52 pm »

So any tool item can be given a PREPARE:RECOVER allowing it to be strapped to the body.

Just a role-play item usable by your player character.

Code: [Select]
[ITEM_TOOL:ITEM_TOOL_SCABBARD_SHORT]
[NAME:scabbard:scabbards]
[VALUE:50]
[SOFT_MAT]
[TILE:091]
[SIZE:400]
[MATERIAL_SIZE:3]
[CONTAINER_CAPACITY:400]
[TWO_HANDED:37500]
[MINIMUM_SIZE:32500]
[SKILL:MISC_WEAPON]
[ATTACK:BLUNT:20000:4000:slap:slaps:flat:1250]
[ATTACK_PREPARE_AND_RECOVER:3:3]

Matched size and container capacity with a short sword @400:




You could stick anything of appropriate size into that.

Logged

Wyrdean

  • Bay Watcher
    • View Profile
Re: If I wanted to mod in scabbards, how would I go about it?
« Reply #4 on: May 15, 2019, 11:33:07 am »

Wow... Just what I needed!
And it could even be used as a Weapon/Parrying tool!
Nicesu!

Logged

FantasticDorf

  • Bay Watcher
    • View Profile
Re: If I wanted to mod in scabbards, how would I go about it?
« Reply #5 on: May 15, 2019, 11:50:44 am »

Huh, never too late to learn something new, is this functionable in fortress mode for storing weapons also?
Logged

Wyrdean

  • Bay Watcher
    • View Profile
Re: If I wanted to mod in scabbards, how would I go about it?
« Reply #6 on: May 16, 2019, 06:49:57 pm »

Woot! Just made this into a mod, it does require masterwork though!
 A link to the page: http://www.bay12forums.com/smf/index.php?topic=173938.0


Simply paste the following into item_tool_adv_mode and reaction_adventurer respectively and you'll finally have a place to put your !!!Wood Short Sword!!! after you kill those elven children!

This mod allows you to make scabbards out of: Wood, Rocks, Metal, Horn, Bone, Teeth, Gems and even (You guessed it!) Leather!
The scabbards are even useable as a weapon and parrying tool too!
They function as a rather decent mace-like weapon when made out of a heavier material and they use the misc object skill.
They have a capacity of 1300, meaning that you can put any weapon (Including mauls and great axes) inside it.


Code: [Select]
[ITEM_TOOL:ITEM_TOOL_SCABBARD]
[NAME:scabbard:scabbards]
[VALUE:50]
[SOFT_MAT]
[HARD_MAT]
[TILE:091]
[SIZE:400]
[MATERIAL_SIZE:3]
[CONTAINER_CAPACITY:1300]
[TWO_HANDED:37500]
[MINIMUM_SIZE:32500]
[SKILL:MISC_WEAPON]
[ATTACK:BLUNT:50:200:slap:slaps:flat:2000]
[ATTACK_PREPARE_AND_RECOVER:3:3]




Code: [Select]
[REACTION:MAKE_SCABBARD_ADV_LEATHER]
[NAME:Sew scabbard (Needle + 3 leather)]
[DESCRIPTION:Sew a scabbard out of 3 leather. Capacity 1300.]
[ADVENTURE_MODE_ENABLED]
[REAGENT:needle:1:TOOL:ITEM_TOOL_NEEDLE:NONE:NONE][PRESERVE_REAGENT]
[REAGENT:leather:3:SKIN_TANNED:NONE:NONE:NONE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_SCABBARD:GET_MATERIAL_FROM_REAGENT:leather:NONE]
[SKILL:LEATHERWORK]
[CATEGORY:ADV_SCABBARDS]
[CATEGORY_NAME:! Crafting scabbards !]
[CATEGORY_DESCRIPTION:Make scabbards]

[REACTION:MAKE_SCABBARD_ADV_BONE]
[NAME:Carve scabbard (Dagger + 3 bones)]
[DESCRIPTION:Carve a scabbard out of 3 bones. Capacity 1300.]
[ADVENTURE_MODE_ENABLED]
[REAGENT:dagger:1:WEAPON:ITEM_WEAPON_DAGGER_LARGE:NONE:NONE][PRESERVE_REAGENT]
[REAGENT:bone:3:NONE:NONE:NONE:NONE][USE_BODY_COMPONENT][ANY_BONE_MATERIAL]
[PRODUCT:100:1:TOOL:ITEM_TOOL_SCABBARD:GET_MATERIAL_FROM_REAGENT:bone:NONE]
[SKILL:BONECARVE]
[CATEGORY:ADV_SCABBARDS]

[REACTION:MAKE_SCABBARD_ADV_WOOD]
[NAME:Carve scabbard (Dagger + 3 sticks)]
[DESCRIPTION:Carve a scabbard out of 3 sticks. Capacity 1300.]
[ADVENTURE_MODE_ENABLED]
[REAGENT:dagger:1:WEAPON:ITEM_WEAPON_DAGGER_LARGE:NONE:NONE][PRESERVE_REAGENT]
[REAGENT:stick:3:TOOL:ITEM_TOOL_STICK:NONE:NONE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_SCABBARD:GET_MATERIAL_FROM_REAGENT:stick:NONE]
[SKILL:WOODCRAFT]
[CATEGORY:ADV_SCABBARDS]

[REACTION:MAKE_SCABBARD_ADV_METAL]
[NAME:Forge scabbard (Mallet + 3 metal chunks)]
[DESCRIPTION:Forge a scabbard out of 3 metal chunks. Capacity 1300.]
[ADVENTURE_MODE_ENABLED]
[REAGENT:forging pit:1:TOOL:ITEM_TOOL_SMELTING_PIT:NONE:NONE][PRESERVE_REAGENT]
[REAGENT:mallet:1:TOOL:ITEM_TOOL_MALLET:NONE:NONE][PRESERVE_REAGENT]
[REAGENT:chunk:3:TOOL:ITEM_TOOL_CHUNK:NONE:NONE][REACTION_CLASS:METAL]
[PRODUCT:100:1:TOOL:ITEM_TOOL_SCABBARD:GET_MATERIAL_FROM_REAGENT:chunk:NONE]
[SKILL:FORGE_WEAPON]
[CATEGORY:ADV_SCABBARDS]

[REACTION:MAKE_SCABBARD_ADV_ROCK]
[NAME:Knap scabbard (5 rocks)]
[DESCRIPTION:Knap a scabbard out of 5 rocks. Capacity 1300.]
[ADVENTURE_MODE_ENABLED]
[REAGENT:rock:5:ROCK:NONE:NONE:NONE][NO_EDGE_ALLOWED]
[PRODUCT:100:1:TOOL:ITEM_TOOL_SCABBARD:GET_MATERIAL_FROM_REAGENT:rock:NONE]
[SKILL:STONECRAFT]
[CATEGORY:ADV_SCABBARDS]

[REACTION:MAKE_SCABBARD_ADV_LARGEGEM]
[NAME:Knap scabbard (3 large gems)]
[DESCRIPTION:Knap a scabbard out of 3 large gems. Capacity 1300.]
[ADVENTURE_MODE_ENABLED]
[REAGENT:gem:3:GEM:NONE:NONE:NONE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_SCABBARD:GET_MATERIAL_FROM_REAGENT:gem:NONE]
[SKILL:CUTGEM]
[CATEGORY:ADV_SCABBARDS]

[REACTION:MAKE_SCABBARD_ADV_SMALLGEM]
[NAME:Knap scabbard (5 small gems)]
[DESCRIPTION:Knap a scabbard out of 5 small gems. Capacity 1300.]
[ADVENTURE_MODE_ENABLED]
[REAGENT:gem:5:SMALLGEM:NONE:NONE:NONE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_SCABBARD:GET_MATERIAL_FROM_REAGENT:gem:NONE]
[SKILL:CUTGEM]
[CATEGORY:ADV_SCABBARDS]

[REACTION:MAKE_SCABBARD_ADV_HORN]
[NAME:Carve scabbard (Dagger + 3 horns)]
[DESCRIPTION:Carve a scabbard out of 3 horns. Capacity 1300.]
[ADVENTURE_MODE_ENABLED]
[REAGENT:dagger:1:WEAPON:ITEM_WEAPON_DAGGER_LARGE:NONE:NONE][PRESERVE_REAGENT]
[REAGENT:horn:1:NONE:NONE:NONE:NONE][ANY_HORN_MATERIAL]
[PRODUCT:100:1:TOOL:ITEM_TOOL_SCABBARD:GET_MATERIAL_FROM_REAGENT:horn:NONE]
[SKILL:BONECARVE]
[CATEGORY:ADV_SCABBARDS]

[REACTION:MAKE_SCABBARD_ADV_TEETH]
[NAME:Carve scabbard (Dagger + 5 teeth)]
[DESCRIPTION:Carve a scabbard out of 5 teeth. Capacity 1300.]
[ADVENTURE_MODE_ENABLED]
[REAGENT:dagger:1:WEAPON:ITEM_WEAPON_DAGGER_LARGE:NONE:NONE][PRESERVE_REAGENT]
[REAGENT:tooth:5:NONE:NONE:NONE:NONE][ANY_TOOTH_MATERIAL]
[PRODUCT:100:1:TOOL:ITEM_TOOL_SCABBARD:GET_MATERIAL_FROM_REAGENT:tooth:NONE]
[SKILL:BONECARVE]
[CATEGORY:ADV_SCABBARDS]
Logged

peasant cretin

  • Bay Watcher
  • [MEANDERER][GNAWER]
    • View Profile
Re: If I wanted to mod in scabbards, how would I go about it?
« Reply #7 on: May 21, 2019, 06:01:24 am »

Huh, never too late to learn something new, is this functionable in fortress mode for storing weapons also?

No. AI units in either mode won't use scabbards appropriately.

And it could even be used as a Weapon/Parrying tool!
Nicesu!

Anything ITEM_TOOL which has PREPARE:RECOVER will suffer from accelerated wear (as opposed to anything ITEM_WEAPON) when swung. Not too much of a problem if the weapon is already out of the scabbard. *But if the scabbard is holding a weapon when it breaks, the weapon vanishes too.
Logged