TPStashEvent.ChangeStat

public int ChangeStat(
    string player_uuid,
    string character_uuid,
    string stat_slug,
    int stat_to,
    [string stat_category_slug=null],
    [int? stat_from=null]
);

説明

キャラクターのステータースを変化させたデータを収集します。ステータスをキャラクターが選択して投資できる時にのみ使用します。

データのアップロードに成功した場合1をリターンし、成功できなかった場合には-1をリターンします。-1リターンとなった場合TentuPlay debug modeに設定されている状態でUnity Editorを使用している場合、Unity Editorコンソールから以下のメッセージが表示されます。

TPError||ERROR inserting table_name: exception_error_message

パラメータ

名前 説明 必須か

player_uuid

プレイヤーの固有ID

必須

character_uuid

プレイヤー内キャラクターの固有ID

ゲームにキャラクターがない、もしくはキャラクターではなくプレイヤーを示す場合にはTentuPlayKeyword._DUMMY_CHARACTER_ID_に設定します。

必須

stat_slug

ステータスの固有識別子

必須

stat_to

変化後のステータス

必須

stat_category_slug

ステータスを区分けできるカテゴリー名

オプション

stat_from

変化前のステータス

オプション