MissionCompleted

The player completed a mission

Name
Type
Select
Backend name
Description

missionType

string

Required

mission_type

Indicate the type of the mission, level, task, quests etc.

missionName

string

Required

mission_name

Specifies the level grouping (e.g., season, bundle, pack). A single missionID may be paired with different missionName parameters.

missionID

int

Required

mission_id

The unique ID for the mission.

missionAttempt

int?

Optional

mission_attempt

Number of times user has played Game Level N (second play of Game Level N = 2)

additionalData

Dictionary<string, object>

Optional

additional_data

Any additional information

reward

Reward

Optional

reward

If rewards are given to the player at the time of the event, the reward object is used to track the items (e.g., boosters, coins, gems, etc) or currencies gifted or earned by the player to the player.

isGamePlay

bool

Optional

is_gameplay

Indicate that mission is gameplay or not.

Code examples:

Product product = new Product();
List<VirtualCurrency> virtualCurrencies = new List<VirtualCurrency>
    {new VirtualCurrency("coins", "gold", 100)};
    product.virtualCurrencies = virtualCurrencies;
    Reward reward = new Reward(product);
LionAnalytics.MissionCompleted(
                missionType: "main",
                missionName: "main_2",
                missionID: 2,
                missionAttempt: 10,
                additionalData: null,
                reward: reward,
                isGamePlay: true);

Last updated

Was this helpful?