Skip to content
#3088
Auto-translated
And also, in the map editor, it constantly displays the following when checking the script: “Function CaptureTown not defined
Function p_owner not defined
Function n_owner not defined
Function hero not defined
Function i not defined”
Could this be the reason why it’s not working?

Added 2 minutes later
Gerter
I don’t even know, everything works fine for me, I tested this code on your map... maybe you forgot to remove all the buildings that provide growth in the city in the editor?
And you need to remove all buildings related to growth, even the fort?

Added 2 minutes later
It works now) I removed all the buildings and it started working, thank you)))

Added 1 minute later
And could you please explain how this works? If it’s not too much trouble?
For example, what does build mean at the very beginning? Why didn’t you declare this variable?
What is i? Why didn’t you declare it either?

Statistics

Welcome our newest member: leyu