Using achievement gates to run as business rules.

REQUEST: We want to check how many unique players participate in a 7day competition and each day.

HOW TO ACHIEVE IT: To achieve this, we will create 8 basic achievements which are triggered when a new player participates in the competition on any day in 7 days and all in total. The Condition to be met is a simple BET action by a customer.

 This tutorial shows how to create 7 basic Achievements. If you have any questions regarding Achievements see our Academy basics Achievement creation guide. 

Step-by-step guide to create 7 simple achievements for a 7day competition


Step 1: Start creating an Achievement

  In your CompetitionLabs space, navigate to Achievements → List

  1. You should upload an icon prior to creating an Achievement. If you do not need an icon for your Achievement then you can skip to Step 2. To upload an icon or picture, click Upload Icons. You can upload multiple icons or images to use with Achievements that you create later on.
  2. To start creating the Achievement, click Create.       

Step 2: Achievement settings

Fill out the information about the Achievement. In our case, we are creating a "Achievement Day 1 Participation".

Fill out information about the State, Name and Description of the achievement. 

Settings

StatusSet status to - Draft

Icon

Pick the icon for your Achievement that you uploaded in the Step 1.

Name

Achievement Day 1 Participation

Description

Achievement Day 1 Participation

Initial State

Set state to - Hidden


*You can read about the Achievement settings documentation in detail in /wiki/spaces/CLRAV/pages/627408917.

Move on to the next step by clicking Next.


Step 3: Achievement scheduling

This section defines when the achievement is available.

Define run-time, occurrence and scheduling.

Scheduling
Date and Time

Pick a date and time when your Competition will run and the achievement is valid and it is available.

Example - if the competition will run from March 1st to March 7th so for this achievement select March 1st 12:00 am to March 1st 11:59 pm

OccurrenceSet occurrence to - Once
*You can read about the Achievement scheduling documentation in detail in Step 2: Achievement scheduling.

Move on to the next step by clicking Next.


Step 4: Achievement entrants

You can define Member groups that would receive the achievement. We will not be configuring member groups in this example.

We will leave the default to All, meaning that all members that participate receive the achievement.

*If you want to read about member groups for your achievement creation you can read about it in detail in Step 3: Achievement entrants,

Move on to the next step by clicking Next.


Step 5: Achievement dependent on

This step is used to configure an achievement to depend on other achievements. This is used for creating a progression of achievements. For this example, we will not be creating a dependency.

Fill out the Category of the Achievement.

Dependent On

CategoryBl
Dependent Onn/a
Metadatan/a
*You can read about the Achievement dependent on documentation in detail in Step 4: Achievement dependent on.

Move on to the next step by clicking Next.


Step 6: Achievement reward

No rewards will be triggered in this achievement. You can move to the next step by clicking Next.

*You can read about the Reward documentation in detail in Step 5: Achievement rewards.

Step 7: Achievement rules

Define the rules and conditions for the achievement to trigger. The example below shows how the rules should look for this Achievement.

How to set up Rules:

  1. The Main rules fact is "The count of events where the nested condition(s) evaluate to TRUE for the event" the Main rules operator is "is equal or more than" and the Main rules constant is "1". The condition match of the Main rule is "ALL" and the evaluation criteria - "TRUE". After that you need to add a Sub rule.
  2. The Sub rules fact is "The action" the Sub rules operator is "is" and the Sub rules constant is "BET". The condition match of the Sub rule is "ALL" and the evaluation criteria - "TRUE".
  3. The If condition of AND Sub rules fact is "The product" the Sub rules operator is "is" and the Sub rules constant is "001". The condition match of the Sub rule is "ANY" and the evaluation criteria - "TRUE".
  4. The conditions OR Sub rules fact is "The product" the Sub rules operator is "is" and the Sub rules constant is "002". The condition match of the Sub rule is "ANY" and the evaluation criteria - "TRUE"... (by using this rule you can add as many products as needed that are used in the competitions that want to be checked).
*You can read about the Rules documentation and terminology in detail in Step 6: Achievement rules.

Once you have configured the rules correctly, move on to the next step by clicking Next.


Step 8: Achievement translations

We will not be configuring additional translations in this example.

Move on to the next step by clicking Next.

*If you want to add languages to your achievement creation you can read about the languages documentation in detail in Step 7: Achievement translations.

Step 9: Achievement summary

Review, verify and save your achievement or return to editing previous screens.

 If you did all the steps correctly as in the guide, you should see the same as shown in the example above. If you see something different, go back to the previous steps by pressing the Previous action icon button. To save the Achievement click Finish and the Achievement is created.


