Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Enemy Pathfinding, Marksdwarves, Traps, and Me  (Read 727 times)

Dastotigris

  • Escaped Lunatic
    • View Profile
Enemy Pathfinding, Marksdwarves, Traps, and Me
« on: November 24, 2009, 10:48:58 am »

Say I have a staggered trap formation all around my perimeter, where o is open and X is a trapzone
oXoXoXo
XoXoXoX

The setup allows passage between the diagonals connecting the o's.  Will enemies (save thieves who most (if not all) of the time ignore traps anyway) always avoid the traps or stumble through them and sometimes trip them?

My marksdwarves (along with one caught outside and hastily conscripted wrestler and one particularly eager sworddwarf) kept the first ambush from getting that close (the traps are less than ten squares away from the guardtowers), so I have not had opportunity to test this.
Logged

slink

  • Bay Watcher
  • Crazy Cat Dwarf
    • View Profile
    • Slink's Burrow Online
Re: Enemy Pathfinding, Marksdwarves, Traps, and Me
« Reply #1 on: November 24, 2009, 10:58:19 am »

In my experience, enemies always avoid stepping on the traps if they can.
Logged
There is only one cat, and all cats are that cat.
Almost losing is sometimes fun.

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: Enemy Pathfinding, Marksdwarves, Traps, and Me
« Reply #2 on: November 24, 2009, 11:11:30 am »

I have never seen invaders take traps into account when pathfinding.  They don't seem to avoid stepping on traps at all, even when their buddies were just shredded in front of them.
Logged
Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction.