Lua control of diplomatic states
I think the API should also support other things that are supported by "DiplRel" requirement (like "Gives Shared Vision"). Example patch I once made here.
Reply To ihnatus
I think the API should also support other things that are supported by "DiplRel" requirement (like "Gives Shared Vision").
So the original submission's simple get.diplo_state() won't work, as there is multiple states active concurrently.
Player:diplstate(other player): https://redmine.freeciv.org/issues/876
Add functions Player.get_diplo_state(player) and Player.set_diplo_state(player, state) where Player.get_diplo_state(player) gets the diplomatic state between Player and player, returning a string like "War", "Peace", or "Ceasefire", and Player.set_diplo_state(player, state) sets the diplomatic state between the two players to the state argument's value