#44772: Lua control of diplomatic states Open Date: 2022-06-07 17:41 Last Update: 2022-06-08 11:18 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/44772 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44772 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-06-08 11:18 Updated by: ihnatus Comment: 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. --------------------------------------------------------------------- Ticket Status: Reporter: (Anonymous) Owner: (None) Type: Feature Requests Status: Open Priority: 5 - Medium MileStone: S3_2 d3f Component: Scripting API Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- Ticket details: 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 -- Ticket information of Freeciv project Freeciv Project is hosted on OSDN Project URL: https://osdn.net/projects/freeciv/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net/projects/freeciv/ticket/44772 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44772