Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Alteration to Building Destoyer AI  (Read 649 times)

Hinaichigo

  • Bay Watcher
    • View Profile
Alteration to Building Destoyer AI
« on: May 07, 2016, 11:53:27 am »

I feel like the current building destroyer AI could use some work in terms of making them less systematic about destroying buildings.  For example while the rest of the siege goes forward the building destroying elements among them will be distracted and destroy every table and chair in the dining room before moving on.  Perhaps they could put building destruction on a slightly lower priority than attacking, or something.  And maybe not be so systematic about it.  For example: destroy buildings that they come across or ones that block pathing to more lively targets.
Logged

SixOfSpades

  • Bay Watcher
  • likes flesh balls for their calming roundness
    • View Profile
Re: Alteration to Building Destoyer AI
« Reply #1 on: May 07, 2016, 01:55:29 pm »

A more workable approach would be a general improvement to seigers' AI (which has probably been suggested only hundreds of times before) and replace the squad (or 2) of trolls with a couple of building destroyers embedded into each of the goblin squads, and under the direct supervision of that squad's leader. That way, the trolls wouldn't get sidetracked into breaking useless furniture, they would stick close to the squad leader and focus on battering down the doors that are actually in the squad's way.
Logged
Dwarf Fortress -- kind of like Minecraft, but for people who hate themselves.

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: Alteration to Building Destoyer AI
« Reply #2 on: May 08, 2016, 12:40:39 pm »

That would be a great improvement, but would also require folding building destruction into the pathing algorithm (for example, "Destroy door at path cost 125"), which happens to be the trick used in the Digging Invaders mod (walls have a path cost of 1000).

A building destroyer left to its own devices could be given a capability (the current 1 or 2) and a preference for destroying buildings over other goals.  This preference can either become a second argument in the building destroyer tag, or be governed by personality.
Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map