Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: weapon and ammo tokens  (Read 622 times)

12th_nightmare

  • Bay Watcher
    • View Profile
weapon and ammo tokens
« on: July 17, 2010, 03:15:49 pm »

I'm working on a controllable civilization and I'm almost done with creature and entity entries, so I wanted to creature some original weapons and ammo for my race but the otherwise excellent wiki doesn't have pages for the weapon/ammo tokens. Admittedly, there are some notations in the raw files but they're not enough for me to understand what I'm messing with.

Does anybody here know where I can find the weapon/ammo tokens with notations?

thanks.
Logged

Shaostoul

  • Bay Watcher
  • Expanding your universe.
    • View Profile
    • Shaostoul Patreon
Re: weapon and ammo tokens
« Reply #1 on: July 17, 2010, 03:17:45 pm »

So you're trying to add a race specific weapon and ammo?
Logged
I mod games and educate others how to do so as well, if you'd like to learn join my Discord and you can join a bunch of like minded individuals. (Presently modding Space Engineers and No Man's Sky.)

Looking into modding DF? This forum guide & wiki guide may still be a good start!

12th_nightmare

  • Bay Watcher
    • View Profile
Re: weapon and ammo tokens
« Reply #2 on: July 17, 2010, 03:21:55 pm »

yep, that's what I'm attempting to do.
Logged

Jordrake

  • Bay Watcher
  • Swabbie-Poet of the Good Ship Urist
    • View Profile
Re: weapon and ammo tokens
« Reply #3 on: July 17, 2010, 03:26:57 pm »

Well, here's how it works to the best of my knowledge:
Code: [Select]
[ITEM_WEAPON:ITEM_WEAPON_SWORD_SHORT]
[NAME:short sword:short swords]
This stuff is self explanatory.

[SIZE:300]
You've gotten this far, so I assume you're familiar with dwarven size units. Just the same as with creatures, just this is for killing stuff.

[SKILL:SWORD]
This determines what skill the weapon uses/trains. There's SWORD, AXE, HAMMER, WHIP, SPEAR, MACE, PIKE and MINING. MINING allows it to be used like a pick.

[TWO_HANDED:37500]
This is the minimum size a creature has to be to wield it one-handed. Any less than this number and it becomes two-handed.

[MINIMUM_SIZE:32500]
This is the smallest a creature can be and still actually wield it.

[CAN_STONE]
This means it can be made of sharpened stone.

[MATERIAL_SIZE:3]
How much material it takes to make it. To my knowledge, 3= one bar of metal.

[ATTACK:EDGE:20000:4000:slash:slashes:NO_SUB:1250]
[ATTACK:EDGE:50:2000:stab:stabs:NO_SUB:1000]
[ATTACK:BLUNT:20000:4000:slap:slaps:flat:1250]
[ATTACK:BLUNT:1000:1000:strike:strikes:pommel:1000]
This is covered in the raws, but I'll explain anyway. EDGE and BLUNT are simple. EDGE cuts, BLUNT whacks. The contact area defines how much of the weapon makes contact with the target. Penetration size, I believe, defines how big a hole it makes. Verbs are self-explanatory. The noun is for if you want the combat message to have a "with x", wherein x is the noun (ie. Strikes with the blade). Velocity multiplier is how much force that attack gets.
In your entity, just take the weapon's identifier and bung it in there where the default was. Hope that helps.
Logged

12th_nightmare

  • Bay Watcher
    • View Profile
Re: weapon and ammo tokens
« Reply #4 on: July 17, 2010, 03:33:27 pm »

Beautiful, thanks.
Now that I think about it, I probably don't need the ammo tokens. my idea would probably cause to much Fun.

If I set the weapon's skill to AXE would that allow it to be used for woodcutting?
Logged

Jordrake

  • Bay Watcher
  • Swabbie-Poet of the Good Ship Urist
    • View Profile
Re: weapon and ammo tokens
« Reply #5 on: July 17, 2010, 03:39:41 pm »

Yes, I believe so.
Logged