getinfotypeforstring does always give you an integer (a number) and pUnit needs to be a unit instance. Btw: I think onCityBuilt has no Unit instance, so you cannot test the settler for promotions. See here:
def onCityBuilt(self, argsList)
city = argsList[0]
you can only alter or test...
I need to know how I can access script data from sdk, a get function would be enough. I need it for an interface modification.
For python I'm using SdToolKitCustom.
I want to make the AI move siege units with a protecting group like moving a settler.
It's too easy to kill single siege units on their way to the AI main stack. ;)
Any ideas?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.