Bay 12 Games Forum

Dwarf Fortress => DF Modding => Topic started by: toast on March 15, 2008, 08:59:00 pm

Title: changing the damage an animal does
Post by: toast on March 15, 2008, 08:59:00 pm
sorry guys, im new at this:
i want to change the amount of damage my war animals can do, but i dont understand how the tag works.

(this is for the dog)
[ATTACK:MAIN:BYTYPE:MOUTH:bite:bites:1:6:GORE][ATTACKFLAG_CANLATCH]

I assume the numbers are the damage value, but what exactly are they doing? Why are there two numbers? does one determine the percent chance it has to hit, and the other the damage factor?

Title: Re: changing the damage an animal does
Post by: Dwarmin on March 15, 2008, 09:02:00 pm
As far as I know the two numbers are the miniumum and maximum damage.
Title: Re: changing the damage an animal does
Post by: Helmaroc on March 15, 2008, 09:09:00 pm
Yeah, almost all of tags with #:# are min and max.
Title: Re: changing the damage an animal does
Post by: Grek on March 15, 2008, 09:40:00 pm
quote:
[ATTACK:MAIN:BYTYPE:MOUTH:bite:bites:1:6:GORE][ATTACKFLAG_CANLATCH]  

[ATTACK: - this means that this line describes an attack.

MAIN: - This means that the monster will use this attack before it uses other attack. The attack it uses is randomly selected from all the MAIN attacks. If no MAIN attacks can be done, it trys the SECOND attacks.

BYTYPE: or BYTOKEN: - which body part to use. BYTYPE names the part, BYTOKEN is any limb with that token.

MOUTH: - the limb used for BYTYPE or BYTOKEN. BYTYPE can also use STANCE, GRASP or THOUGHT, all of which are infact organ tokens.

bite: - 1st person message. ie; "You bite the goblin."

bites: - 2nd and 3rd persons. "The bear bites you." or "The bear bites the drunk."

1: - Minimum damage.

6: - Max damage.

GORE] - attack type. Options include GORE, BLUDGEON, PIERCE, BURN and HEAT.

[ATTACKFLAG_CANLATCH] - will grasp onto you and keep using the same attack with prefect aim and make chunks inside the bodypart used to make the attack.

[ATTACKFLAG_WITH] - Will use weapons with this attack instead.

[SPECIALATTACK_INJECT_EXTRACT:50:100] - Will inject an extract into you, like a giant cave spider does. Don't know what the numbers mean.

[SPECIALATTACK_SUCK_BLOOD:50:100] - Will suck your blood. No idea what exactly this does gamewise or what the numbers mean.

Title: Re: changing the damage an animal does
Post by: Greiger on March 15, 2008, 11:00:00 pm
It should also be noted that the size of the creature matters to these numbers too.
A punch (typically a very weak attack) is much stronger when used by a giant(size 16) than when used by an antman(size 4).

And isn't there a COLD or somesuch damage type too or was that just a rumor?

Title: Re: changing the damage an animal does
Post by: Grek on March 16, 2008, 06:01:00 am
quote:
And isn't there a COLD or somesuch damage type too or was that just a rumor?

There isn't, but I think a HEAT attack with negative damage would do the same.

Title: Re: changing the damage an animal does
Post by: Kagus on March 16, 2008, 08:46:00 am
Very funny.


There is indeed a COLD damage type, don't listen to this joker.

EDIT:  Oh, yeah, there's also SLASH.  That one got dropped from the list.

[ March 16, 2008: Message edited by: Kagus ]

Title: Re: changing the damage an animal does
Post by: Sean Mirrsen on March 16, 2008, 10:15:00 am
[ATTACKFLAG_WITH] specifies whether the attack message will include the hitting part in it. For example, like the message "The goblin punches you in the head with his left hand!" versus "The wolf bites you in the lower body!".

BYTYPE can take several tags as parameters, but usually only primary ones are actually working. GRASP, STANCE, UPPERBODY, LOWERBODY, HEAD all work. DIGIT and FLIER don't. I haven't tried the rest.

Title: Re: changing the damage an animal does
Post by: toast on March 16, 2008, 01:41:00 pm
ok guys thanks a lot
Title: Re: changing the damage an animal does
Post by: Untelligent on March 18, 2008, 09:35:00 pm
quote:
Originally posted by Sean Mirrsen:
<STRONG>DIGIT and FLIER don't. I haven't tried the rest.</STRONG>

DIGIT doesn't work? Hmmm... Odd. Then what are my golems poking with when I give them this tag (which DOES work, mind you):

[ATTACK:MAIN:BYTYPE:DIGIT:poke:pokes:1:3:PIERCE]

Odd...

[ March 18, 2008: Message edited by: Untelligent ]

Title: Re: changing the damage an animal does
Post by: Sean Mirrsen on March 19, 2008, 05:02:00 am
When I tried it, I think the result was attacking with the head, for both FLIER and DIGIT. Like I said, I haven't tried the rest.