Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Fleeing/Fighting based on creature size and numbers.  (Read 825 times)

Sumyunguy

  • Bay Watcher
    • View Profile
Fleeing/Fighting based on creature size and numbers.
« on: January 02, 2015, 02:18:25 pm »

As it stands now, dwarves will either:

a)Flee from a fight against a lesser/weaker foe, even if fully equipped.

or more recently prevalent.

b)Charge dangerous creatures with nothing else but fists.

I suggest a way for creatures to "size up", per se, a creature. By a creature checking the size and number of surrounding aggressors, dwarves and others can make decisions whether or not to attack, flee, or simply avoid.

This check for size and numbers could use the observer skill, with a percentage of a successful choice based on how high the skill is for a creature. It could also search for flags such as if the aggressor is armored, is attacking, is fleeing, etc. Equal battles (dwarf vs simiarly sized creature) would check discipline for a chance to flee.


Some examples:
Spoiler (click to show/hide)

Animals would check for these flags less often than civilized humanoids, mostly checking for size and numbers. With dwarves at a size of 60,000 as an adult, I'm guessing a range of around 30,000 that the dwarf feels equal in stature to a creature. Any more and the creature is too big to fight for someone undisciplined, and any less being okay for possible engagement.


I am unaware how much processing power this will take, for each creature to check for a good amount of conditions. This is merely a suggestion, and can be stripped down to the bare bones in order to have similar function but fast implementation. Apologies if this has already been suggested, as my forum search turned up nothing like this.

Review:

1. Dwarves and other creatures flee creatures larger than themselves, unless the smaller creature's discipline skill is high enough to fight. This is mostly affects military attacking a large target. Civilians will give large, non-aggroed creatures a wide berth, and will run if attacked.

2. Dwarves and other creatures will not flee from creatures smaller than themselves, unless there is a significant amount of attackers. Civilians leave small, non-aggroed creatures alone.

3. Dwarves and other smart, civilized beings (human, elf, etc.) run from similarly sized, armored opponents if they themselves are unarmed. They also run from battles in which they are outnumbered either both are equally armed/unarmed. Military discipline negates this, allowing high disciplined dwarves to charge many armed assailants with little more than their fists.

4. Animals only check for size and numbers, and pay no attention to armor or weapons. Most creatures will run if they are losing a battle, and a setting for military retreat would keep players in control of not having high discipline dwarves fighting to the death.

5. The observer skill could come into play when creatures check size, armorment, etc., and could have an effect on whether they make the right choice.

TL;DR: dorfs run away from big things, punch small things, run from lots of small things
« Last Edit: January 04, 2015, 05:10:32 pm by Sumyunguy »
Logged

catten

  • Bay Watcher
    • View Profile
Re: Fleeing/Fighting based on creature size and numbers.
« Reply #1 on: January 02, 2015, 03:25:05 pm »

This would be nice to have, but seems really complicated. I'm not sure how skill should factor in. Urist McLegendaryAxedwarf should be fairly confident in engaging scarier foes, given that he's highly likely to win. Similarly, Urist McShieldToting and Urist McArmorCovered should be more brave than Urist McArmedAndDangerous.

A useful subset of the feature would be to have a way to tell civilians whether to flee all creatures, stay clear of (but not flee from or cancel tasks because of) non-aggressive things, or stand their ground (defend self from aggressive creatures rather than running away). The latter two would depend on discipline, of course. That wouldn't cover the case where an undead were-elephant shows up in an otherwise peaceful embark, but would at least let you set the dwarves' general attitude to match the wildlife they expect to encounter.
Logged

Sumyunguy

  • Bay Watcher
    • View Profile
Re: Fleeing/Fighting based on creature size and numbers.
« Reply #2 on: January 02, 2015, 05:04:32 pm »

-snip-
Agreed, it is complicated, but so is most of dwarf fortress. As for skill, the observer skill would help dwarves make the right decision on whether to run or fight. Dwarves equipped with armor/weapons would have a higher tendency to not flee. The more protection a dwarf has, the less he has to rely on discipline skill to remain calm/fighting.

If previous features are not applicable, then yes, a standing order for civilians regarding hostile/passive animals would be great also. Though a knowledge of the number of creatures present would be helpful, to help prevent civilian dwarves getting swarmed by beasts.
Logged