There is a bug that has been a year I reported it to Bersy in pm, and I just hope it to be fixed soon.
!!UN:U for counting the number of towns or looking for the next town can be mistaken if a hero standing in the red zone, like this:
Download a save game with hero stuck at red zone
Script for counting the number of towns:
Steps to reproduce:
- Load the save game I uploaded OR create a new map and move the hero into the red zone of a town
- Execute my script for counting town number
- Move the hero out of the red zone
- Execute my script for counting town number and see the difference from the previous step
Ideally, you will see that after moving the hero out of the red zone, the number of towns is 1 less. This is because in the previous counting, the hero in the red zone was recon as a town. Enabling the check of TR:P will return the real result of town number.