Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How do I change the item drops on a corpse?  (Read 457 times)

Lost Requiem

  • Bay Watcher
    • View Profile
    • Fur Affinity
How do I change the item drops on a corpse?
« on: December 06, 2009, 07:16:04 pm »

I've been scouring the wiki for the past hour looking for a non-cryptic description on how to make something like a horse drop an item like a gold bar (Fucking nobles), but no such luck. Does anyone here know which .txt files to modify and how?
Logged
Lost's sanctuary for Lolis.
Quest Complete! 41/31

Grimlocke

  • Bay Watcher
  • *kobold noises*
    • View Profile
Re: How do I change the item drops on a corpse?
« Reply #1 on: December 06, 2009, 07:30:53 pm »

Look in raw/objects, and find the text file of the creature you want to edit. Use ctrl+f for this.

Add the line [ITEMCORPSE:<item type>:<item subtype>:<material>:<material subtype>]

Example: [ITEMCORPSE:STATUE:NO_SUBTYPE:METAL:BRONZE]

The bronze Colossus uses this.

Look in the DF modding wiki for item types and material type.

Adding [ITEMCORPSE_QUALITY:<number from 1 to 5>] will set the quality of the item. For default quality, just leave it out.

Note that this causes the creature to NOT drop an actual corpse as well as the item.

Also, the easier thing to go with here would be using a smelter reaction. It works about the same, for the specifics, also look in the modding section of the wiki. its not hard to find.
Logged
I make Grimlocke's History & Realism Mods. Its got poleaxes, sturdy joints and bloomeries. Now compatible with DF Revised!

Footkerchief

  • Bay Watcher
  • The Juffo-Wup is strong in this place.
    • View Profile
Re: How do I change the item drops on a corpse?
« Reply #2 on: December 06, 2009, 08:17:02 pm »

Here's a couple links that will help:
http://dwarffortresswiki.net/index.php/Category:Modding
http://dwarffortresswiki.net/index.php/Item_tokens <- item types
http://dwarffortresswiki.net/index.php/Material_tokens <- materials

So to make horses drop a gold bar, find CREATURE:HORSE in the raw files (Windows Search can search inside text files, so it's pretty easy) and add the following to it:

[ITEMCORPSE:BAR:NO_SUBTYPE:METAL:GOLD]

(untested as usual)
Logged