Skip to reading
PCA Script Programming

change_inventory_description()

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

Change Inventory Description | Action ID: ChangeInventoryDescription

Change an inventory item's description.

Source table from change_inventory_description(), page 123
Option key / fieldMeaning and accepted inputDefault
Inventory Item itemIdChoose an inventory definition ID.Blank
Description descriptionText.Blank

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
change_inventory_description({"itemId": "key", "description": ""})

In use. Update the key's description after discovering which door it opens. Changing description text is separate from changing its icon, name or quantity.

change_character_description()#

Change Character Description | Action ID: ChangeCharacterDescription

Change a character's description.

Source table from change_inventory_description(), page 123
Option key / fieldMeaning and accepted inputDefault
Character / Player characterIdChoose a Character Designer ID; player is a runtime alias where supported.Blank
Description descriptionText.Blank

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
change_character_description({"characterId": "player", "description": ""})

In use. Describe Elias differently after he becomes a companion. A custom Look script with its own fixed text will not automatically use the changed description.

Page 123 of 357Permalink
Go to page