TPStashEvent.UseCurrency

TPStashEvent.UseCurrency(
    userId,
    character_uuid,
    currency_slug,
    currency_quantity,
    currency_total_quantity,
    where_to_entity,
    where_to_category_slug,
    where_to_slug
)

説明

キャラクターの、ゲームの財貨使用のデータを収集します。ゲームで財貨の使用イベントが発生すると必ず呼び出されるメソッドであり、財貨の使用に関係している分析モデルに使用されます。

パラメータ

名前 説明 必須か

UserId

Robloxが提供するプレイヤーの固有ユーザーID(キャラクターIDではない): Player.UserId

必須

character_uuid

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

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

必須

currency_slug

財貨の固有識別子 例)「gold」、「diamond」、「crystal」など

必須

currency_quantity

使用した財貨の数・量

必須

currency_total_quantity

財貨を使用した後、所持している財貨の合計数・量

必須ではないが、財貨の所持状態をより正確に把握することができるため、非常におすすめ。

オプション

where_to_entity

財貨を使用した経路。どのような行動のために財貨を使用したのかを表す。

エンティティー
TPStashEvent.Entity.None
TPStashEvent.Entity.Etc
TPStashEvent.Entity.Join
TPStashEvent.Entity.Login
TPStashEvent.Entity.LoginAsCharacter
TPStashEvent.Entity.InAppPurchase
TPStashEvent.Entity.ShopPurchase
TPStashEvent.Entity.Trade
TPStashEvent.Entity.PlayQuest
TPStashEvent.Entity.GetBonus
TPStashEvent.Entity.ChangeCharacterArchetype
TPStashEvent.Entity.ChangeStat
TPStashEvent.Entity.ChangeCustomAbility
TPStashEvent.Entity.PlayStage
TPStashEvent.Entity.GetCharacter
TPStashEvent.Entity.GetCurrency
TPStashEvent.Entity.GetInfrastructure
TPStashEvent.Entity.GetPet
TPStashEvent.Entity.GetToken
TPStashEvent.Entity.GetConsumable
TPStashEvent.Entity.GetMaterial
TPStashEvent.Entity.GetEquipment
TPStashEvent.Entity.GetCostume
TPStashEvent.Entity.GetRandomBox
TPStashEvent.Entity.UseCurrency
TPStashEvent.Entity.EquipInfrastructure
TPStashEvent.Entity.EquipPet
TPStashEvent.Entity.UseToken
TPStashEvent.Entity.UseConsumable
TPStashEvent.Entity.UseMaterial
TPStashEvent.Entity.EquipEquipment
TPStashEvent.Entity.EquipCostume
TPStashEvent.Entity.OpenRandomBox
TPStashEvent.Entity.EquipSkill
TPStashEvent.Entity.DismissCharacter
TPStashEvent.Entity.DismissPet
TPStashEvent.Entity.DismissToken
TPStashEvent.Entity.DismissConsumable
TPStashEvent.Entity.DismissMaterial
TPStashEvent.Entity.DismissEquipment
TPStashEvent.Entity.DismissCostume
TPStashEvent.Entity.DismissRandomBox
TPStashEvent.Entity.LevelUpCharacter
TPStashEvent.Entity.LevelUpInfrastructure
TPStashEvent.Entity.LevelUpPet
TPStashEvent.Entity.LevelUpConsumable
TPStashEvent.Entity.LevelUpMaterial
TPStashEvent.Entity.LevelUpEquipment
TPStashEvent.Entity.LevelUpCostume
TPStashEvent.Entity.LevelUpSkill
TPStashEvent.Entity.Deposit
TPStashEvent.Entity.Withdraw
TPStashEvent.Entity.FinishedTutorial

オプション

where_to_category_slug

財貨を使用した経路に対するカテゴリー(大分類)名

オプション

where_to_slug

財貨を使用した経路に対する詳細

オプション