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
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?
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?