Nystul wrote:"where is/person" entries only should appear if person is in same town as pc.
After re-reading to try and better understand the problem, I feel you could be using the macro as a workaround to determine where NPC is located. The home location shouldn't be used for this purpose (it's just intended for flavour text) you should be querying the SiteLinks to find the Place resource where NPC resource has been allocated (if anywhere). Keep in mind that NPCs don't have to be placed anywhere at all, they're purely virtual until "place npc" is called by script.
Do you just need a simple way to query if NPC is in same town as player? Is that correct? I can help with that.
Nystul wrote:And macro resolving is wrong, above link says: "If _foo_ is a Person resource then ___foo_ (three leading underscores) gives the town name where _foo_ can be found
I'd say Tipton's description is wrong in this case, or at least very limited in understanding. The NPC in M0B00Y16 does not use ___person to expand to their current location (a random dungeon). It expands to a random town in the same region. To the best of my knowledge, the only time ___person is used is for flavour. If you have a text resource where you expect the text macro to expand differently, please quote it so I can see the usage in context. Cheers.