Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Custom Weapon Reactions  (Read 2551 times)

WillowLuman

  • Bay Watcher
  • They/Them Life is weird
    • View Profile
Custom Weapon Reactions
« on: February 06, 2012, 07:35:43 pm »

Is there any way to make it so that a weapon can only be produced through a custom reaction, and not by smithing?
« Last Edit: February 06, 2012, 09:22:32 pm by HugoLuman »
Logged
Dwarf Souls: Prepare to Mine
Keep Me Safe - A Girl and Her Computer (Illustrated Game)
Darkest Garden - Illustrated game. - What mysteries lie in the abandoned dark?

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Custom Weapon Reactions
« Reply #1 on: February 06, 2012, 09:31:34 pm »

Yes, and it can be a foriegn weapon too. So that your civ won't make it on their own or use it for combat/trading.

Code: [Select]
[REACTION:MAKE_WEAPON_XXXX]
[NAME:make xxxx]
[BUILDING:(buidling ID here):NONE] - the "NONE" can be replaced with CUSTOM_(x) or CUSTOM_SHIFT_(x)
[REAGENT:A:1:BAR:NONE:INORGANIC:(metal name)]
[PRODUCT:100:1:WEAPON:ITEM_WEAPON_XXXX:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:(skill token)]

EDIT:
Your name caught my eye ;)
Logged

WillowLuman

  • Bay Watcher
  • They/Them Life is weird
    • View Profile
Re: Custom Weapon Reactions
« Reply #2 on: February 06, 2012, 09:32:38 pm »

But what if I want them to trade it/ use it?
Logged
Dwarf Souls: Prepare to Mine
Keep Me Safe - A Girl and Her Computer (Illustrated Game)
Darkest Garden - Illustrated game. - What mysteries lie in the abandoned dark?

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Custom Weapon Reactions
« Reply #3 on: February 06, 2012, 09:36:00 pm »

But what if I want them to trade it/ use it?

Then you must add [WEAPON:ITEM_WEAPON_XXXX] to the entity. But this has the drawback of being able to forge it.

Can't have a Yay without a Nay.

Or

Make a "TOY" that is named slightly differently then the WEAPON say "XXXX Mold" and the reaction takes this MOLD and a BAR to make a WEAPON

EDIT:
They will trade Molds in which you can use to make weapons.
Logged

WillowLuman

  • Bay Watcher
  • They/Them Life is weird
    • View Profile
Re: Custom Weapon Reactions
« Reply #4 on: February 06, 2012, 10:00:52 pm »

Looks like I'll have to wait for next version then :(

Incidentally, do you know the ID for the leatherworks shop?
« Last Edit: February 06, 2012, 10:29:38 pm by HugoLuman »
Logged
Dwarf Souls: Prepare to Mine
Keep Me Safe - A Girl and Her Computer (Illustrated Game)
Darkest Garden - Illustrated game. - What mysteries lie in the abandoned dark?

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Custom Weapon Reactions
« Reply #5 on: February 06, 2012, 10:59:20 pm »

Incidentally, do you know the ID for the leatherworks shop?
The only buildings you can specify fur custom reactions are KILN, SMELTER, TANNER, KITCHEN, QUERN, MILLSTONE, STILL, CRAFTSMAN, and custom workshops - other workshops are not permitted.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

WillowLuman

  • Bay Watcher
  • They/Them Life is weird
    • View Profile
Re: Custom Weapon Reactions
« Reply #6 on: February 06, 2012, 11:18:48 pm »

Okay then, what about specifying Leather as a reagent?
Logged
Dwarf Souls: Prepare to Mine
Keep Me Safe - A Girl and Her Computer (Illustrated Game)
Darkest Garden - Illustrated game. - What mysteries lie in the abandoned dark?

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Custom Weapon Reactions
« Reply #7 on: February 06, 2012, 11:28:51 pm »

Okay then, what about specifying Leather as a reagent?

SKIN_TANNED
Logged

WillowLuman

  • Bay Watcher
  • They/Them Life is weird
    • View Profile
