Tell an event problem from a handler problem
EVENTS
A handler is the code that responds to something happening. When a room-entry message never appears, test the handler and the real doorway separately.
The PCA Script workspace offers a handler selector and Simulate Event. This record listens for the room lab to load.
01. Put a short log message at the start of the handler. Check its event name and filters. A handler for lab will ignore other rooms. For a BASIC or Lua record, also check the matching event subscription in its Designer.
02. For PCA Script, validate the record, select a handler in the toolbar and use Simulate Event. A simulated call carries editor test information. A real room, trigger or inventory event can supply additional fields that a filter or a branch needs.
03. Repeat the actual event. Enter the room through the usual door or start a scene test. In the captured game, entering lab produced Arrival handler reached. If an isolated test succeeds but the doorway fails, inspect the destination and the route into the room.
when room lab loads
log "Arrival handler reached"
endCheck how often the message appears too. A message printed twice for one entry can mean two subscribed records, two event bindings, or a second scene load. Log the record ID in each handler to tell them apart.
0.86.4.3 / Read a cue trace and camera diagnostics > Page 33
