Comment 11 for bug 1617576

Revision history for this message
kaputtnik (franku) wrote : Re: Noe messages for Territorial Lord?

I think it counts right: All water and acid terrains are imho not counted.

I have added a print statement to territorial_lord.lua which should output some related information:

print('player name, owns fields/from overall fields ', p.name, ",", _landsizes[p.number], "/", # fields)

The last one ( # fields) should be the overall amount of fields which could be conquered. This value divided by two is the half of the area which has to be conquered to show a message. GunChleoc is this the right statement to get the size of a table in lua (number of all entries, "fields" in this case)?

Attached is the modified lua file. Since a savegame does store also the code of a win condition, using this file works only with new started games. The output for map "Glacier Lake" is f.e. like:

player name, owns fields/from overall fields Spieler 1 , 271 / 7043
player name, owns fields/from overall fields Spieler 2 , 271 / 7043
[...]

The output get updated every 30 seconds.