Refactor Equipment Officer NPC dialogue and inventory interactions

- Streamlined conversation flow for the Equipment Officer NPC, enhancing player engagement with clearer options for item inquiries.
- Added a new option to show specialist items, improving inventory management.
- Removed redundant trust level increments to simplify interaction logic.
- Updated exit conversation handling for a more polished user experience.
This commit is contained in:
Z. Cliffe Schreuders
2025-11-08 12:31:31 +00:00
parent 7be8b67f27
commit c782a98e7e

View File

@@ -2,29 +2,28 @@
// NPC that demonstrates container-based item giving
// Shows all held items through the container minigame UI
VAR trust_level = 0
VAR has_lockpick = false
VAR has_workstation = false
VAR has_keycard = false
=== start ===
# speaker:npc
Welcome to equipment supply. I have various tools available.
What can I help you with?
~ trust_level = trust_level + 1
-> hub
=== hub ===
{trust_level >= 1:
* [Show me what you have available]
-> show_inventory
}
* [Tell me about your equipment]
* [Tell me about your equipment] I'd like to know more.
-> about_equipment
* [I'll come back later]
-> goodbye
+ [Show me what you have available]
-> show_inventory
* [Show me your specialist items]
-> show_inventory_filtered
+ [I'll come back later] #exit_conversation
# speaker:npc
Come back when you need something!
-> hub
=== show_inventory ===
# speaker:npc
@@ -42,14 +41,6 @@ Let me know if you need access devices too!
=== about_equipment ===
We supply equipment for fieldwork - lockpicking kits for access, workstations for analysis, and keycards for security. All essential tools for the job.
~ trust_level = trust_level + 1
+ [Show me what you have]
-> show_inventory
+ [Never mind]
-> hub
-> hub
=== goodbye ===
# speaker:npc
Come back when you need something!
-> END