メインコンテンツまでスキップ

Create Profile Action

Creates a new profile for the player

Action to create a new profile for the player.

フィールド

フィールド型デフォルト説明
profileNameStringNouveau profilName for the new profile. Supports placeholders.プレースホルダー
modeString—Creation mode: solo or coop. Blank opens the mandatory chooser.
successMessageString<green>Profil <gold>{profile_name}</gold> créé !Message to send on success. Supports {profile_name} and {profile_id}.プレースホルダー
maxReachedMessageString<red>Vous avez atteint la limite de profils.Message to send if max profiles reached.プレースホルダー
switchToNewBooleanfalseNot read: a created profile is always activated, because its island is provisioned for the active profile.
TypeWriter 共通フィールド(triggers, criteria, modifiers)
フィールド型デフォルト説明
triggersList<Ref<TriggerableEntry>>empty—
criteriaList<Criteria>empty—
modifiersList<Modifier>empty—

How to use it​

mode is solo or coop. With an empty mode, a game mode with coop opens the Solo or Coop creation page so the player chooses, and a game mode without coop creates a solo profile immediately. coop is refused on a game mode without coop.

profileName accepts placeholders. The profile is created, activated and initialised by the game extension that owns profile data before successMessage ({profile_name}, {profile_id}) is sent and the Profile Created Event fires. maxReachedMessage is sent when the limit is reached. switchToNew is not read: a created profile is always activated.