Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Unable to make bone weapons?  (Read 639 times)

katana

  • Bay Watcher
  • EVERY TIME I POST PEOPLE RUN AWAY
    • View Profile
Unable to make bone weapons?
« on: May 26, 2011, 02:21:16 pm »

Code: [Select]
[ITEM_WEAPON:ITEM_WEAPON_SWORD_SHORT]
[BARRED]
[NAME:short sword:short swords]
[SIZE:300]
[SKILL:SWORD]
[TWO_HANDED:37500]
[MINIMUM_SIZE:32500]
[CAN_STONE]
[MATERIAL_SIZE:3]
[ATTACK:EDGE:20000:4000:slash:slashes:NO_SUB:2250]
[ATTACK:EDGE:50:2000:stab:stabs:NO_SUB:1000]
[ATTACK:BLUNT:20000:4000:slap:slaps:flat:1250]
[ATTACK:BLUNT:100:1000:strike:strikes:pommel:1000]

It has [BARRED], but I can't make bone weapons in the craftsdwarf's workshop. Am I missing something?
Logged
AND IF THIS FAILS MY IDENTICAL TWIN BROTHER WHO WILL APPEAR IN THE MIGRANT WAVE THAT ARRIVES AFTER MY DEMISE WILL REPLACE ME.
(Tldr: THERE IS NO SUCH THING AS FRIENDLY FIRE SALT)

Talanic

  • Bay Watcher
  • Struggling author / pizza delivery guy.
    • View Profile
Re: Unable to make bone weapons?
« Reply #1 on: May 26, 2011, 02:37:06 pm »

I'm not sure - I'm not that great of a modder myself (yet, at least) but it appears to me that [BARRED] is only for clothing. 

I think you may be better off creating a custom reaction that produces a shortsword made of bone, then adding it to the entity.  I may be entirely wrong here, of course...
Logged
I'm an aspiring Science Fiction and Fantasy writer.  I'm telling the tale of a hapless cyborg everyman lost in a savage fantasy world.

My first review from a real magazine!

Knight Otu

  • Bay Watcher
  • ☺4[
    • View Profile
Re: Unable to make bone weapons?
« Reply #2 on: May 26, 2011, 02:39:00 pm »

BARRED is an armor token, not a weapon token, so simply adding that won't work (you should have an error log from that). You need to add a reaction to make a bone weapon (which won't help if you want it in an ongoing world), and add the reaction to your entity. The reaction should look something like this:

[REACTION:MAKE_BONE_SWORD]
   [NAME:make bone sword]
   [BUILDING:CRAFTSMAN:CUSTOM_SHIFT_B]
   [REAGENT:A:1:NONE:NONE:NONE:NONE][USE_BODY_COMPONENT][ANY_BONE_MATERIAL]
   [PRODUCT:100:1:WEAPON:ITEM_WEAPON_SWORD_SHORT:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [SKILL:BONECARVE]
Logged
Direforged Original
Random Raw Scripts - Randomly generated Beasts , Vermin, Hags, Vampires, and Civilizations
Castle Otu

katana

  • Bay Watcher
  • EVERY TIME I POST PEOPLE RUN AWAY
    • View Profile
Re: Unable to make bone weapons?
« Reply #3 on: May 26, 2011, 02:46:02 pm »

How do I permit a reaction again? I forgot D:
Logged
AND IF THIS FAILS MY IDENTICAL TWIN BROTHER WHO WILL APPEAR IN THE MIGRANT WAVE THAT ARRIVES AFTER MY DEMISE WILL REPLACE ME.
(Tldr: THERE IS NO SUCH THING AS FRIENDLY FIRE SALT)

Knight Otu

  • Bay Watcher
  • ☺4[
    • View Profile
Re: Unable to make bone weapons?
« Reply #4 on: May 26, 2011, 02:50:47 pm »

By adding [PERMITTED_REACTION:MAKE_BONE_SWORD] (or however you name it) to the entity in question.
Logged
Direforged Original
Random Raw Scripts - Randomly generated Beasts , Vermin, Hags, Vampires, and Civilizations
Castle Otu

Trapezohedron

  • Bay Watcher
  • No longer exists here.
    • View Profile
Re: Unable to make bone weapons?
« Reply #5 on: May 27, 2011, 01:14:23 am »

BARRED is an armor token, not a weapon token, so simply adding that won't work (you should have an error log from that). You need to add a reaction to make a bone weapon (which won't help if you want it in an ongoing world), and add the reaction to your entity. The reaction should look something like this:

[REACTION:MAKE_BONE_SWORD]
   [NAME:make bone sword]
   [BUILDING:CRAFTSMAN:CUSTOM_SHIFT_B]
   [REAGENT:A:1:NONE:NONE:NONE:NONE][USE_BODY_COMPONENT][ANY_BONE_MATERIAL]
   [PRODUCT:100:1:WEAPON:ITEM_WEAPON_SWORD_SHORT:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [SKILL:BONECARVE]

Alternatively, you can use [REACTION_CLASS] to make bone weapons/armor

Just open material_definition_template.txt, find the bone's material definition and add

"[REACTION_CLASS:XXXX]" where XXXX is what you want to name the reaction class.

For simplicity, I'm gonna use BONE for XXXX

[REACTION:MAKE_BONE_SWORD]
   [NAME:make bone sword]
   [BUILDING:CRAFTSMAN:CUSTOM_SHIFT_B]
   [REAGENT:A:1:NONE:NONE:NONE:NONE][REACTION_CLASS:BONE]
   [PRODUCT:100:1:WEAPON:ITEM_WEAPON_SWORD_SHORT:GET_MATERIAL_FROM_REAGENT:A:NONE]
   [SKILL:BONECARVE]

The advantage with that is that you can determine what stuff is used to construct the item, very useful if you're going to add a tougher bone template and you want to restrict bone objects to the tougher bone.
Logged
Thank you for all the fish. It was a good run.