Since controlling AI behavior is so difficult I'm always experimenting with unit AI settings. Like using UNITAI_SETTLER or UNITAI_UNKNOWN actually has its uses in some cases. (These settings will make units find a "good spot" and then stay there - and to stay put, respectively. Very handy for scenario making, as you don't want the AI to wander off with the units you're spawning for it!)yeah im pretty sure the unitai just controls what the ai will do with that unit, i think the banimal affects the units properties.
I don't know. Are you talking about the default settings for barbarian spawns in the game, or about creating your own spawns with CyPlayer.initUnit()? Because I've been able to spawn any type of unit on any type of plot with the latter... (Its restricting these spawns to the right type of plot that is the tricky part!)but i think making the animals spawned on water will be trickier right?
Oh, I'm not your man. I realize I shouldn't have answered at all in the first place. I'll just have to remind myself not to try help anyone out on this particular board, as there are very qualified programmers doing the helping here! And I'm not very qualified for much of anything.so i hope you can help me in any way,
Oh, I'm not your man. I realize I shouldn't have answered at all in the first place. I'll just have to remind myself not to try help anyone out on this particular board, as there are very qualified programmers doing the helping here! And I'm not very qualified for much of anything.
I do wanna help out, but I'm clearly out-knowledged on this board.oh no no if you cant help that's ok, its also nice that someone shows interest.
I think I wasn't being clear. AFAIK the unit will do absolutely nothing. Useful for stationary units, like native tribes occupying select tiles or sentry units that doesn't just wander off...UNITAI_UNKNOWN - what does that do??
Yeah, but are you gonna use the built in feature in CivIV to spawn your barbarians, or are you open to using your own Python code to spawn these units? I can't see why you can't just spawn those units yourself, on random turns and on random tiles. The trick, as I said before, would be to restrict these spawns to ocean/coastal plots.and im talking abut like you have lions spawned in early game- i want other animals - to be also spawned during the game in water plots, thats all.
AFAIK the only point of the bAnimal flag is to prevent entering cultural borders.
And what does then lead to the spawning? I thought the tag was for that.
It is as davdlallen said, the bAnimal tag prevents you from entering owned tiles but UNITAI_ANIMAL is used to spawn animals. There is also a check if the plot is not water in CvGame::createAnimals().