Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Help with creating weapons from the raws  (Read 945 times)

ShadowLuigi147

  • Bay Watcher
  • Urist McPicard has entered a martial trance!
    • View Profile
Help with creating weapons from the raws
« on: February 04, 2010, 09:11:41 pm »

Hai, I need help with making a type of arrow for my smelter to make, its cheating, yeah..but whatever. I need it in the form of a reaction addition, please.
I would like it to do gore/cold damage.
Logged
Ah, Dwarf Fortress. The only game where it's considered perfectly normal to discuss the most efficient method of farming and butchering friendly sentient beings for their valuable bones...

NecroRebel

  • Bay Watcher
    • View Profile
Re: Help with creating weapons from the raws
« Reply #1 on: February 04, 2010, 09:22:39 pm »

This should be in the modding subforum, not dwarf mode discussion.

Three things you need to know about this attempt:
First, to make a new type of arrow, you first need a new type of arrow in the ammo raws. You can't just make a new type in a smelter reaction and expect it to work.

Second, it is currently impossible to deal two types of damage with a single weapon. Choose gore or cold, not both.

Third, add the following to item_ammo:
[ITEM_AMMO:ITEM_AMMO_ARROWS_FROST]
[NAME:frost arrow:frost arrows]
[CLASS:ARROW]
[DAMAGE:1:COLD]

and the following to reaction_standard:
[REACTION:FROST_ARROWS]
[NAME:free frost arrows]
[SMELTER]
[PRODUCT:100:25:AMMO:ITEM_AMMO_ARROWS_FROST:METAL:COPPER]

And that should do it.
Logged
A Better Magma Pump Stack: For all your high-FPS surface-level magma installation needs!

ShadowLuigi147

  • Bay Watcher
  • Urist McPicard has entered a martial trance!
    • View Profile
Re: Help with creating weapons from the raws
« Reply #2 on: February 04, 2010, 09:25:28 pm »

Oh, okay. That makes sense. Thanks a bunch.
Logged
Ah, Dwarf Fortress. The only game where it's considered perfectly normal to discuss the most efficient method of farming and butchering friendly sentient beings for their valuable bones...

ShadowLuigi147

  • Bay Watcher
  • Urist McPicard has entered a martial trance!
    • View Profile
Re: Help with creating weapons from the raws
« Reply #3 on: February 05, 2010, 03:52:41 pm »

Oh, lovely. I can't use arrows xD
What should I change to get these to work?
« Last Edit: February 05, 2010, 04:11:23 pm by ShadowLuigi147 »
Logged
Ah, Dwarf Fortress. The only game where it's considered perfectly normal to discuss the most efficient method of farming and butchering friendly sentient beings for their valuable bones...

Heliomance

  • Bay Watcher
    • View Profile
Re: Help with creating weapons from the raws
« Reply #4 on: February 05, 2010, 04:31:28 pm »

Dwarves can't use arrows at all - they use bolts.
Logged

Darkond2100

  • Bay Watcher
  • Intrepid Groundhog
    • View Profile
Re: Help with creating weapons from the raws
« Reply #5 on: February 07, 2010, 02:13:42 am »

Sell those to the elves. Then go to war against them. Have FUN!
Logged
your hoard, your dwarves, and your fortress.
I prefer Hoard, Horde, and Hovel...