[BTS] How to change the behavior of 'work boat'?

1532156

Chieftain
Joined
Jul 17, 2021
Messages
3
I made a improvement mod that can be built on sea tiles. But AIs don't build the improvement. So I opened the file "CIV4UnitInfos.xml" and changed "DefaultUnitAI" and "UnitAI" exactly like "worker". But the AI still don't build the improvement I made. How can I change the behavior of AI's 'work boat'?

Moderator Action: Moved thread from General to Creation and Customization. -lymond
 
Last edited by a moderator:
I don’t think it’s possible without modding the AI. It will take more than xml editing. It would probably work if the improvement was tied to a bonus resource.
 
First: Are you sure that the improvement can be built? Can you as a human player build it?
Second: What does it do? Maybe the AI doesn't understand what it is and don't see it as a valuable thing.

Show us the relevant xml code, so we can have a look. Maybe it's just a tiny little mistake :)
I have added water improvements to my mod and the AI is building them, so it is not a mission impossible ;)
 
Top Bottom