Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3]

Author Topic: baby's impaled in training area  (Read 4332 times)

thistleknot

  • Bay Watcher
  • Escaped Normalized Spreadsheet Berserker
    • View Profile
Re: baby's impaled in training area
« Reply #30 on: May 16, 2012, 08:50:43 pm »

Traffic restrictions don't work that way. They should really be called "preferences" or "recommendations." They do not restrict where a dwarf will go. If a dwarf wants to go someplace and the only path is across two hundred restricted tiles, they will happily walk across those two hundred tiles as if they were unrestricted. When a dwarf decides what to do next, it chooses targets by distance "as the worm tunnels" i.e. in a direct line, regardless of path. Only then does the dwarf figure out how to get there. Every step on the path on a normal tile costs two abstract "points." A high traffic tile costs one, a low traffic tile costs 5 points, and a restricted tile costs 25.  At each point on the path, the game checks the tiles around the current tile and adds the total point cost so far to the direct line distance guesstimate. It picks the next tile with the lowest cost and recomputes from there. So designating tiles as restricted will tend to make dwarfs take alternate routes IF they are available. If not they will path right through restricted tiles. And traffic restrictions do squat for kids and animals. The only way to make this work would be to ensure the mothers have no reason to ever want to go past the spears. Some combination of burrows, restrictions, and an alternate path might work.

I understand this, I'm hoping to mitigate it by ensuring that the distance is less than 20 out of range of normal travel.

So maybe you didn't' understand how I was hoping things worked out

Code: [Select]
# housewives/mothers burrow

* restricted path

& training area

stairs entering/and or exiting

####################
####################%
 ******************
%&&&&&&&&&&&&&&&&&&
« Last Edit: May 16, 2012, 09:00:21 pm by thistleknot »
Logged
Pages: 1 2 [3]