Skip to reading
GDScript Programming & Godot

Designer: Character definitions

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Earlier edition reference / Current 0.86.4.0 property paths > p. 350

Reusable character records. player is a special record ID, not a namespace.

Native record route: Character.Get("elias").

Append .Get("property.path", fallback) for a read or .Set("property.path", value) for a write. Replace the example record ID with one from your own project.

Source table from Designer: Character definitions, page 231
Stored pathType / accessPurpose and limits
idtext R / DefinitionStable character ID used by scripts and saved games. Rename with the editor so references can be updated.
character.displayNametext W / DefinitionName used for dialogue and character labels. This authored Character setting is not guaranteed to update an already-created runtime label.
character.isPlayerboolean W / DefinitionWhether this is the selected primary player definition.
descriptiontext W / DefinitionCharacter description.
assetIdrecord W / DefinitionModel asset used by this character. Record kind: assets. Saved immediately; changing a loaded model is not guaranteed to rebuild the current actor.
enabledboolean W / DefinitionWhether this character definition is enabled.
visibleboolean W / DefinitionWhether the character is visible.
opacitynumber W / DefinitionCharacter opacity from 0 to 1.
synonymsarray W / DefinitionAlternative parser names for this character.
tagsarray W / DefinitionProject-defined character tags.
characterdictionary W / Definition / ContainerMovement, dialogue, player, model, and follow settings.
transformdictionary W / Definition / ContainerAuthored position, rotation, and scale when this record is a room instance.
verbPrepositionsdictionary W / DefinitionObjects choose whether to use this preposition in their Verb Actions tab.
prepositionInteractionsarray W / DefinitionMatch a verb and second object. If no rule matches, the first object's ordinary verb action receives both objects in its script context.
Page 231 of 378Permalink
Go to page