TPStashEvent.EquipSkill
public int EquipSkill(
string player_uuid,
string character_uuid,
string skill_slug,
equipStatus equip_status,
[string skill_category_slug = null],
[int? skill_level = null],
[int? character_level = null]
);
Description
EquipSkill collects the events that occur when a character equips or unequips a skill.
It returns 1 for success and -1 for failure. If -1 is returned, you can see the following message in the Unity editor console in TentuPlay debug mode:
|
Parameters
Name | Description | Required | ||
---|---|---|---|---|
player_uuid |
Player’s unique ID (not a character’s ID) such as Steam user ID and Google Play user ID |
Required |
||
character_uuid |
Player’s character’s unique lD
|
Required |
||
skill_slug |
Unique identifier of the skill |
Required |
||
skill_category_slug |
Category name of the skill |
Optional |
||
equip_status |
Status code that represents whether the skill is equipped or not
|
Required |
||
skill_level |
Skill level |
Optional |
||
character_level |
The level of the character (not player) when equipping or unequipping the skill |
Optional |