Tíquete #44772

Lua control of diplomatic states

: 2022-06-07 23:41 Última Atualização: 2022-07-09 07:58

Relator:
(Anônimo)
Dono:
(Nenhum)
Estado:
Aberto
Componente:
Marcos:
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Nenhum
Arquivo:
Nenhum

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 History (3/4 Histories)

2022-06-07 23:41 Updated by: None
  • New Ticket "Lua control of diplomatic states" created
2022-06-08 08:56 Updated by: cazfi
  • Marco Update from (Nenhum) to S3_2 d3f
2022-06-08 17:18 Updated by: ihnatus
Comentário

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.

2022-07-09 07:58 Updated by: cazfi
Comentário

Reply To ihnatus

I think the API should also support other things that are supported by "DiplRel" requirement

One such thing would be "HasTeamEmbassy" that should be added in #45073. People using research information API from #45068 would need it.

Attachment File List

No attachments

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login