The walk of a "random" walker has (as far as we've discovered) up to 3 phases:
1) Going to a tile selected by an algorithm that starts by looking 8 tiles to the NE, SE, SW, or NW. The walker (or set of walkers) cycles through the 4 directions in subsequent walks. This is described well in StephAmon's Ambulomancy, linked fromPredicting Roaming Walks.
2) Wandering around for a while.
3) Returning to its building.
My assumption, until now, was that phase 2) was determined by the surrounding road network, even though we didn't know the details. Therefore, with a fixed road network, the walker (or set of walkers) from a given building would repeat the same cycle of 4 walks. That assumption is wrong.
I was investigating whether a "random" walker tended to go straight (or in a particular direction) at intersections during the middle ("random") part of a walk. I used a water supply (since it doesn't collapse or spontaneously catch fire) in the center of a road network that had long intersection-free dead-end roads running off in 3 directions and a grid of roads with lots of intersections running off in the 4th direction. Using Pharaoh without Cleopatra, I added such a road network to my Baki, and noticed that while the walks of the water supply's citizen did cycle through the 4 directions, when the citizen went into the grid he took different routes. I watched through several cycles, then ignored my original question and investigated this unexpected behavior further.
Using Cleopatra, I built such a road network in the Sandbox custom mission (as well as a few houses, a fire station, and an apothecary far away from the test network). Once again, the citizen followed different routes when it went into the grid. However, after several cycles through the 4 directions, the citizen started to always take the same route in the grid. I watched the citizen repeat the same cycle of 4 walks through perhaps a dozen cycles. Then I deleted the water supply, built a statue in its place, deleted the statue, and rebuilt the water supply. This time, the citizen always took the same route through the grid, and followed the same cycle of 4 walks that the original citizen had eventually adopted.
I restarted the Sandbox custom mission and repeated the test with essentially the same road network (although the houses and other stuff were probably not the same). Again, the citizen immediately followed the same cycle of 4 walks that the original citizen had adopted. However, when I exited Cleopatra, restarted Cleopatra, and repeated the test in the Sandbox custom mission, the citizen followed different routes when it went into the grid for several cycles (roughtly 10--I didn't count), but eventually adopted the same cycle of 4 walks. I once again tried restarting the Sandbox mission, and the citizen immediately took the same cycle of 4 walks.
Using Cleopatra, I added a similar test netowrk to my Itjtawy. I watched for around 15 years (50-60 cycles of the citizen), and the routes kept changing. (Sometimes the same walk in the grid would repeat for a few cycles, but never many.)
In summary, a "random" walker is likely to repeat the same cycle of 4 walks, but sometimes it may not. I don't have an explanation.
This has little effect on my design and play, since I don't depend on a particular behavior (other than not turning around) during the middle phase of a "random" walker's walk.
I've only checked this for Pharaoh walkers (actually, only for the citizen from a water supply), so I don't know if it applies to Caesar III walkers.
I apologize for all of the erroneous remarks I've made about a random walker repeating the same cycle of 4 walks. I should have known better.
1) Going to a tile selected by an algorithm that starts by looking 8 tiles to the NE, SE, SW, or NW. The walker (or set of walkers) cycles through the 4 directions in subsequent walks. This is described well in StephAmon's Ambulomancy, linked from
2) Wandering around for a while.
3) Returning to its building.
My assumption, until now, was that phase 2) was determined by the surrounding road network, even though we didn't know the details. Therefore, with a fixed road network, the walker (or set of walkers) from a given building would repeat the same cycle of 4 walks. That assumption is wrong.
I was investigating whether a "random" walker tended to go straight (or in a particular direction) at intersections during the middle ("random") part of a walk. I used a water supply (since it doesn't collapse or spontaneously catch fire) in the center of a road network that had long intersection-free dead-end roads running off in 3 directions and a grid of roads with lots of intersections running off in the 4th direction. Using Pharaoh without Cleopatra, I added such a road network to my Baki, and noticed that while the walks of the water supply's citizen did cycle through the 4 directions, when the citizen went into the grid he took different routes. I watched through several cycles, then ignored my original question and investigated this unexpected behavior further.
Using Cleopatra, I built such a road network in the Sandbox custom mission (as well as a few houses, a fire station, and an apothecary far away from the test network). Once again, the citizen followed different routes when it went into the grid. However, after several cycles through the 4 directions, the citizen started to always take the same route in the grid. I watched the citizen repeat the same cycle of 4 walks through perhaps a dozen cycles. Then I deleted the water supply, built a statue in its place, deleted the statue, and rebuilt the water supply. This time, the citizen always took the same route through the grid, and followed the same cycle of 4 walks that the original citizen had eventually adopted.
I restarted the Sandbox custom mission and repeated the test with essentially the same road network (although the houses and other stuff were probably not the same). Again, the citizen immediately followed the same cycle of 4 walks that the original citizen had adopted. However, when I exited Cleopatra, restarted Cleopatra, and repeated the test in the Sandbox custom mission, the citizen followed different routes when it went into the grid for several cycles (roughtly 10--I didn't count), but eventually adopted the same cycle of 4 walks. I once again tried restarting the Sandbox mission, and the citizen immediately took the same cycle of 4 walks.
Using Cleopatra, I added a similar test netowrk to my Itjtawy. I watched for around 15 years (50-60 cycles of the citizen), and the routes kept changing. (Sometimes the same walk in the grid would repeat for a few cycles, but never many.)
In summary, a "random" walker is likely to repeat the same cycle of 4 walks, but sometimes it may not. I don't have an explanation.
This has little effect on my design and play, since I don't depend on a particular behavior (other than not turning around) during the middle phase of a "random" walker's walk.
I've only checked this for Pharaoh walkers (actually, only for the citizen from a water supply), so I don't know if it applies to Caesar III walkers.
I apologize for all of the erroneous remarks I've made about a random walker repeating the same cycle of 4 walks.
[This message has been edited by Brugle (edited 06-05-2008 @ 05:17 PM).]