Skip to reading
Getting started with PCA3D

R2. Primitive actions and GUI rectangles

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

R2. Primitive actions and GUI rectangles

The following action recipes are taken from the supplied project. They are shown in execution order. True/False sections belong inside their If action. GUI rectangles are X, Y, Width, Height in design pixels.

01 · Blockout Lab (lab)#

Room event: firstEnter#

1. Start Quest - questId = signal

2. Show Message - text = Prototype Lab: restore the beacon using a cube, a relay and a rotating dish.; duration = 3.2

3. Show Message - text = Everything here uses primitives, built-in generators or stock-style vector art. Click to interact; Esc opens the menu.; duration = 3.2

power_cell > take#

1. If Variable - name = cell_taken; equals = true

True

1. Show Message - text = The cell is already in your parts tray.; duration = 3.2

False

1. Set Variable - name = cell_taken; value = true

2. Add Inventory - itemId = cell

3. Set Variable - name = score; value = 20

4. Set Variable - name = objective; value = Use the power cell on the blue relay.

5. Set Object Visible - entityId = power_cell; visible = false

power_cell > look#

1. Show Message - text = A cube with a job: power the relay.; duration = 3.2

relay > use#

1. If Variable - name = powered; equals = true

True

1. Change Scene - sceneId = roof; spawnId = entry

False

1. Show Message - text = The relay needs the amber power cell. Select it in Inventory and use it here.; duration = 3.2

relay > look#

1. Show Message - text = A plain box stands in for a finished machine.; duration = 3.2

02 · Beacon Deck (roof)#

dish > use#

1. If Variable - name = aligned; equals = true

Page 105 of 184Permalink
Go to page