Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: DRILLS! (Help attained!)  (Read 1682 times)

gourd

  • Bay Watcher
  • One True Gourd
    • View Profile
DRILLS! (Help attained!)
« on: September 08, 2012, 10:17:56 am »

I have recently (last hour) been scouring the wiki's modding page and the raws to learn how to mod Dwarf Fortress.
I decided I would try and make a drill weapon, but I'm having trouble with reactions, as the wiki is confusing.
Here are the raws for my reaction. According to the wiki, I can't make it in the mechanic's workshop, and I would also like to have a mechanism be a reagant, and the metal bar type not matter. Any help is much appreciated.
Code: [Select]
[REACTION:ASSEMBLE_DRILL]
[NAME:Assemble a drill]
[BUILDING:CRAFTSMAN:CUSTOM_SHIFT_D]
[REAGENT:A:1:BAR:NO_SUBTYPE:METAL:IRON]
*also want a mechanism*
        [PRODUCT:100:1:WEAPON:DRILL:IRON:NONE][PRODUCT_DIMENSION:150]
[SKILL:MECHANIC]

Also, here are the weapon raws if you're interested:
Code: [Select]
[ITEM_WEAPON:ITEM_WEAPON_DRILL]
[NAME:drill:drills]
[SIZE:100]
[SKILL:SPEAR]
[TWO_HANDED:27500]
[MINIMUM_SIZE:22500]
[MATERIAL_SIZE:2]
[ATTACK:EDGE:3:20:drill:drills:NO_SUB:2000]

I don't really have any idea what I'm doing, I just duped and edited the whip.  :-\
Cheers
« Last Edit: September 08, 2012, 12:08:32 pm by gourd »
Logged

IamanElfCollaborator

  • Bay Watcher
  • Resident Shipper God and Freyjapiller
    • View Profile
Re: DRILLS! (Reactions help needed)
« Reply #1 on: September 08, 2012, 10:42:12 am »

I believe
   [PRODUCT:100:4:TRAPPARTS:NO_SUBTYPE:METAL:IRON]
would be what you want. Edit the reaction except for TRAPPARTS as desired.

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: DRILLS! (Reactions help needed)
« Reply #2 on: September 08, 2012, 11:53:40 am »

[REACTION:ASSEMBLE_DRILL]
   [NAME:Assemble a drill]
   [BUILDING:CRAFTSMAN:CUSTOM_SHIFT_D]
   [REAGENT:A:150:BAR:NO_SUBTYPE:METAL:NONE]
   [REAGENT:B:1:TRAPPARTS:NONE:INORGANIC:NONE]
        [PRODUCT:100:1:WEAPON:ITEM_WEAPON_DRILL:GET_MATERIAL_FROM_REAGENT:A:NONE][PRODUCT_DIMENSION:150]
   [SKILL:MECHANICS]

* A single bar is 150 units of material
* METAL:NONE makes it accept any metal, original required iron
You can learn about the structure of reagent tokens here
http://dwarffortresswiki.org/index.php/DF2012:Reactions#Reagents
* Mechanisms are TRAPPARTS
http://dwarffortresswiki.org/index.php/DF2012:Item_token
* Name of the product must be ITEM_WEAPON_DRILL because that's what you called it in the other file
* GET_MATERIAL_FROM_REAGENT makes the product out of the same materials used
* Removed that extra token, would have given you 150 drills per reaction (actually might have given you 150^2, since your reagent was also off by a factor :)  )
Learn more about product tokens here
http://dwarffortresswiki.org/index.php/DF2012:Reactions#Products
* Name of the skill is mechanics with an "S"
http://dwarffortresswiki.org/index.php/Skill_token

Hope this helps.

IamanElfCollaborator

  • Bay Watcher
  • Resident Shipper God and Freyjapiller
    • View Profile
Re: DRILLS! (Reactions help needed)
« Reply #3 on: September 08, 2012, 11:56:35 am »

Oh derp. I copy-pasted the wrong token. >.<

Joben

  • Bay Watcher
  • Elder Thing
    • View Profile
    • Lazy Lizard Gear
