731 matching pages
Results for inventory
PCA Script Programming…Objects 239 Designer: Triggers 247 Designer: Rooms 252 Designer: Inventory 254 Designer: GUIs 257 Designer: Dialogues 258 Designer: Quests 259 Designer: Objectives 260 Designer: Assets 261 Designer: Cameras 263 Designer: Spawn Points 264 Designer: Cu…
Scripting · Page 6PCA Script Programming… true; stops early on true not | Reverse a test player has key | Inventory possession, not array membership objects.archive_door exists | The referenced record exists function run() let power = true let code_entered = false let override = true let al…
Scripting · Page 15PCA Script Programming…n can_open(): boolean if not powered return false end return has_inventory("key") end return ends the current function. A false return value is still just data: a caller has to inspect it. Returning false does not automatically cancel an unrelated ac…
Scripting · Page 16PCA Script Programming…4. A loop is usually better than recursion for walking a list of inventory items. Type annotations describe supported value types; they do not turn a function into an exposed visual node by themselves. Figure 4. Small named functions keep puzzle chec…
Scripting · Page 17PCA Script Programming…ickup play sound chime set camera to wide end function run() add_inventory({"itemId": "key", "count": 1}) set_object_visible({"entityId": "key_pickup", "visible": false}) play_sound({"assetId": "chime", "channel": "puzzle"}) action("CameraShake", {"d…
Scripting · Page 29PCA Script Programming…if door_open say "It is already unlocked." return end if not has_inventory("key") say "I need the archive key." return end door_open = true score += 5 play_sound({"assetId": "chime", "channel": "puzzle"}) show_message({"text": "The archive is unlocke…
Scripting · Page 30PCA Script Programming…ding a large framework behind them. It reads saved state, checks inventory, prevents a second simultaneous attempt, calls gameplay actions and reports a useful return value. global archive_open = false global archive_busy = false global score = 0 fun…
Scripting · Page 44PCA Script Programming… state; use a running game to test scripts and event chains. For inventory/save widgets, target the intended outer panel, slot, thumbnail or navigation part. Their image and corner-radius overrides can be separate. Use a setter for the specific key r…
Scripting · Page 47PCA Script Programming…Whole-GUI and element helpers; list-box, carousel, model, video, inventory/save-widget actions. Dialogue / Cutscene | Run/end sessions and supported dialogue mutations; author complex graphs/timelines in their designers. Inventory / Quests / Variable…
Scripting · Page 48PCA Script Programming…s a record ID; use an actual reference or a specific lookup. has_inventory() and aliases has_inventory(item, character = "player", count = 1) Check inventory possession through the game’s inventory route. Returns: Boolean. Aliases: player_has() has_i…
Scripting · Page 61PCA Script Programming… local let. A direct PCA if expression is clearer for locals. if_inventory_item_was_used() if_inventory_item_was_used(item) Check the item supplied in the current interaction context. Returns: Boolean. if_inventory_item_was_used("key") Possession and…
Scripting · Page 64PCA Script Programming…isual_script({"scriptId": "utility_pca"}) In use. Put the door's inventory check in open_door, then call that script from the door's Use response. Keep the conditional logic in that one place instead of copying it into several event lists.
Scripting · Page 80PCA Script Programming… | Choose a Verb Designer ID. | Blank First Object (entity:id or inventory:id) sourceId | Text. | Blank Second Object (entity:id or inventory:id) targetId | Text. | Blank Timing. The call waits for its runtime routine to return; no additional complet…
Scripting · Page 85PCA Script Programming…r an item pickup, hiding its world representation and giving its inventory definition are two distinct actions. set_object_action_enabled() Enable / Disable Object Action | Action ID: SetObjectActionEnabled Enable or disable one object's interaction …
Scripting · Page 116PCA Script Programming…visible": true}) In use. Hide the workbench key after giving its inventory item. Hiding is not a collision-size editor or a substitute for disabling a trigger. For reusable pickup logic, target this in a script with an object caller.
Scripting · Page 118PCA Script Programming…spawning a visible item does not automatically remove a matching inventory item.
Scripting · Page 120PCA Script Programming…configured as playable. The new character can have its own room, inventory, HUD and journal settings. It is not a command to swap the visible model on the same actor. is_current_room() Is Current Room | Action ID: IsCurrentRoom Test the current room …
Scripting · Page 141PCA Script Programming…urce point and the target's grip point when available. Giving an inventory lantern and attaching a visible lantern are separate operations.
Scripting · Page 165PCA Script Programming…osition it as required. Detaching does not automatically give an inventory item back or select a new animation.
Scripting · Page 166PCA Script Programming…d be able to select the row. For list boxes bound to an array or inventory, change the data source rather than expecting manual entries to override it permanently.
Scripting · Page 175