Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Standard weapons and custom reactions  (Read 794 times)

Drawde

  • Bay Watcher
    • View Profile
Standard weapons and custom reactions
« on: February 13, 2012, 11:45:12 pm »

I've tried making a mace out of bone using a custom reaction.  Using the standard mace in the raws.  Except the mace had no material description, just mace.

Can a normal weapon get a material modifier when made in a custom reaction, and how if it can?  Or does it just not show up?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Standard weapons and custom reactions
« Reply #1 on: February 14, 2012, 02:33:42 am »

Post the reaction.

Drawde

  • Bay Watcher
    • View Profile
Re: Standard weapons and custom reactions
« Reply #2 on: February 14, 2012, 08:22:26 am »

[REACTION:BONE_MACE]
   [NAME:Make Bone Mace]
   [BUILDING:CRAFTSMAN:CUSTOM_SHIFT_A]
   [REAGENT:scale:1:CORPSEPIECE:NONE:NONE:NONE][USE_BODY_COMPONENT][UNROTTEN][REACTION_CLASS:BONE]
   [PRODUCT:100:1:WEAPON:ITEM_WEAPON_MACE:GET_MATERIAL_FROM_REAGENT:bone:NONE]
   [SKILL:BONECARVE]

I modified it directly from the scale mail armor reaction that I got help from here.  The armor works correctly.  The mace gets made, but without any material listed.
Logged

Reelya

  • Bay Watcher
    • View Profile
Re: Standard weapons and custom reactions
« Reply #3 on: February 14, 2012, 09:12:56 am »

I'm a bit rusty but where you've got "GET_MATERIAL_FROM_REAGENT:bone:NONE" shouldn't bone match the label given in the REAGENT, which you've called "scale" instead ?

Try matching the lower-case labels "scale" in the reagent and "bone" in the product. It makes no difference what you actually call those, they're only labels used to specify which particular reagent you're extracting the material data from, they need to match.
« Last Edit: February 14, 2012, 09:15:14 am by Reelya »
Logged

Drawde

  • Bay Watcher
    • View Profile
Re: Standard weapons and custom reactions
« Reply #4 on: February 14, 2012, 05:10:30 pm »

Bah.  I thought I got all those.  That fixed it.

That's the problem with modifying an existing template.  You miss one little thing and it messes the whole thing up :P

Thanks for the help.
Logged

Reelya

  • Bay Watcher
    • View Profile
Re: Standard weapons and custom reactions
« Reply #5 on: February 14, 2012, 05:17:20 pm »

just call them A, B etc then you don't need to change them