stefan2200 / TWB

Python based bot for Tribal Wars
GNU General Public License v3.0
100 stars 54 forks source link

prioritizing certain village to farm?| attacking players villages #44

Closed mido4040e closed 7 months ago

mido4040e commented 1 year ago

Hi stefan, thanks for your great bot how can i prioritze certain villages to farm? i tried to put the villages id in "additional_farms": ["667","986"] like that but the bot didn't really start to attack them and if i magaged to use the additional farms method will it work on players villages id? is there a method to make the bot save resources for unit upgrade instade of a building?

stefan2200 commented 1 year ago

Hi, glad you like it so far! The additional_farms list only defines a list of player-owned villages that the bot can attack. If the farming does not start you might need to find the village cache file in the villages directory (should be the village ID) and set both safe and scout to true. For the upgrade prioritization I think this needs some modifications to the code. You might be able to copy some stuff from the other prioritization functions, didn't implement it at the time because it was not really useful on the worlds I played on.