Skip to content

CharacterCreationProfile ​

Inherits: Resource

CharacterCreationProfile - UI Ruleset for character creation Defines available body types (skeleton scenes), editable facial features, voice options, and blend shape options for a character archetype (e.g., "Human", "Elf")

Properties ​

Stringprofile_id""
Stringdisplay_name"":
Stringdescription"":
Texture2Diconnull
Array[PackedScene]body_types[]
Array[String]body_type_names[]:
Array[String]available_voices[]
Array[String]voice_display_names[]:
Stringvoice_entity_type"humanoid"
Array[String]available_animations[]
Array[String]animation_display_names[]:
Array[GeneralSkeleton.FacialFeature]active_facial_features[ ... ]
Dictionaryblend_shape_map{}
Array[Color]skin_colors[ ... ]
Array[Color]hair_colors[ ... ]
Array[Color]eye_colors[ ... ]
Array[PlayerClassDefinition]allowed_player_classes[]

Variables ​

String:loc_key

Methods ​

intget_body_type_count()
PackedSceneget_body_type( index: int )
Stringget_body_type_name( index: int )
Array[String]get_all_body_type_names()
Nodeinstantiate_body_type( index: int )
boolhas_body_types()
intget_voice_count()
Stringget_voice( index: int )
Stringget_voice_display_name( index: int )
Array[String]get_all_voice_display_names()
intget_voice_index( voice_variant: String )
boolhas_voices()
Stringget_voice_path( index: int )
intget_animation_count()
Stringget_animation( index: int )
Stringget_animation_display_name( index: int )
Array[String]get_all_animation_display_names()
intget_animation_index( animation_type: String )
boolhas_animations()
boolis_feature_active( feature: GeneralSkeleton.FacialFeature )
Array[String]get_active_feature_names()
intget_active_feature_count()
Array[String]get_blend_shape_labels()
Stringget_blend_shape_text( ui_label: String )
Stringget_blend_shape_name( ui_label: String )
boolhas_blend_shapes()
intget_blend_shape_count()
Array[Color]get_palette( type: String )
Colorget_color_from_palette( type: String, index: int )
intget_palette_size( type: String )
Array[PlayerClassDefinition]get_allowed_classes()
boolis_class_allowed( class_id: int )
intget_allowed_class_count()
Array[String]validate()
boolis_valid()

Constants ​

  • Dictionary SETTING_DESCRIPTIONS = { - The text the settings editor shows for each setting of the profile.

Property descriptions ​

Profile Identity

String profile_id = "" ​

Unique identifier for this profile (e.g., "human", "elf", "dwarf")

String display_name = "": ​

Display name shown in the character creator UI

String description = "": ​

Optional description for this profile/race

Texture2D icon = null ​

Icon for this profile in selection UI

Body Types

Array[PackedScene] body_types = [] ​

Available body type scenes for this profile (e.g., HumanMale.tscn, HumanFemale.tscn) Each scene should contain a CustomSkeleton as the root or primary skeleton node

Array[String] body_type_names = []: ​

Display names for each body type (should match body_types array length) If empty, names will be auto-generated from scene filenames

Voice Selection

Array[String] available_voices = [] ​

Available voice variants for this profile These should correspond to voice_variant names in DatabaseAudio Example: ["Male_01", "Male_02", "Female_01", "Female_02"]

Array[String] voice_display_names = []: ​

Display names for each voice (should match available_voices array length) If empty, the voice variant names will be displayed directly

String voice_entity_type = "humanoid" ​

Entity type for voice lookup in DatabaseAudio (e.g., "humanoid", "beast")

Animation Selection

Array[String] available_animations = [] ​

Available animation types for this profile These should correspond to animation_type identifiers in DatabaseAnimation Example: ["humanoid_default", "humanoid_athletic", "humanoid_heavy"]

Array[String] animation_display_names = []: ​

Display names for each animation type (should match available_animations array length) If empty, the animation type names will be displayed directly

Facial Features

Array[GeneralSkeleton.FacialFeature] active_facial_features ​

Which facial features are available for player editing Only features in this array will appear in the character creator UI

Blend Shapes

Dictionary blend_shape_map = ​

Maps UI-friendly labels to internal blend shape names Format: { "UI Label": "internal_blend_shape_name" } Example: { "Nose Width": "nose_width_blend", "Jaw Size": "jaw_scale" }

Color Palettes

Array[Color] skin_colors ​

Available skin colors for character customization

Array[Color] hair_colors ​

Available hair colors for character customization

Array[Color] eye_colors ​

Available eye colors for character customization

Class Selection

Array[PlayerClassDefinition] allowed_player_classes = [] ​

Player classes available for selection in character creation If empty, all classes are available

Variable descriptions ​

String: loc_key ​

The prefix of the key of this profile in the localization tables: "creation/<profile id>" ("" when it has no id)

Method descriptions ​

int get_body_type_count() ​

Get body type count

PackedScene get_body_type( index: int ) ​

Get body type scene by index

String get_body_type_name( index: int ) ​

Get display name for a body type

Array[String] get_all_body_type_names() ​

Get all body type names

Node instantiate_body_type( index: int ) ​

Instantiate a body type scene

bool has_body_types() ​

Check if profile has any body types

int get_voice_count() ​

Get voice count

String get_voice( index: int ) ​

Get voice variant by index

String get_voice_display_name( index: int ) ​

Get display name for a voice

Array[String] get_all_voice_display_names() ​

Get all voice display names

int get_voice_index( voice_variant: String ) ​

Get voice index by variant name

bool has_voices() ​

Check if profile has any voices configured

String get_voice_path( index: int ) ​

Get full voice path for DatabaseAudio lookup

int get_animation_count() ​

Get animation type count

String get_animation( index: int ) ​

Get animation type by index

String get_animation_display_name( index: int ) ​

Get display name for an animation type

Array[String] get_all_animation_display_names() ​

Get all animation display names

int get_animation_index( animation_type: String ) ​

Get animation index by type name

bool has_animations() ​

Check if profile has any animations configured

bool is_feature_active( feature: GeneralSkeleton.FacialFeature ) ​

Check if a facial feature is active for this profile

Array[String] get_active_feature_names() ​

Get all active facial feature names as strings

int get_active_feature_count() ​

Get active feature count

Array[String] get_blend_shape_labels() ​

Get blend shape UI labels

String get_blend_shape_text( ui_label: String ) ​

Get internal blend shape name from UI label The label of a blend shape slider in the language of the player. The label written in the map is also what the map is searched with, so keep it as the key and show this text.

String get_blend_shape_name( ui_label: String ) ​

No description yet.

bool has_blend_shapes() ​

Check if profile has any blend shapes configured

int get_blend_shape_count() ​

Get blend shape count

Array[Color] get_palette( type: String ) ​

Get color palette by type

Color get_color_from_palette( type: String, index: int ) ​

Get a specific color from a palette

int get_palette_size( type: String ) ​

Get palette size

Array[PlayerClassDefinition] get_allowed_classes() ​

Get allowed classes (or all if none specified)

bool is_class_allowed( class_id: int ) ​

Check if a class is allowed

int get_allowed_class_count() ​

Get allowed class count

Array[String] validate() ​

Validate the profile configuration

bool is_valid() ​

Check if profile is valid