Re: DRILLS! (Reactions help needed)
« Reply #4 on: September 08, 2012, 12:03:24 pm »

I'm no expert, but I don't think PRODUCT_DIMENSION is required when you're making a weapon. I think it only applies to bars, drinks, cloth etc.
Logged
Broken Arrow - A small stats tweak to fix unrealistically overpowered arrows and bolts.

My RTD games: Roll To Raptor (On hold), Dino Arena

IamanElfCollaborator

  • Bay Watcher
  • Resident Shipper God and Freyjapiller
    • View Profile
Re: DRILLS! (Reactions help needed)
« Reply #5 on: September 08, 2012, 12:04:10 pm »

It isn't used in weapon reactions.

gourd

  • Bay Watcher
  • One True Gourd
    • View Profile
Re: DRILLS! (Reactions help needed)
« Reply #6 on: September 08, 2012, 12:07:56 pm »

Thanks for the help, guys!
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DRILLS! (Reactions help needed)
« Reply #7 on: September 08, 2012, 03:08:47 pm »

* METAL:NONE makes it accept any metal, original required iron

Not true--it makes it accept any inorganic material, rocks included. METAL is just an alias for INORGANIC.

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: DRILLS! (Help attained!)
« Reply #8 on: September 08, 2012, 03:20:05 pm »

Good point, thanks, I've made that mistake more than once.  Is there any way to make it accept only metals?

GreatWyrmGold

  • Bay Watcher
  • Sane, by the local standards.
    • View Profile
Re: DRILLS! (Help attained!)
« Reply #9 on: September 08, 2012, 03:27:11 pm »

Don't make stone bars?
Logged
Sig
Are you a GM with players who haven't posted? TheDelinquent Players Help will have Bay12 give you an action!
[GreatWyrmGold] gets a little crown. May it forever be his mark of Cain; let no one argue pointless subjects with him lest they receive the same.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DRILLS! (Help attained!)
« Reply #10 on: September 08, 2012, 03:27:35 pm »

Add a reaction class to the metal template and use that in reactions that require it.

(Note, however, that bars can only be metal anyway, so it doesn't matter in vanilla)

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: DRILLS! (Help attained!)
« Reply #11 on: September 08, 2012, 03:28:18 pm »

Don't make stone bars?

Oh, OK, that's why it hasn't actually been a problem most of the time ^^

davros

  • Bay Watcher
    • View Profile
Re: DRILLS! (Help attained!)
« Reply #12 on: September 26, 2012, 12:18:06 pm »

I would suggest using the minining skill, and setting it to weapon digger so you can dig with it.
ROW ROW, FIGHT THE POWAH!
Logged
Quote from: Malarauko
I had an above ground garden built in the grounds of my castle and two young dwarves spent time socialising there over the summer and at the end of the summer they were in love. Remember those long summers of your childhood? That first kiss in the gardens while crossbows dwarves shoot goblins above your head? The rain of dead birds as the hunters get to work? Truly Spearhills is a paradise.

GreatWyrmGold

  • Bay Watcher
  • Sane, by the local standards.
    • View Profile
Re: DRILLS! (Help attained!)
« Reply #13 on: September 26, 2012, 05:05:13 pm »

I would suggest using the minining skill, and setting it to weapon digger so you can dig with it.
ROW ROW, FIGHT THE POWAH!
Just setting the skill to mining works for that.
Logged
Sig
Are you a GM with players who haven't posted? TheDelinquent Players Help will have Bay12 give you an action!
[GreatWyrmGold] gets a little crown. May it forever be his mark of Cain; let no one argue pointless subjects with him lest they receive the same.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DRILLS! (Help attained!)
« Reply #14 on: September 26, 2012, 05:10:39 pm »

I would suggest using the minining skill, and setting it to weapon digger so you can dig with it.
ROW ROW, FIGHT THE POWAH!
Just setting the skill to mining works for that.

...No. It needs the DIGGER token in the entity to dig with, I'm pretty sure.
Pages: [1] 2