Skip to reading
Getting started with PCA3D

Make an action list

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page
On this page

8. Events, verbs and inventory rules

1. Select the owner: room, object, character, inventory rule or GUI element.

2. Open the relevant Events, Verb Actions or Inventory Actions page.

3. Select the event or verb and add an action.

4. Choose its action type, then fill in its typed fields. Select referenced records from their Name(id) dropdowns.

5. Add the next instruction and use the reorder controls to put the list in the required order.

6. Apply the owning Inspector, save and test that exact event.

If a nested value is not exposed by a typed control, the validated Raw JSON view represents the same record. Use the complete recipe in the appendix rather than guessing a field name. Save a checkpoint before replacing a large nested value.

State makes a puzzle reliable#

A boolean is either true or false. Use a flag such as key_taken to remember that a reward was collected. Test the flag before giving the item or points. Without that guard, clicking a drawer ten times may give ten keys.

A number can hold a score or progress counter. A string can hold the current objective. Update the objective after a successful action so the journal follows the player's progress. GUI text such as {objective} and {score} reads those values during play.

Inventory is a separate system#

Page 26 of 184Permalink
Go to page