Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Question about ITEMCORPSE  (Read 928 times)

Mythologique

  • Bay Watcher
    • View Profile
Question about ITEMCORPSE
« on: March 21, 2012, 10:33:07 pm »

This is going to sound silly. I have no clue how to mod anything in Dwarf Fortress. However, I am in a position where I would like to make turkeys drop yarn cloth when butchered. Or, if they can't drop cloth, normal yarn would be very acceptable. I am just not sure how to add this in. Will I need to generate a new world after adding? Thanks for the help.
Logged

Girlinhat

  • Bay Watcher
  • [PREFSTRING:large ears]
    • View Profile
Re: Question about ITEMCORPSE
« Reply #1 on: March 21, 2012, 10:40:17 pm »

This can be done in an existing world.  I see you're trying to avert a failed mood.  You may look into reactions instead, modify the soap reaction to produce yarn instead.  You can modify existing reactions in a world, you just can't add new ones.

Either way, for butchering, you'll likely have more luck with the EXTRA_BUTCHER_OBJECT flag.  Check out ostriches for an example - they produce a gemstone made of random stone when butchered.  If you attach a similar flag to a turkey's body, and have it slated for cloth instead, you'll get all the items from butchering PLUS cloth.  ITEM_CORPSE only works on death - you'd have to pit your turkey to fall to its death, or have it otherwise killed.  A butchered turkey won't produce an ITEM_CORPSE item because those only appear when killed.

Mythologique

  • Bay Watcher
    • View Profile
Re: Question about ITEMCORPSE
« Reply #2 on: March 21, 2012, 11:00:49 pm »

Well, that helps me know what tag I need. I looked at the ostrich but, I don't know how to change it to suit my needs. Like I said, I have NEVER modded dwarf fortress and all of these tags are just confusing. Here is what I did to my turkeys but, they still aren't giving yarn cloth.

Code: [Select]
[BODY_APPEARANCE_MODIFIER:BROADNESS:90:95:98:100:102:105:110]
[MAXAGE:7:10]
[EXTRA_BUTCHER_OBJECT:BY_CATEGORY:HEART]
[EBO_ITEM:CLOTH:YARN]
[ATTACK:BITE:BODYPART:BY_CATEGORY:BEAK]
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Question about ITEMCORPSE
« Reply #3 on: March 21, 2012, 11:09:32 pm »

That's because that's not how you create yarn cloth.
If you want to create yarn cloth, you have to specify a valid item token (CLOTH:NONE) and a valid yarn material (e.g. CREATURE_MAT:SHEEP:HAIR).
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.

Mythologique

  • Bay Watcher
    • View Profile
Re: Question about ITEMCORPSE
« Reply #4 on: March 21, 2012, 11:16:04 pm »

Code: [Select]
[MAXAGE:7:10]
[EXTRA_BUTCHER_OBJECT:BY_CATEGORY:HEART]
[EBO_ITEM:CLOTH:NONE:CREATURE_MAT:SHEEP:HAIR]
[ATTACK:BITE:BODYPART:BY_CATEGORY:BEAK]

I already know it's wrong since it doesn't work. I just don't know how it is wrong.
Logged