-
Notifications
You must be signed in to change notification settings - Fork 2
Tasks documentation
This page covers the TaskRegistry
class, along with all of the classes for requirements and rewards.
This purely static class is used to register new tasks with the game and has only one method that should be used.
Name | Arguments | Return type | Description |
---|---|---|---|
registerTask |
{} |
void |
Registers the given task object with Equilinox. |
The registerTask
method takes a JavaScript object which can have the following properties:
Name | Type | Required? | Description |
---|---|---|---|
id |
int |
Yes | The numeric ID that Equilinox will use internally to track the task. |
name |
String |
Yes | The name of the task that will be displayed to the user. |
repeatable |
boolean |
No | True if the task can be repeated, false otherwise. |
description |
String |
Yes | A description that can be shown to the user explaining the task. |
requirements |
Requirement[] |
Yes | The requirements that need to be satisfied in order for the task to be completed. |
rewards |
Reward[] |
Yes | The rewards to give the user if they complete the task. |
The following requirements can be added to a custom task:
Requires that a certain number of creatures fitting the given classification be born.
The constructor takes a single JavaScript object with the following properties:
Name | Type | Description |
---|---|---|
classification |
String |
The classification code of the species (e.g. ahl ). |
count |
int |
The number of creatures required. |
shortDescription |
String |
A very short description of the task. |
longDescription |
String |
A more detailed description of the task. |
Requires that the user has a certain number of Diversity Points.
The constructor takes a single integer argument stating the required number of Diversity Points (e.g. new CashRequirement(1000)
).
Requires that a certain number of creatures fitting the given classification be evolved.
The constructor takes a single JavaScript object with the following properties:
Name | Type | Description |
---|---|---|
classification |
String |
The classification code of the species (e.g. ahl ). |
count |
int |
The number of creatures required. |
shortDescription |
String |
A very short description of the task. |
longDescription |
String |
A more detailed description of the task. |
Requires that a certain number of creatures fitting the given classification be fully grown.
The constructor takes a single JavaScript object with the following properties:
Name | Type | Description |
---|---|---|
classification |
String |
The classification code of the species (e.g. ahl ). |
count |
int |
The number of creatures required. |
Requires that a certain number of creatures fitting the given classification be happy with their environment.
The constructor takes a single JavaScript object with the following properties:
Name | Type | Description |
---|---|---|
classification |
String |
The classification code of the species (e.g. ahl ). |
count |
int |
The number of creatures required. |
environmentFactor |
int |
The percentage satisfaction required (e.g. 100 for 100% ). |
fullyGrown |
boolean |
True if the creature has to be fully grown for their happiness to count. |
The following rewards can be added to a task:
Rewards the player with a certain number of Diversity Points.
The constructor takes a single integer argument stating the rewarded number of Diversity Points (e.g. new CashReward(1000)
).
Rewards the player with a new species or other object from the shop.
The constructor takes a single integer argument stating the ID of the rewarded item (e.g. new ShopItemReward(116)
for a poppy).
Rewards the player with one or a number of tasks that they can then complete.
The constructor takes a single integer-array argument stating the IDs of the new tasks (e.g. new ShopItemReward([263, 832])
).
Rewards the player with a new music track to listen to.
The constructor takes a single integer argument stating the ID of the rewarded music track (e.g. new MusicReward(988)
for a track with an ID of 988
).
Thanks for visiting this wiki. Don't forget to check out Equilinox!
The wiki and the modding framework are still heavily under development, so not all content is available yet.