Skip to reading
PCA Script Programming

Designer: Characters

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
On this page

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

These are shared character definitions. A room actor can have a separate character dictionary under an object instance. Model/state changes on the shared definition are not a guarantee of an immediate rebuild of an already loaded actor.

Reference shape: characters.elias.property_path.

The example ID is illustrative. Choose an existing record in your own project; direct camera, spawn and objective lookups must be unambiguous.

Methods on Characters#

say(text, portrait_id, voice_asset_id, voice_key)#

Speak dialogue text as this character.

Accepts 1 to 4 arguments.

walk_to(destination)#

Walk this character to an object, character, spawn, Vector2, or Vector3.

Accepts 1 to 1 arguments.

change_room(room, spawn = null)#

Change to a room, optionally at a spawn point.

Accepts 1 to 2 arguments.

This method routes a ChangeScene action for the active game. It is not an NPC-transfer method tied to the receiver. Use Move NPC to Room for an NPC that should move between rooms without changing the active room.

play_animation(animation)#

Play an animation state or clip on this character.

Accepts 1 to 1 arguments.

Source table from Designer: Characters, page 222
Property 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.
Page 222 of 357Permalink
Go to page