TPStashEvent.GetCurrency

TPStashEvent.GetCurrency(
    userId,
    character_uuid,
    currency_slug,
    currency_quantity,
    currency_total_quantity--[[Optional--]],
    from_entity--[[Optional--]],
    from_category_slug--[[Optional--]],
    from_slug--[[Optional--]]
)

説明

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

パラメータ

名前 説明 必須か

UserId

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

必須

character_uuid

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

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

必須

currency_slug

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

必須

currency_quantity

獲得した財貨の数・量

必須

currency_total_quantity

財貨を獲得した後、所持している財貨の合計数・量。

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

オプション

from_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

オプション

from_category_slug

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

オプション

from_slug

財貨を獲得した経路に対する詳細

オプション