Topic: "Northmen" Tribe Page
Tibor |
Posted at: 2017-10-14, 19:04
I would say this is new functionality. I am not aware about way how to change team membership during the game. Is there any way? So AI "reads" team membership once during initialization and remembers it. It has to be changed in the code.... Top Quote |
Tibor |
Posted at: 2017-10-14, 20:27
@Nordfriese I need a syntax for lua script that changes team of a player, I would like to test this functionality and probably there is no other way... Top Quote |
Nordfriese Topic Opener |
Posted at: 2017-10-14, 20:32
Team membership can be changed at any time using lua scripting. Just set
So the AI needs to check its alliances at frequent intervals. But when attack bans can be set, I´ll probably replace all teams with temporary truces. Top Quote |
Tibor |
Posted at: 2017-10-14, 20:43
AI updates this infomation as needed, but not sooner then after 15 seconds and no more than after 60 seconds. Top Quote |
Tibor |
Posted at: 2017-10-14, 22:28
So I created the branch ai_small_requests, it compiles, team switching seem to work - it does not crash at least, but I did not have patience to watch the AI players if they really do what is expected. So please test it.. Top Quote |
Nordfriese Topic Opener |
Posted at: 2017-10-15, 13:36
I played a test game with this branch: No crashes or unexpected behaviour, and as soon as the AI became my enemy, it attacked and defeated me. All seems to work fine Top Quote |
Tibor |
Posted at: 2017-10-15, 19:16
Thanks, the branch waits for some other issue to be resolved and then I will propose merging it. Top Quote |
hessenfarmer |
Posted at: 2017-10-15, 23:11
thats very good news this will give a lot of advantages for scenario design Top Quote |
WorldSavior |
Posted at: 2017-10-15, 23:56
Maybe the new AI should train you a little bit more Wanted to save the world, then I got widetracked Top Quote |
Ex-Member |
Posted at: 2017-11-06, 16:36
I just managed to get a working install of widelands and started a run through of the scenario. I had to pause after I was given the warehouse and I could no longer load the save game. Error message that tribe Frisians does not define building type "empire_warehouse". Top Quote |