Set up challenges - Challenge - (Unreal Engine module)
Configure statistics cycle in the Admin Portal
You will configure challenges using statistics as the challenge goal requirements. For periodic challenges, you also need periodic statistics. Therefore, you must configure the statistics cycles first in the Admin Portal.
Log in to the Admin Portal and go to your game namespace dashboard.
Navigate to Progression & Inventory > Statistics > Cycles, then click Add Cycle.
Fill out the required fields. Let's start by creating a daily cycle using the configuration below:
- Cycle Name: The name of your statistics cycle. Set it to
unreal-daily
. - Cycle Description: The description of your statistics cycle. Set it to
Unreal Daily Statistics Cycle
. - Start Date: The date when this cycle starts. Set it to the current date.
- End Date: Leave this empty to make the cycle valid indefinitely.
- Cycle Type: Set it to Daily.
- Reset Time: The time when the cycle resets. Set it to 00:00, so it resets at the beginning of each day.
- Cycle Name: The name of your statistics cycle. Set it to
Click Add, and you will see your new statistics cycle listed.
Next, add your statistics to the new statistics cycle. From the statistics cycle list, click the new cycle name to open its details.
Scroll down until you see the Statcode List table. This table lists the statistics managed by the cycle. Click the Stat Code button to add your statistics.
In the pop-up window, add all the statistics you created in the Stat Tracking module. Once done, click Add.
Now you’ve set up the daily statistics cycle. Next, follow the same steps to configure the weekly cycle using the following configuration:
- Cycle Name: Set it to
unreal-weekly
- Cycle Description: Set it to
Unreal Weekly Statistics Cycle
- Start Date: Set it to the current date.
- End Date: Leave it empty to make the cycle valid indefinitely.
- Cycle Type: Set it to Weekly
- Reset Day: Set it to Monday
- Reset Time: Set it to 00:00
- Cycle Name: Set it to
Congratulations! You have successfully configured both daily and weekly statistics cycles in the Admin Portal.
Sample challenge configuration values
For next step, we've prepare the values you can use to configure the challenges and goals. This config uses the statistics configuration you did in the Stat tracking and In-game store modules.
All Time Challenge
Field Value Challenge Name Unreal All Time Challenge Code unreal-alltime Rotation Type None Assignment Rule Unscheduled Goals Name Reach 4000 High Score in Any Game Mode Goal Code highestscore-4000-anygamemode-alltime Goal Requirement Groups
Group Requirement Stat Code Operator Amount 1 Statistic Code unreal-highestscore-singleplayer Greater Than or Equal to 4000 2 Statistic Code unreal-highestscore-elimination Greater Than or Equal to 4000 3 Statistic Code unreal-highestscore-teamdeathmatch Greater Than or Equal to 4000 Rewards
Reward Type Item Name Amount Entitlement 1 Byte Gem 100
Daily Challenge
Field Value Challenge Name Unreal Daily Challenge Code unreal-daily Rotation Type Daily Assignment Rule Unscheduled Goals Name Reach 1000 High Score in Any Game Mode Goal Code highestscore-1000-anygamemode-daily Goal Requirement Groups
Group Requirement Stat Code Cycle Name Operator Amount 1 Statistic Code and Cycle unreal-highestscore-singleplayer unreal-daily Greater Than or Equal to 1000 2 Statistic Code and Cycle unreal-highestscore-elimination unreal-daily Greater Than or Equal to 1000 3 Statistic Code and Cycle unreal-highestscore-teamdeathmatch unreal-daily Greater Than or Equal to 1000 Rewards
Reward Type Item Name Amount Entitlement 1 Byte Coin 2000
Weekly Challenge
Field Value Challenge Name Unreal Weekly Challenge Code unreal-weekly Rotation Type Weekly Assignment Rule Unscheduled Goals Name Reach 2000 High Score in Any Game Mode Goal Code highestscore-2000-anygamemode-weekly Goal Requirement Groups
Group Requirement Stat Code Cycle Name Operator Amount 1 Statistic Code and Cycle unreal-highestscore-singleplayer unreal-weekly Greater Than or Equal to 2000 2 Statistic Code and Cycle unreal-highestscore-elimination unreal-weekly Greater Than or Equal to 2000 3 Statistic Code and Cycle unreal-highestscore-teamdeathmatch unreal-weekly Greater Than or Equal to 2000 Rewards
Reward Type Item Name Amount Entitlement 1 Byte Coin 6000
Configure challenges in the Admin Portal
Now, let’s use the sample configuration values from the previous section to set up challenges in the Admin Portal.
Log in to the Admin Portal and go to your game namespace dashboard.
Navigate to Engagement > Challenges > Configurations, then click Create Challenge.
In the new menu, under the Challenge Configuration tab, refer to the example values provided earlier to fill out the following fields:
- Challenge Name: The name of the challenge.
- Challenge Code: The unique identifier for the challenge.
- Start Date: The date when the challenge starts. Set it to the current time.
- End Date: The date when the challenge ends. You can set it to any time or choose Never.
- Rotation Type: The challenge rotation/period. Options include None, Daily, Weekly, and Monthly.
- Reset Time: The time when the challenge rotation/period resets.
- Assignment Rule: How goals are assigned for each rotation. You can set it to Fixed, Randomized, Always Display All (Unscheduled), or Custom.
In the Goals and Rewards tab, add new challenge goals by clicking the Create Goals button. Use the example values provided earlier to complete the fields:
- Goal Name: The name of the goal.
- Goal Code: The unique identifier for the goal.
- Status: Whether the goal is enabled for the challenge.
- Description: A brief explanation of the goal.
- Requirements: The conditions required to complete the goal. Requirements can be grouped using Groups. Each requirement in a single group must be fulfilled to complete that group. If you have multiple groups, each one functions independently. There are two ways to organize requirements:
- OR: If the goal can be completed by fulfilling any one of the groups, add multiple groups using the Add Group button.
- AND: If the goal requires all listed requirements, use a single group and add multiple requirements using the Add Requirement button.
- Rewards: The rewards granted upon completing the goal.
You have now configured the challenges, goals, requirements, and rewards.