Create Profile Action
Creates a new profile for the player
Action to create a new profile for the player.
Поля
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
profileName | String | Nouveau profil | Name for the new profile. Supports placeholders.Плейсхолдеры |
mode | String | — | Creation mode: solo or coop. Blank opens the mandatory chooser. |
successMessage | String | <green>Profil <gold>{profile_name}</gold> créé ! | Message to send on success. Supports {profile_name} and {profile_id}.Плейсхолдеры |
maxReachedMessage | String | <red>Vous avez atteint la limite de profils. | Message to send if max profiles reached.Плейсхолдеры |
switchToNew | Boolean | false | Not read: a created profile is always activated, because its island is provisioned for the active profile. |
Общие поля TypeWriter (triggers, criteria, modifiers)
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
triggers | List<Ref<TriggerableEntry>> | empty | — |
criteria | List<Criteria> | empty | — |
modifiers | List<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.