# bool DiplAreAllied(int, int)

[Family: Global](/imperivm/en/CKS/familias/global/)

## Exact signature

```text
bool DiplAreAllied(int, int)
```

## Description

Checks whether two players have a reciprocal diplomatic alliance. Returns false if either player number is outside the range 1 to 16, and true when both valid numbers identify the same player.

## Usage notes

For distinct players, the relationship is checked in both directions along with an additional condition in each player's state. The full meaning of that additional condition is not yet documented.

## Parameters and return type

**Return type:** `bool`

| Position | Type |
| --- | --- |
| 1 | `int` |
| 2 | `int` |

## Read and share

- [Markdown](/imperivm/exports/en/cks/api-50f67cd80ec7cb.md)
- [JSON](/imperivm/CKS/api/entries/api-50f67cd80ec7cb?lang=en)

Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.
