> For the complete documentation index, see [llms.txt](https://xtask.rlib.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xtask.rlib.io/configuration/achievements/xtask.family.md).

# XTASK.family

Specifies a group of achievements that are linked together to share network calls.

## <mark style="color:red;">▸ Data Type</mark>

&#x20;      <mark style="color:yellow;">**string**</mark>

## <mark style="color:red;">▸ Example</mark>

Shows how to set up achievements of the same family.&#x20;

In the example below, <mark style="color:red;">**`XTASK.family`**</mark> forces the achievement <mark style="color:red;">**Contextual Roughhousing**</mark> to share the same network call.

{% code title="contextual\_roughhousing\_1.lua" lineNumbers="true" %}

```lua
XTASK.title	 = 'Contextual Roughhousing I'
XTASK.desc	 = sf( 'Open the Context Menu %s times', helper.str:comma( XTASK.maxreq ) )
XTASK.cat	 = 'Menus'
XTASK.author	 = 'Richard'
XTASK.icon	 = 'rlib/modules/xtask/ach/full_house.png'
XTASK.maxreq	 = 50000
XTASK.stat	 = 'action_contextmenu'
XTASK.family     = 'roughhousing'
```

{% endcode %}

{% code title="contextual\_roughhousing\_2.lua" lineNumbers="true" %}

```lua
XTASK.title	 = 'Contextual Roughhousing II'
XTASK.desc	 = sf( 'Open the Context Menu %s times', helper.str:comma( XTASK.maxreq ) )
XTASK.cat	 = 'Menus'
XTASK.author	 = 'Richard'
XTASK.icon	 = 'rlib/modules/xtask/ach/full_house.png'
XTASK.maxreq	 = 500000
XTASK.stat	 = 'action_contextmenu'
XTASK.family     = 'roughhousing'
```

{% endcode %}

{% hint style="warning" %}
If you have multiple achievements that are different stages of the same task and do not set a family, then only one achievement will count toward progression; the others will remain at 0.

The two examples above are the same achievement, however, each achievement has different requirements for the "required" value.

<mark style="color:yellow;">**Achievement 1**</mark> requires opening the context menu <mark style="color:red;">`50,000`</mark> times.

<mark style="color:yellow;">**Achievement 2**</mark> requires opening the context menu <mark style="color:red;">`500,000`</mark> times.
{% endhint %}
