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]
);

설명

커스텀 능력치 변화 데이터를 수집합니다. 커스텀 능력치는 캐릭터나 아이템의 레벨이나 스탯과는 별개로 게임 고유의 능력치를 말하며, 그 능력치의 고유 구분자와 변화를 자유롭게 기록합니다.

호출이 성공한 경우 1이, 실패한 경우 -1이 반환됩니다. 호출에 실패할 경우 유니티 에디터 콘솔 TentuPlay debug mode에서 다음과 같은 메시지가 출력됩니다.

TPError||ERROR inserting table_name: exception_error_message

파라미터

이름 설명 필수 여부

player_uuid

플레이어의 고유 ID(캐릭터 ID가 아닌)로 Steam 사용자 ID나 Google Play 사용자 ID를 말함

필수

character_uuid

플레이어 캐릭터의 고유 ID

게임에 캐릭터가 없거나, 캐릭터가 아닌 플레이어를 가리킬 경우 character_uuid를 TentuPlayKeyword._DUMMY_CHARACTER_ID_로 설정합니다.

필수

custom_ability_slug

커스텀 능력치의 고유 구분자

필수

custom_ability_to

변화 후 커스텀 능력치

필수

custom_ability_category_slug

커스텀 능력치의 카테고리(대분류)

선택

custom_ability_from

변화 전 커스텀 능력치

선택