PCA Script to GDScript: important differences
Earlier edition reference / Current 0.86.4.0 property paths > p. 350
| PCA Script | Native GDScript |
|---|---|
| function / end | func / colon / indentation |
| let / global / const | var / const; saved game globals through Variable |
| when room lab loads | on_scene_loaded method plus subscription checkbox |
| set value to 5 | value = 5 |
| say "text" | await Say({"text": "text", ...}) or a character proxy Say method |
| Automatic action suspension | Use await when the caller needs completion/result |
| try / catch | No native try/catch; guard and inspect Error/status values |
| include_script returns ID | IncludeScript returns a script-call proxy |
| Record reference / VM value | Native RefCounted record proxy object |
| PCA regex match dictionary | Native RegExMatch object |
| PCA VM debugger | Native Godot debugger for GDScript |
| PCA array helpers are limited | Native Array/String/Dictionary methods are available |
Do not translate a script by changing function to func and leaving everything else alone. Event wiring, waits, variable lifetime, helper capitalization and return contracts need deliberate conversion.
