Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Making weapons usable for dwarfs?  (Read 680 times)

Zambaku

  • Bay Watcher
    • View Profile
Making weapons usable for dwarfs?
« on: December 28, 2009, 04:21:06 pm »

I was thinking about making some weapons usable for my dwarfs, like the bow.

I know how to create weapons, just not how to make them craftable and usable by my dwarfs. How do I make new things available for the bearded oafs to craft and use?=)
Logged

Sethner Von Hertts

  • Bay Watcher
  • Personal Creed: Fiat Justitia Ruat Caelum
    • View Profile
Re: Making weapons usable for dwarfs?
« Reply #1 on: December 28, 2009, 05:31:11 pm »

They can automatically use weapons that are small enough. To add new weapons, you must make a new entry into the weapon's raw, then copy the file name into entity default for the species you want to make it.
Logged
If the all those in the heavens refuse me salvation, then all those in the heavens will die by my hands.

Zambaku

  • Bay Watcher
    • View Profile
Re: Making weapons usable for dwarfs?
« Reply #2 on: December 28, 2009, 06:15:46 pm »

Ah, that was easy =)

One more question: About making ranged weapons. Would this work?
Code: [Select]
[ITEM_WEAPON:ITEM_WEAPON_THROWING_AXE_GLOVE]
[NAME:throwing axe glove:throwing axe gloves]
[DAMAGE:10:BLUDGEON]
[WEIGHT:10]
[SKILL:HAMMER]
[RANGED:Throwing:Axe]
[TWO_HANDED:4]
[MINIMUM_SIZE:4]
[MATERIAL_SIZE:3]


[ITEM_AMMO:ITEM_AMMO_THROWING AXE]
[NAME:throwing axe:throwing axes]
[CLASS:AXE]
[DAMAGE:50:PIERCE]
Logged

NewoTigra

  • Bay Watcher
    • View Profile
Re: Making weapons usable for dwarfs?
« Reply #3 on: December 28, 2009, 07:28:37 pm »

One more question: About making ranged weapons. Would this work?
Code: [Select]
[ITEM_WEAPON:ITEM_WEAPON_THROWING_AXE_GLOVE]
[NAME:throwing axe glove:throwing axe gloves]
[DAMAGE:10:BLUDGEON]
[WEIGHT:10]
[SKILL:HAMMER]
[RANGED:Throwing:Axe]
[TWO_HANDED:4]
[MINIMUM_SIZE:4]
[MATERIAL_SIZE:3]

Almost, change the ranged: tag to
[RANGED:CROSSBOW:THROWING_AXE]
also, you need to use _ instead of a space for the ammo entry.

Remember to put the relevant entity info in for the weapons or they won't be able to make them themselves.
Also, Yes, only the crossbow skill currently works for ranged weapons, although this will change next update, and you can have weapons that shoot pineapples using the fishing skill if you so desire.
Logged

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Making weapons usable for dwarfs?
« Reply #4 on: December 28, 2009, 08:29:18 pm »

Also, Yes, only the crossbow skill currently works for ranged weapons, although this will change next update, and you can have weapons that shoot pineapples using the fishing skill if you so desire.
Only as far as ordering your dwarves in Fortress mode to use them, that is.
If they're set to a weapon skill at all, siegers and NPCs in Adventure mode will get them.
No matter what they're set to, they'll work for your character in Adventure mode.
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

NewoTigra

  • Bay Watcher
    • View Profile
Re: Making weapons usable for dwarfs?
« Reply #5 on: December 28, 2009, 10:48:51 pm »

I was assuming that he was talking about Fortress Mode, as his initial example was bows, which would be usable already in adventure mode.

But I concede, good point.

...Now I must make an adventurer who throws pineapples at people using the fishing skill.
Logged

Zambaku

  • Bay Watcher
    • View Profile
Re: Making weapons usable for dwarfs?
« Reply #6 on: December 29, 2009, 04:47:54 am »

Okay, I made the appropriate changes =)
So now they will have to construct gloves and throwing axes =3
Only question is: Can I make them use specific materials? I don't want them to construct wooden gloves XD
Logged

3

  • Bay Watcher
    • View Profile
Re: Making weapons usable for dwarfs?
« Reply #7 on: December 29, 2009, 04:51:21 am »

By default, you'll only be able to make them out of metal. Weapons with the CAN_STONE tag can be made out of sharp stones (the only type of which existing in vanilla is obsidian).

Making weapons out of wood requires cultural changes and I'm not sure if it'll be possible to do even then.
Logged

Zambaku

  • Bay Watcher
    • View Profile
Re: Making weapons usable for dwarfs?
« Reply #8 on: December 29, 2009, 05:06:45 am »

No, I don't want to make the gloves of wood....Ofcourse the gloves would be made from cloth or leather...Can I assign the glove to be made from that?

And sure you can make weapons out of wood, the crossbow is made from wood=)
« Last Edit: December 29, 2009, 05:12:28 am by Zambaku »
Logged

3

  • Bay Watcher
    • View Profile
Re: Making weapons usable for dwarfs?
« Reply #9 on: December 29, 2009, 05:23:57 am »

Yeah, I'm fairly sure there's something implicit about ranged weapons which means they're made out of wood and such, as opposed to a specific tag, which was what I was talking about.

Also, no. Not unless you want to create a smelter reaction that magics the materials into a "glove".
Logged

Zambaku

  • Bay Watcher
    • View Profile
Re: Making weapons usable for dwarfs?
« Reply #10 on: December 29, 2009, 05:34:22 am »

Humm. humm...I don't really understand why the glove has to be metal since it's used to hold the axes =/

And, if I where to make a weapon like a whip for example, it too would be metal?>_>
Logged

3

  • Bay Watcher
    • View Profile
Re: Making weapons usable for dwarfs?
« Reply #11 on: December 29, 2009, 05:36:03 am »

Yep. All whips are metal, unless they're artifacts or something.

The glove has to be metal(/wood/bone) because what you're actually doing is making an axe-firing crossbow called "glove", not a glove.
Logged

Zambaku

  • Bay Watcher
    • View Profile
Re: Making weapons usable for dwarfs?
« Reply #12 on: December 29, 2009, 05:41:12 am »

Aha! So it's basically a crossbow with a different name! That makes things easier in my mind. Thanks for clearing that up =)
Logged