Step 10: Created Achievement

 The "Achievement Day 1 Participation" Achievement created.

 One of the 7 achievements were created. The other 6 are the same only the name, description and the scheduling time should be different


Step 11: Achievement 2 through 7 creation


Achievement Day 2 ParticipationAchievement Day 3 ParticipationAchievement Day 4 ParticipationAchievement Day 5 ParticipationAchievement Day 6 ParticipationAchievement Day 7 ParticipationTotal Promo Participation
StatusSet status to - DraftSet status to - DraftSet status to - DraftSet status to - DraftSet status to - DraftSet status to - DraftSet status to - Draft

Icon

Pick the icon for your Achievement that you uploaded in the Step 1.Pick the icon for your Achievement that you uploaded in the Step 1.Pick the icon for your Achievement that you uploaded in the Step 1.Pick the icon for your Achievement that you uploaded in the Step 1.Pick the icon for your Achievement that you uploaded in the Step 1.Pick the icon for your Achievement that you uploaded in the Step 1.Pick the icon for your Achievement that you uploaded in the Step 1.
NameAchievement Day 2 ParticipationAchievement Day 3 ParticipationAchievement Day 4 ParticipationAchievement Day 5 ParticipationAchievement Day 6 ParticipationAchievement Day 7 ParticipationTotal Promo Participation
DescriptionAchievement Day 2 ParticipationAchievement Day 3 ParticipationAchievement Day 4 ParticipationAchievement Day 5 ParticipationAchievement Day 6 ParticipationAchievement Day 7 ParticipationTotal Promo Participation
Initial StateSet state to - HiddenSet state to - HiddenSet state to - HiddenSet state to - HiddenSet state to - HiddenSet state to - HiddenSet state to - Hidden
Scheduling Date and Time

Pick a date and time when your Competition will run and the achievement is valid and it is available.

Example - if the competition will run from March 1st to March 7th so for this achievement select March 2nd 12:00 am to March 2nd 11:59 pm

Pick a date and time when your Competition will run and the achievement is valid and it is available.

Example - if the competition will run from March 1st to March 7th so for this achievement select March 3rd 12:00 am to March 3rd 11:59 pm

Pick a date and time when your Competition will run and the achievement is valid and it is available.

Example - if the competition will run from March 1st to March 7th so for this achievement select March 4th 12:00 am to March 4th 11:59 pm

Pick a date and time when your Competition will run and the achievement is valid and it is available.

Example - if the competition will run from March 1st to March 7th so for this achievement select March 5th 12:00 am to March 5th 11:59 pm

Pick a date and time when your Competition will run and the achievement is valid and it is available.

Example - if the competition will run from March 1st to March 7th so for this achievement select March 6th 12:00 am to March 6th 11:59 pm

Pick a date and time when your Competition will run and the achievement is valid and it is available.

Example - if the competition will run from March 1st to March 7th so for this achievement select March 7th 12:00 am to March 7th 11:59 pm

Pick a date and time when your Competition will run and the achievement is valid and it is available.

Example - if the competition will run from March 1st to March 7th so for this achievement select March 1st 12:00 am to March 7th 11:59 pm

Scheduling OccurrenceSet occurrence to - OnceSet occurrence to - OnceSet occurrence to - OnceSet occurrence to - OnceSet occurrence to - OnceSet occurrence to - OnceSet occurrence to - Once
EntrantsLeave the default to - AllLeave the default to - AllLeave the default to - AllLeave the default to - AllLeave the default to - AllLeave the default to - AllLeave the default to - All
Dependent On CategoryBlBlBlBlBlBlBl
Dependent Onn/an/an/an/an/an/an/a
Metadatan/an/an/an/an/an/an/a
Rewardn/an/an/an/an/an/an/a
Rules
Translationn/an/an/an/an/an/an/a
SummaryReview if everything looks the same as in Step 9 but only the name, description and the Scheduling Date and Time should be differentReview if everything looks the same as in Step 9 but only the name, description and the Scheduling Date and Time should be differentReview if everything looks the same as in Step 9 but only the name, description and the Scheduling Date and Time should be differentReview if everything looks the same as in Step 9 but only the name, description and the Scheduling Date and Time should be differentReview if everything looks the same as in Step 9 but only the name, description and the Scheduling Date and Time should be differentReview if everything looks the same as in Step 9 but only the name, description and the Scheduling Date and Time should be differentReview if everything looks the same as in Step 9 but only the name, description and the Scheduling Date and Time should be different