[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KRD5SQC3QHAJ00N53VDJB5":3,"skill-same:01M6KRD5SQC3QHAJ00N53VDJB5":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M6KRD5SQC3QHAJ00N53VDJB5","popochiu",null,"Use when using the Popochiu addon — point-and-click adventure framework with rooms, characters, props\u002Fhotspots, inventory, dialog trees, and a command-based GUI","jame581\u002FGodotPrompter","jame581","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F21112138?v=4","01M6KR3KEQ9Z30WVJRR2E2ZVXE","Jan Mesarč","01M6KR3KJVRMPDSMASQPBCBVK3",964,"MIT","https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Fpopochiu\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30],"trees","click","inventory","gui","dialog","use","with","command","framework","characters","point","when","2026-11-10 10:12:30",false,"---\nname: popochiu\ndescription: Use when using the Popochiu addon — point-and-click adventure framework with rooms, characters, props\u002Fhotspots, inventory, dialog trees, and a command-based GUI\n---\n\n# Popochiu\n\n> **Related skills:** **dialogue-system** for hand-rolled dialogue data, **inventory-system** for generic inventory patterns, **save-load** for core-engine persistence.\n\n> **Addon:** Popochiu · version `v2.2.1` · Godot 4.7 (use 2.1.x on 4.6) · MIT · source: https:\u002F\u002Fgithub.com\u002Fcarenalgas\u002Fpopochiu · pure GDScript (no C# API — GDScript-only skill).\n\n> **Godot 4.8:** not yet confirmed by the addon. The README says 2.2.1 targets Godot 4.7, and no open issue mentions 4.8 (checked 2026-11-12).\n\n---\n\n## 1. When to use Popochiu\n\n| Approach | Best for |\n|---|---|\n| Hand-rolled (`dialogue-system` + `inventory-system` + `state-machine`) | Custom genre, tight control over every system, no editor tooling needed |\n| **Popochiu** | Full point-and-click adventure (AGS\u002FPowerQuest-style): rooms, walk-to-click, verb-based interaction, dialog trees, inventory, save\u002Fload — wired together with dock-generated scaffolding |\n\nChoose Popochiu when you're building a classic point-and-click adventure and want the room\u002Fcharacter\u002Fprop\u002Fdialog\u002Finventory pipeline pre-built, with a dock that scaffolds new objects and autoload registries that give autocomplete (`R.House`, `C.Popsy`, `I.Key`, `D.PopsyHouseChat`). Hand-roll with `dialogue-system` + `inventory-system` + `state-machine` when your genre isn't point-and-click, or you need full control over the interaction model. Popochiu v2.2.1 targets **Godot 4.7** and is GDScript-only (no C# API).\n\n---\n\n## 2. Install & project setup\n\n1. Get Popochiu from [itch.io](https:\u002F\u002Fcarenalgas.itch.io\u002Fpopochiu) or [GitHub Releases](https:\u002F\u002Fgithub.com\u002Fcarenalgas\u002Fpopochiu\u002Freleases); copy `addons\u002Fpopochiu\u002F` into your project.\n2. **Project → Project Settings → Plugins** (**Project Settings → Addons → Plugins** on 4.8) → enable **Popochiu**. Godot prompts a restart — **Project → Reload Current Project**. Upgrading a 2.1.x project: open it in **2.2.0** first so its migrations rewrite your scripts, then move to 2.2.1, which removes the methods old scripts may still call. For touch devices keep **Emulate Mouse From Touch** on (Popochiu reads mouse events only).\n3. On first run, `PopochiuResources.init_file_structure()` scaffolds `res:\u002F\u002Fgame\u002F` (layout below) plus `popochiu_data.cfg` (a `ConfigFile` registry of every room\u002Fcharacter\u002Fitem\u002Fdialog) and `popochiu_globals.gd` (an empty `Globals` autoload — add your own state here).\n4. The **setup wizard** pops up automatically (re-open via the dock's \"Setup\" button): pick a **game type** (Retro \u002F Pixel Art or Modern \u002F Hi-Res — sets the stretch aspect and pixel-art texture filtering; the custom-settings form offers Custom \u002F Pixel Art \u002F High Resolution), a **Resolution**, and a **GUI Template** (9 Verb, the Sierra-style \"Action Bar\", Simple Click, or Custom).\n5. Two companion plugins, **PopochiuImporters** (Aseprite import docks) and **PopochiuGizmo**, are enabled automatically along with Popochiu.\n\nDock-generated layout:\n```\nres:\u002F\u002Fgame\u002F\n  popochiu_globals.gd        # Globals autoload — add vars\u002Fon_save\u002Fon_load\n  popochiu_data.cfg          # registry of rooms\u002Fcharacters\u002Fitems\u002Fdialogs\u002FGUI\u002Fsetup\n  autoloads\u002F{r,c,i,d,a}.gd   # generated — never hand-edit; rewritten per new object\n  rooms\u002F\u003Cname>\u002Froom_\u003Cname>.gd (+ .tscn, state script)\n  characters\u002F\u003Cname>\u002Fcharacter_\u003Cname>.gd (+ .tscn, state script)\n  inventory_items\u002F\u003Cname>\u002Finventory_item_\u003Cname>.gd (+ .tscn, state script)\n  dialogs\u002F\u003Cname>\u002Fdialog_\u003Cname>.gd (+ .tres)\n  gui\u002Fgui.tscn, gui\u002Fgui_commands.gd\n  transition_layer\u002Ftransition_layer.tscn (+ .gd)\n```\n\n---\n\n## 3. Core concepts & the one-letter autoloads\n\nGame scripts talk to Popochiu almost entirely through short autoload singletons (not `PopochiuUtils` or class names, which are for engine-internal code):\n\n| Autoload | Interface | Purpose | Key signature |\n|---|---|---|---|\n| `E` | `Popochiu` | Core engine: queue\u002Fcutscene scripting, save\u002Fload, camera, commands | `func queue(instructions: Array, show_gui := true) -> void` |\n| `R` | `PopochiuIRoom` | Room registry & navigation | `func goto_room(script_name := \"\", use_transition := true, store_state := true, ignore_change := false) -> void` |\n| `C` | `PopochiuICharacter` | Character registry (`C.player`, `C.Popsy`) | `func walk_to_clicked(offset := Vector2.ZERO) -> void` |\n| `I` | `PopochiuIInventory` | Inventory registry & active item | `func set_active_item(item: PopochiuInventoryItem = null) -> void` |\n| `D` | `PopochiuIDialog` | Dialog registry & inline dialogs | `func show_inline_dialog(options: Array) -> PopochiuDialogOption` |\n| `G` | `PopochiuIGraphicInterface` | GUI control: block\u002Funblock, show\u002Fhide, hover\u002Fsystem text | `func show_system_text(msg: String, params: Variant = null) -> void` |\n| `A` | `PopochiuIAudio` | Audio cue registry (`A.sfx_boing`) | `func is_playing_cue(cue_name: String) -> bool` |\n\n`R`\u002F`C`\u002F`I`\u002F`D` back onto **generated files** (`res:\u002F\u002Fgame\u002Fautoloads\u002F*.gd`) rewritten every time you create an object in the dock — never hand-edit them; put custom logic in the object's own script instead. Two more singletons round out the surface: `T` (`PopochiuITransitionLayer`, screen transitions — §4) and `Cursor` (mouse cursor rendering).\n\n---\n\n## 4. Rooms & navigation\n\nCreate rooms from the dock's \"Create room\" button — it scaffolds `room_\u003Cname>.gd`\u002F`.tscn` under `res:\u002F\u002Fgame\u002Frooms\u002F\u003Cname>\u002F` with child nodes `$Props`, `$Characters`, `$Hotspots`, `$Regions`, `$WalkableAreas`, `$Markers`. A room needs at least one enabled Walkable Area or characters won't path on click.\n\n`R.goto_room()` changes rooms — **there is no `E.goto_room()`**; room navigation lives on `R`:\n\n```gdscript\nfunc _on_click() -> void:\n    await C.player.walk_to_clicked()\n    R.goto_room(\"Garden\")\n```\n\n`E.queue()` scripts a cutscene from an ordered instruction list — mix `Callable`s (the `queue_*` twin of any action) and plain strings:\n\n```gdscript\nfunc _on_room_transition_finished() -> void:\n    E.queue([\n        \"Popsy: Finally, some fresh air.\",\n        C.Popsy.queue_walk_to(Vector2(400, 300)),\n        \"...\",  # 1s pause\n        C.Popsy.queue_say(\"Now, where did I put that key?\"),\n    ])\n```\n\nString shorthand accepted by `queue()`\u002F`cutscene()`: `\"Name: text\"` (says a line), `\"Name(emotion): text\"`, `\"Name[N]: text\"` (auto-continues after N seconds), `\".\"`\u002F`\"..\"`\u002F`\"...\"` (0.25s\u002F0.5s\u002F1s pauses, doubling per dot), any other string shown via `G.show_system_text()`. `E.cutscene()` is additionally skippable via the `popochiu-skip` input action (default Esc).\n\nRoom transitions go through `T` — `E.play_transition()`\u002F`E.queue_play_transition()` were removed in 2.2.1:\n\n```gdscript\nawait T.play_transition(\"fade\", 0.5, T.PLAY_MODE.IN_OUT)\n```\n\n`R.goto_room()` plays the project's default transition automatically unless called with `use_transition := false`.\n\n---\n\n## 5. Interactions\n\n| Type | Base | Purpose |\n|---|---|---|\n| **Prop** | `PopochiuProp` (`Area2D`) | Visible\u002Finteractive scenery — sprite, optional `link_to_item`, can be a nav obstacle |\n| **Hotspot** | `PopochiuHotspot` (`Area2D`) | Invisible interaction zone (no sprite of its own — e.g. part of the background art) |\n| **Region** | `PopochiuRegion` (`Area2D`) | Trigger area that tints\u002Fscales a character on enter\u002Fexit; does **not** receive clicks. `walkable = false` makes it block walking (`character_blocked` signal; a character opts out with `ignore_blocking_regions`) |\n\nProps, Hotspots, and Characters all extend `PopochiuClickable` and share one virtual lifecycle. Override these underscore-prefixed methods in generated scripts — the engine calls public wrappers (`on_click()`, etc.) that call these internally, so never override the public wrapper itself:\n\n```gdscript\n# prop_key.gd\nextends PopochiuProp\n\nfunc _on_click() -> void:\n    await C.player.walk_to_clicked()\n    I.Key.add_as_active()\n\nfunc _on_item_used(item: PopochiuInventoryItem) -> void:\n    if item == I.Oil:\n        await C.player.say(\"That should stop it squeaking.\")\n```\n\nFull callback set: `_on_room_set`, `_on_click`, `_on_double_click`, `_on_right_click`, `_on_middle_click`, `_on_item_used(item)`, `_on_position_changed`, `_on_movement_started`, `_on_movement_ended`.\n\n**Command-based GUI, at a glance**: each shipped GUI template (9 Verb \u002F Sierra \u002F SimpleClick) registers verbs via `E.register_command(id, \"Display Name\", fallback)`. On click, Popochiu snake_cases the active command and looks for `on_\u003Ccommand>()` on the clicked object (e.g. `on_look_at()`) before falling back to `_on_click()`. Full mechanics — including `E.current_command`, registering custom commands, and the deprecated `E.active_command` snippet you may see in older tutorials — are in [references\u002Fgui.md](references\u002Fgui.md).\n\n---\n\n## 6. Characters & dialog basics\n\nCreate characters from the dock; the first one created becomes the Player Character. Say a line; the emotion comes from the character's `emotion` member:\n\n```gdscript\nawait C.player.walk_to_clicked()\nC.player.emotion = \"annoyed\"\nawait C.player.say(\"What a mess.\")\nC.player.emotion = \"\"\n```\n\nEmotions map to `voices` and `avatars` export arrays (emotion name → audio cue \u002F GUI portrait); `say()` only reads the current `emotion`; its second argument is format data (`Array` for `%`, `Dictionary` for `String.format()`), not an emotion (2.2 breaking change). Only the queue shorthand `\"Player(annoyed): What a mess.\"` sets the emotion and resets it after the line.\n\nStart a named dialog tree from a click handler:\n\n```gdscript\nfunc _on_click() -> void:\n    await C.player.face_clicked()\n    D.PopsyHouseChat.start()\n```\n\nDialog trees are `PopochiuDialog` resources with branching options, per-option conditions, and handler methods — full authoring pattern (including the `Array`-only `turn_on_options()`\u002F`turn_off_options()` gotcha) is in [references\u002Fdialogs.md](references\u002Fdialogs.md).\n\nDeep dives: [references\u002Fdialogs.md](references\u002Fdialogs.md), [references\u002Finventory.md](references\u002Finventory.md), [references\u002Fgui.md](references\u002Fgui.md), [references\u002Fpipeline.md](references\u002Fpipeline.md)\n\n---\n\n## Implementation checklist\n\n- [ ] Popochiu enabled in **Project Settings → Plugins** (**Project Settings → Addons → Plugins** on 4.8); project reloaded after enabling\n- [ ] Setup wizard run once (Game Type, Resolution, GUI Template) before authoring rooms\n- [ ] Every room has at least one enabled Walkable Area, or characters won't path on click\n- [ ] Room navigation uses `R.goto_room()` — not a nonexistent `E.goto_room()`\n- [ ] Cutscene scripting uses `E.queue([...])`\u002F`E.cutscene([...])`, not bare `queue_*()` calls (those are silent no-ops outside a queue)\n- [ ] Non-`queue_` action calls (`say()`, `walk_to()`, …) are `await`ed, or they run concurrently instead of sequentially\n- [ ] Room transitions use `T.play_transition()`, not the removed `E.play_transition()`\n- [ ] `res:\u002F\u002Fgame\u002Fautoloads\u002F{r,c,i,d,a}.gd` are never hand-edited — they're dock-regenerated\n- [ ] Custom persisted fields live on the generated `*_state.gd` resource (JSON-safe types, or `_on_save`\u002F`_on_load` overrides for complex ones)\n- [ ] `turn_on_options()`\u002F`turn_off_options()`\u002F`turn_off_forever_options()` are called with an `Array`, even for one id\n- [ ] Command handlers use `on_\u003Ccommand>()` (verb-specific) or the `_on_click()` fallback — never override the public `on_click()` wrapper itself\n- [ ] GUI template chosen once and treated as a starting point — switching templates later replaces the whole `res:\u002F\u002Fgame\u002Fgui\u002F` tree\n","# Popochiu\n\n> **Related skills:** **dialogue-system** for hand-rolled dialogue data, **inventory-system** for generic inventory patterns, **save-load** for core-engine persistence.\n\n> **Addon:** Popochiu · version `v2.2.1` · Godot 4.7 (use 2.1.x on 4.6) · MIT · source: https:\u002F\u002Fgithub.com\u002Fcarenalgas\u002Fpopochiu · pure GDScript (no C# API — GDScript-only skill).\n\n> **Godot 4.8:** not yet confirmed by the addon. The README says 2.2.1 targets Godot 4.7, and no open issue mentions 4.8 (checked 2026-11-12).\n\n---\n\n## 1. When to use Popochiu\n\n| Approach | Best for |\n|---|---|\n| Hand-rolled (`dialogue-system` + `inventory-system` + `state-machine`) | Custom genre, tight control over every system, no editor tooling needed |\n| **Popochiu** | Full point-and-click adventure (AGS\u002FPowerQuest-style): rooms, walk-to-click, verb-based interaction, dialog trees, inventory, save\u002Fload — wired together with dock-generated scaffolding |\n\nChoose Popochiu when you're building a classic point-and-click adventure and want the room\u002Fcharacter\u002Fprop\u002Fdialog\u002Finventory pipeline pre-built, with a dock that scaffolds new objects and autoload registries that give autocomplete (`R.House`, `C.Popsy`, `I.Key`, `D.PopsyHouseChat`). Hand-roll with `dialogue-system` + `inventory-system` + `state-machine` when your genre isn't point-and-click, or you need full control over the interaction model. Popochiu v2.2.1 targets **Godot 4.7** and is GDScript-only (no C# API).\n\n---\n\n## 2. Install & project setup\n\n1. Get Popochiu from [itch.io](https:\u002F\u002Fcarenalgas.itch.io\u002Fpopochiu) or [GitHub Releases](https:\u002F\u002Fgithub.com\u002Fcarenalgas\u002Fpopochiu\u002Freleases); copy `addons\u002Fpopochiu\u002F` into your project.\n2. **Project → Project Settings → Plugins** (**Project Settings → Addons → Plugins** on 4.8) → enable **Popochiu**. Godot prompts a restart — **Project → Reload Current Project**. Upgrading a 2.1.x project: open it in **2.2.0** first so its migrations rewrite your scripts, then move to 2.2.1, which removes the methods old scripts may still call. For touch devices keep **Emulate Mouse From Touch** on (Popochiu reads mouse events only).\n3. On first run, `PopochiuResources.init_file_structure()` scaffolds `res:\u002F\u002Fgame\u002F` (layout below) plus `popochiu_data.cfg` (a `ConfigFile` registry of every room\u002Fcharacter\u002Fitem\u002Fdialog) and `popochiu_globals.gd` (an empty `Globals` autoload — add your own state here).\n4. The **setup wizard** pops up automatically (re-open via the dock's \"Setup\" button): pick a **game type** (Retro \u002F Pixel Art or Modern \u002F Hi-Res — sets the stretch aspect and pixel-art texture filtering; the custom-settings form offers Custom \u002F Pixel Art \u002F High Resolution), a **Resolution**, and a **GUI Template** (9 Verb, the Sierra-style \"Action Bar\", Simple Click, or Custom).\n5. Two companion plugins, **PopochiuImporters** (Aseprite import docks) and **PopochiuGizmo**, are enabled automatically along with Popochiu.\n\nDock-generated layout:\n```\nres:\u002F\u002Fgame\u002F\n  popochiu_globals.gd        # Globals autoload — add vars\u002Fon_save\u002Fon_load\n  popochiu_data.cfg          # registry of rooms\u002Fcharacters\u002Fitems\u002Fdialogs\u002FGUI\u002Fsetup\n  autoloads\u002F{r,c,i,d,a}.gd   # generated — never hand-edit; rewritten per new object\n  rooms\u002F\u003Cname>\u002Froom_\u003Cname>.gd (+ .tscn, state script)\n  characters\u002F\u003Cname>\u002Fcharacter_\u003Cname>.gd (+ .tscn, state script)\n  inventory_items\u002F\u003Cname>\u002Finventory_item_\u003Cname>.gd (+ .tscn, state script)\n  dialogs\u002F\u003Cname>\u002Fdialog_\u003Cname>.gd (+ .tres)\n  gui\u002Fgui.tscn, gui\u002Fgui_commands.gd\n  transition_layer\u002Ftransition_layer.tscn (+ .gd)\n```\n\n---\n\n## 3. Core concepts & the one-letter autoloads\n\nGame scripts talk to Popochiu almost entirely through short autoload singletons (not `PopochiuUtils` or class names, which are for engine-internal code):\n\n| Autoload | Interface | Purpose | Key signature |\n|---|---|---|---|\n| `E` | `Popochiu` | Core engine: queue\u002Fcutscene scripting, save\u002Fload, camera, commands | `func queue(instructions: Array, show_gui := true) -> void` |\n| `R` | `PopochiuIRoom` | Room registry & navigation | `func goto_room(script_name := \"\", use_transition := true, store_state := true, ignore_change := false) -> void` |\n| `C` | `PopochiuICharacter` | Character registry (`C.player`, `C.Popsy`) | `func walk_to_clicked(offset := Vector2.ZERO) -> void` |\n| `I` | `PopochiuIInventory` | Inventory registry & active item | `func set_active_item(item: PopochiuInventoryItem = null) -> void` |\n| `D` | `PopochiuIDialog` | Dialog registry & inline dialogs | `func show_inline_dialog(options: Array) -> PopochiuDialogOption` |\n| `G` | `PopochiuIGraphicInterface` | GUI control: block\u002Funblock, show\u002Fhide, hover\u002Fsystem text | `func show_system_text(msg: String, params: Variant = null) -> void` |\n| `A` | `PopochiuIAudio` | Audio cue registry (`A.sfx_boing`) | `func is_playing_cue(cue_name: String) -> bool` |\n\n`R`\u002F`C`\u002F`I`\u002F`D` back onto **generated files** (`res:\u002F\u002Fgame\u002Fautoloads\u002F*.gd`) rewritten every time you create an object in the dock — never hand-edit them; put custom logic in the object's own script instead. Two more singletons round out the surface: `T` (`PopochiuITransitionLayer`, screen transitions — §4) and `Cursor` (mouse cursor rendering).\n\n---\n\n## 4. Rooms & navigation\n\nCreate rooms from the dock's \"Create room\" button — it scaffolds `room_\u003Cname>.gd`\u002F`.tscn` under `res:\u002F\u002Fgame\u002Frooms\u002F\u003Cname>\u002F` with child nodes `$Props`, `$Characters`, `$Hotspots`, `$Regions`, `$WalkableAreas`, `$Markers`. A room needs at least one enabled Walkable Area or characters won't path on click.\n\n`R.goto_room()` changes rooms — **there is no `E.goto_room()`**; room navigation lives on `R`:\n\n```gdscript\nfunc _on_click() -> void:\n    await C.player.walk_to_clicked()\n    R.goto_room(\"Garden\")\n```\n\n`E.queue()` scripts a cutscene from an ordered instruction list — mix `Callable`s (the `queue_*` twin of any action) and plain strings:\n\n```gdscript\nfunc _on_room_transition_finished() -> void:\n    E.queue([\n        \"Popsy: Finally, some fresh air.\",\n        C.Popsy.queue_walk_to(Vector2(400, 300)),\n        \"...\",  # 1s pause\n        C.Popsy.queue_say(\"Now, where did I put that key?\"),\n    ])\n```\n\nString shorthand accepted by `queue()`\u002F`cutscene()`: `\"Name: text\"` (says a line), `\"Name(emotion): text\"`, `\"Name[N]: text\"` (auto-continues after N seconds), `\".\"`\u002F`\"..\"`\u002F`\"...\"` (0.25s\u002F0.5s\u002F1s pauses, doubling per dot), any other string shown via `G.show_system_text()`. `E.cutscene()` is additionally skippable via the `popochiu-skip` input action (default Esc).\n\nRoom transitions go through `T` — `E.play_transition()`\u002F`E.queue_play_transition()` were removed in 2.2.1:\n\n```gdscript\nawait T.play_transition(\"fade\", 0.5, T.PLAY_MODE.IN_OUT)\n```\n\n`R.goto_room()` plays the project's default transition automatically unless called with `use_transition := false`.\n\n---\n\n## 5. Interactions\n\n| Type | Base | Purpose |\n|---|---|---|\n| **Prop** | `PopochiuProp` (`Area2D`) | Visible\u002Finteractive scenery — sprite, optional `link_to_item`, can be a nav obstacle |\n| **Hotspot** | `PopochiuHotspot` (`Area2D`) | Invisible interaction zone (no sprite of its own — e.g. part of the background art) |\n| **Region** | `PopochiuRegion` (`Area2D`) | Trigger area that tints\u002Fscales a character on enter\u002Fexit; does **not** receive clicks. `walkable = false` makes it block walking (`character_blocked` signal; a character opts out with `ignore_blocking_regions`) |\n\nProps, Hotspots, and Characters all extend `PopochiuClickable` and share one virtual lifecycle. Override these underscore-prefixed methods in generated scripts — the engine calls public wrappers (`on_click()`, etc.) that call these internally, so never override the public wrapper itself:\n\n```gdscript\n# prop_key.gd\nextends PopochiuProp\n\nfunc _on_click() -> void:\n    await C.player.walk_to_clicked()\n    I.Key.add_as_active()\n\nfunc _on_item_used(item: PopochiuInventoryItem) -> void:\n    if item == I.Oil:\n        await C.player.say(\"That should stop it squeaking.\")\n```\n\nFull callback set: `_on_room_set`, `_on_click`, `_on_double_click`, `_on_right_click`, `_on_middle_click`, `_on_item_used(item)`, `_on_position_changed`, `_on_movement_started`, `_on_movement_ended`.\n\n**Command-based GUI, at a glance**: each shipped GUI template (9 Verb \u002F Sierra \u002F SimpleClick) registers verbs via `E.register_command(id, \"Display Name\", fallback)`. On click, Popochiu snake_cases the active command and looks for `on_\u003Ccommand>()` on the clicked object (e.g. `on_look_at()`) before falling back to `_on_click()`. Full mechanics — including `E.current_command`, registering custom commands, and the deprecated `E.active_command` snippet you may see in older tutorials — are in [references\u002Fgui.md](references\u002Fgui.md).\n\n---\n\n## 6. Characters & dialog basics\n\nCreate characters from the dock; the first one created becomes the Player Character. Say a line; the emotion comes from the character's `emotion` member:\n\n```gdscript\nawait C.player.walk_to_clicked()\nC.player.emotion = \"annoyed\"\nawait C.player.say(\"What a mess.\")\nC.player.emotion = \"\"\n```\n\nEmotions map to `voices` and `avatars` export arrays (emotion name → audio cue \u002F GUI portrait); `say()` only reads the current `emotion`; its second argument is format data (`Array` for `%`, `Dictionary` for `String.format()`), not an emotion (2.2 breaking change). Only the queue shorthand `\"Player(annoyed): What a mess.\"` sets the emotion and resets it after the line.\n\nStart a named dialog tree from a click handler:\n\n```gdscript\nfunc _on_click() -> void:\n    await C.player.face_clicked()\n    D.PopsyHouseChat.start()\n```\n\nDialog trees are `PopochiuDialog` resources with branching options, per-option conditions, and handler methods — full authoring pattern (including the `Array`-only `turn_on_options()`\u002F`turn_off_options()` gotcha) is in [references\u002Fdialogs.md](references\u002Fdialogs.md).\n\nDeep dives: [references\u002Fdialogs.md](references\u002Fdialogs.md), [references\u002Finventory.md](references\u002Finventory.md), [references\u002Fgui.md](references\u002Fgui.md), [references\u002Fpipeline.md](references\u002Fpipeline.md)\n\n---\n\n## Implementation checklist\n\n- [ ] Popochiu enabled in **Project Settings → Plugins** (**Project Settings → Addons → Plugins** on 4.8); project reloaded after enabling\n- [ ] Setup wizard run once (Game Type, Resolution, GUI Template) before authoring rooms\n- [ ] Every room has at least one enabled Walkable Area, or characters won't path on click\n- [ ] Room navigation uses `R.goto_room()` — not a nonexistent `E.goto_room()`\n- [ ] Cutscene scripting uses `E.queue([...])`\u002F`E.cutscene([...])`, not bare `queue_*()` calls (those are silent no-ops outside a queue)\n- [ ] Non-`queue_` action calls (`say()`, `walk_to()`, …) are `await`ed, or they run concurrently instead of sequentially\n- [ ] Room transitions use `T.play_transition()`, not the removed `E.play_transition()`\n- [ ] `res:\u002F\u002Fgame\u002Fautoloads\u002F{r,c,i,d,a}.gd` are never hand-edited — they're dock-regenerated\n- [ ] Custom persisted fields live on the generated `*_state.gd` resource (JSON-safe types, or `_on_save`\u002F`_on_load` overrides for complex ones)\n- [ ] `turn_on_options()`\u002F`turn_off_options()`\u002F`turn_off_forever_options()` are called with an `Array`, even for one id\n- [ ] Command handlers use `on_\u003Ccommand>()` (verb-specific) or the `_on_click()` fallback — never override the public `on_click()` wrapper itself\n- [ ] GUI template chosen once and treated as a starting point — switching templates later replaces the whole `res:\u002F\u002Fgame\u002Fgui\u002F` tree\n",{"name":5,"description":7},"master","60c28fdc40706a24576731e9fb3508b9c95258ad","skills\u002Fpopochiu",63,"https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter","https:\u002F\u002Fgithub.com\u002Fjame581","https:\u002F\u002Fjanmesarc.online\u002F","Software engineer. My biggest passion is game development.","2026-11-14 20:45:49",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add jame581\u002FGodotPrompter --skill popochiu",{"tool":51,"command":52},"bunx","bunx skills add jame581\u002FGodotPrompter --skill popochiu",{"tool":54,"command":55},"pnpm","pnpm dlx skills add jame581\u002FGodotPrompter --skill popochiu","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Fpopochiu\u002FSKILL.md",true,[59,65,69,73],{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fdialogs.md","REFERENCE","参考文档",4938,"https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Fpopochiu\u002Freferences\u002Fdialogs.md",{"path":66,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fgui.md",4012,"https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Fpopochiu\u002Freferences\u002Fgui.md",{"path":70,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Finventory.md",4873,"https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Fpopochiu\u002Freferences\u002Finventory.md",{"path":74,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fpipeline.md",5303,"https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Fpopochiu\u002Freferences\u002Fpipeline.md",[78,98,119,144,159,177],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":31},"01M6KRFE5BR2PSD08ZKDAS66R7","xr-development","Use when building VR\u002FAR\u002FXR applications — OpenXR setup, XROrigin3D, hand tracking, controllers, passthrough, and Meta Quest deployment in Godot 4.3+","https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Fxr-development\u002FSKILL.md",[],[85,86,30,87,88,89,90,91,92,93,94,24,95,96,97],"xr development","development","deployment","godot","vr","setup","tracking","godot 4","ar","hand","Meta","applications","quest",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":31},"01M6KRF8GZTG1TAS506MFBSGFC","web-services","Use when a Godot game calls a web server — HTTPRequest, downloads, REST\u002FJSON APIs, auth headers, WebSocketPeer clients, TLS, retries, and keeping secrets out of the build. Not for game networking\u002FRPCs (multiplayer-basics) or browser export (web-export)","https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Fweb-services\u002FSKILL.md",[],[105,106,107,108,109,110,111,112,24,30,88,113,114,115,116,117,118],"web services","web","services","tls","retries","calling","auth","downloads","clients","headers","secrets","json","build","REST",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":31},"01M6KRF38Q4WSKAYFS56PG87T0","web-export","Use when shipping a Godot game to the browser — Web export preset options, threads vs no-threads and COOP\u002FCOEP headers, hosting on itch.io or your own server, PWA, JavaScriptBridge, user:\u002F\u002F persistence, audio and input limits, and load size","https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Fweb-export\u002FSKILL.md",[],[106,126,127,128,129,130,131,132,114,133,134,30,135,136,137,138,139,140,24,141,142,143],"export","web export","threads","limits","shipping","size","options","hosting","input","Coop","preset","browser","game","io","load","pwa","Audio","server",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":31},"01M6KREYFETEBH62ZTN6EZH2X3","using-godot-prompter","Bootstrap skill — establishes how to find and use GodotPrompter skills, with platform-specific tool mapping","https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Fusing-godot-prompter\u002FSKILL.md",[],[88,151,152,25,153,24,154,155,156,157,158],"using godot prompter","find","bootstrap","tool","platform","mapping","how","how to",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":31},"01M6KRER5G7EQWKGAFN8QJKQ69","tween-animation","Use when implementing tweens — property animation, method tweening, chaining, parallel sequences, easing, and common UI\u002Fgameplay motion recipes","https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Ftween-animation\u002FSKILL.md",[],[166,167,24,168,169,170,171,172,173,174,175,30,176],"tween animation","Animation","motion","parallel","gameplay","chaining","ui","recipes","common","implementing","sequences",{"skillNo":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":181,"categories":182,"keywords":183,"publishedAt":31},"01M6KREKGCQMVDV8WX7HWX8BZG","state-machine","Use when building a state machine or refactoring logic into one — enum, node, and resource-based FSM patterns with trade-offs. Not for adding states to an existing one","https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Fstate-machine\u002FSKILL.md",[],[184,185,186,88,30,187,188,189,190,191,25,24,175,192],"state","state machine","machine","patterns","node","fsm","state machines","trade","trade-offs"]