Well, religion, pCity and city are never declared, are they globals? It seems unlikely. Besides you need to check players against IsEverAlive() first or you can make the game crashes as soon as you use a player's functions. So my guess is that your function is never called.
Two advices:
* "print" is your friend. Add "print" statements in your code to see what is happening.
* Use Firetuner to get a live lua log, it's less cumbersome than the log files.
Two advices:
* "print" is your friend. Add "print" statements in your code to see what is happening.
* Use Firetuner to get a live lua log, it's less cumbersome than the log files.