TPStashEvent.ChangeCustomAbility
public int ChangeCustomAbility(
string player_uuid,
string character_uuid,
string custom_ability_slug,
int custom_ability_to,
[string custom_ability_category_slug = null],
[int? custom_ability_from = null]
);
Description
ChangeCustomAbility collects the change in custom ability. A custom ability refers to a game-specific ability other than the level and stats of a character or item.
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 |
||
custom_ability_slug |
Unique identifier of your custom ability |
Required |
||
custom_ability_to |
Custom ability after the change |
Required |
||
custom_ability_category_slug |
Category of your custom ability |
Optional |
||
custom_ability_from |
Custom ability before the change |
Optional |