Re: Custom Weapon Reactions
« Reply #8 on: February 06, 2012, 11:41:27 pm »

Ran a test. This doesn't seem to work:

Code: [Select]
[REACTION:MAKE_LEATHER_WHIP]
[NAME:make leather whip]
[BUILDING:CRAFTSMAN:NONE]
[REAGENT:leather:100:SKIN_TANNED]
[PRODUCT:100:1:WEAPON:ITEM_WEAPON_WHIP:GET_MATERIAL_FROM_REAGENT]
[SKILL:LEATHERWORK]

They can do the reaction, but it makes no whips at all
Logged
Dwarf Souls: Prepare to Mine
Keep Me Safe - A Girl and Her Computer (Illustrated Game)
Darkest Garden - Illustrated game. - What mysteries lie in the abandoned dark?

rephikul

  • Bay Watcher
  • [CURIOUSBEAST_IDEA]
    • View Profile
Re: Custom Weapon Reactions
« Reply #9 on: February 06, 2012, 11:45:06 pm »

[REACTION:MAKE_LEATHER_WHIP]
   [NAME:make leather whip]
   [BUILDING:CRAFTSMAN:NONE]
   [REAGENT:leather:100:SKIN_TANNED:NONE:NONE:NONE]
   [PRODUCT:100:1:WEAPON:ITEM_WEAPON_WHIP:GET_MATERIAL_FROM_REAGENT:leather:NONE]
   [SKILL:LEATHERWORK]
Logged
Intensifying Mod v0.23 for 0.31.25. Paper tigers are white.
Prepacked Dwarf Fortress with Intensifying mod v.0.23, Phoebus graphics set, DFhack, Dwarf Therapist, Runesmith and a specialized custom worldgen param.

WillowLuman

  • Bay Watcher
  • They/Them Life is weird
    • View Profile
Re: Custom Weapon Reactions
« Reply #10 on: February 07, 2012, 12:16:58 am »

Now it says that the reaction can't be done without a tanned hide, though I embarked with 50 leather
Logged
Dwarf Souls: Prepare to Mine
Keep Me Safe - A Girl and Her Computer (Illustrated Game)
Darkest Garden - Illustrated game. - What mysteries lie in the abandoned dark?

NecroRebel

  • Bay Watcher
    • View Profile
Re: Custom Weapon Reactions
« Reply #11 on: February 07, 2012, 01:15:07 am »

Now it says that the reaction can't be done without a tanned hide, though I embarked with 50 leather
That's because the reaction is asking for 100 leather and you only have 50. Switch the reagent line to    [REAGENT:leather:1:SKIN_TANNED:NONE:NONE:NONE] and it should work.
Logged
A Better Magma Pump Stack: For all your high-FPS surface-level magma installation needs!

WillowLuman

  • Bay Watcher
  • They/Them Life is weird
    • View Profile
Re: Custom Weapon Reactions
« Reply #12 on: February 07, 2012, 01:24:00 am »

Thank you! It works, not sure how leather whips will perform in combat though
Logged
Dwarf Souls: Prepare to Mine
Keep Me Safe - A Girl and Her Computer (Illustrated Game)
Darkest Garden - Illustrated game. - What mysteries lie in the abandoned dark?

Minnakht

  • Bay Watcher
  • Green Eyed Monster
    • View Profile
Re: Custom Weapon Reactions
« Reply #13 on: February 07, 2012, 07:26:01 am »

Basically, in DF, whips work by whipping a small metal whip tip into the enemy. The tip's small surface and supersonic speed cause it to slam right through armour and break bones.
Whips don't act like cutting weapons here, nor latching-onto-skin-and-ripping weapons, and so on.
Logged
Giant badgers are cruel saddistic balls of fur and hate. Did anyone know they could paint a wall with a single dwarven baby?.... You know what, I made the Giant badgers sound like sane DF players.
A Kea has stolen a coke!

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Custom Weapon Reactions
« Reply #14 on: February 07, 2012, 09:39:47 am »

Looks like I'll have to wait for next version then :(

I don't think the next version will have any support, either.
Pages: [1] 2