Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How do I create a mining pick with DF hack?  (Read 4200 times)

blazing glory

  • Guest
How do I create a mining pick with DF hack?
« on: April 16, 2014, 04:27:14 am »

I've had no luck at figuring out the exact way to do it.
Logged

Urist McKoga

  • Bay Watcher
    • View Profile
Re: How do I create a mining pick with DF hack?
« Reply #1 on: April 16, 2014, 05:07:04 am »

The command to create item in dfhack is createitem [item] [material] [count].

Examples (picked examples from dfhack readme)

createitem GLOVES:ITEM_GLOVES_GAUNTLETS INORGANIC:STEEL 2
Create 2 pairs of steel gauntlets.
createitem WOOD PLANT_MAT:TOWER_CAP:WOOD
Create tower-cap logs.
createitem FISH FISH_SHAD:MALE 5
Create a stack of 5 cleaned shad, ready to eat.

For this command you need to select your unit (or any other, but i don't think you want give to your enemies a steel weapons), so you need just hit [z], or you can press [l] and place the cursor on you and select yourself. The item is create on the same tile, so you just need to [g]rab
For you so rare to find pick, you need to do:
createitem WEAPON:ITEM_WEAPON_PICK INORGANIC:STEEL 1 (+1, just give to you a steel pick =P)

If you want to change the quality of that weapon you need to do that command:
changeitem q 5 here

So you need to [d]rop the item you want to change, move a tile, press [k] and place the cursor over the item.
This changes all itens in the cursor to masterwork quality (the quality range is 0-5, so no artifact with this command).




Logged

blazing glory

  • Guest
Re: How do I create a mining pick with DF hack?
« Reply #2 on: April 17, 2014, 05:22:22 am »

Thanks it worked.
Logged