🧢XTASK.family
Specifies a group of achievements that are linked together to share network calls.
▸ Data Type
string
▸ Example
Shows how to set up achievements of the same family.
In the example below, XTASK.family
forces the achievement Contextual Roughhousing to share the same network call.
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'
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'
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.
Achievement 1 requires opening the context menu 50,000
times.
Achievement 2 requires opening the context menu 500,000
times.
Last updated