refactor: Simplify NPC dialogue structure and remove unnecessary speaker tags for improved readability

This commit is contained in:
Z. Cliffe Schreuders
2025-11-24 10:20:05 +00:00
parent 2c8757de3e
commit 7efb758087
2 changed files with 15 additions and 43 deletions

View File

@@ -1,64 +1,36 @@
// Test Ink script - Multi-character conversation with camera focus
// Test Ink script - Multi-character conversation
// Demonstrates player, Front NPC (test_npc_front), and Back NPC (test_npc_back) in dialogue
// Uses the new line-prefix format for simpler, more readable dialogue
VAR conversation_started = false
VAR player_joined_organization = false
=== hub ===
# speaker:npc:test_npc_back
Woop! Welcome! This is a group conversation test. Let me introduce you to my colleague.
+ [Listen in on the introduction] -> group_meeting
test_npc_back: Woop! Welcome! This is a group conversation test. Let me introduce you to my colleague.
=== group_meeting ===
# speaker:npc:test_npc_back
Agent, meet my colleague from the back office. BACK
-> colleague_introduction
test_npc_back: Agent, meet my colleague from the lab. They handle all the backend systems.
=== colleague_introduction ===
# speaker:npc:test_npc_front
Nice to meet you! I'm the lead technician here. FRONT.
-> player_question
test_npc_front: Nice to meet you! I'm the lead technician here.
=== player_question ===
# speaker:player
What kind of work do you both do here?
-> front_npc_explains
Player: What kind of work do you both do here?
=== front_npc_explains ===
# speaker:npc:test_npc_back
Well, I handle the front desk operations and guest interactions. But my colleague here...
-> colleague_responds
test_npc_back: Well, I handle the front operations and guest interactions. But my colleague here...
=== colleague_responds ===
# speaker:npc:test_npc_front
I manage all the backend systems and security infrastructure. Together, we keep everything running smoothly.
-> player_follow_up
test_npc_front: I manage all the backend systems and security infrastructure. Together, we keep everything running smoothly.
=== player_follow_up ===
# speaker:player
That sounds like a well-coordinated operation!
-> front_npc_agrees
Player: That sounds like a well-coordinated operation!
=== front_npc_agrees ===
# speaker:npc:test_npc_back
It really is! We've been working together for several years now. Communication is key.
-> colleague_adds
test_npc_back: It really is! We've been working together for several years now. Communication is key.
=== colleague_adds ===
# speaker:npc:test_npc_front
Exactly. And we're always looking for talented people like you to join our team.
-> player_closing
test_npc_front: Exactly. And we're always looking for talented people like you to join our team.
=== player_closing ===
# speaker:player
Player:
* [I'd love to join your organization!]
~ player_joined_organization = true
# speaker:npc:test_npc_back
Excellent! Welcome aboard. We'll get you set up with everything you need.
test_npc_back: Excellent! Welcome aboard. We'll get you set up with everything you need.
#exit_conversation
-> hub
* [I need to think about it.]
# speaker:npc:test_npc_back
That's understandable. Take your time deciding.
test_npc_back: That's understandable. Take your time deciding.
#exit_conversation
-> hub

View File

@@ -1 +1 @@
{"inkVersion":21,"root":[[["done",{"#n":"g-0"}],null],"done",{"hub":[["#","^speaker:npc:test_npc_back","/#","^Woop! Welcome! This is a group conversation test. Let me introduce you to my colleague.","\n","ev","str","^Listen in on the introduction","/str","/ev",{"*":".^.c-0","flg":4},{"c-0":["^ ",{"->":"group_meeting"},"\n",null]}],null],"group_meeting":["#","^speaker:npc:test_npc_back","/#","^Agent, meet my colleague from the back office. BACK","\n",{"->":"colleague_introduction"},null],"colleague_introduction":["#","^speaker:npc:test_npc_front","/#","^Nice to meet you! I'm the lead technician here. FRONT.","\n",{"->":"player_question"},null],"player_question":["#","^speaker:player","/#","^What kind of work do you both do here?","\n",{"->":"front_npc_explains"},null],"front_npc_explains":["#","^speaker:npc:test_npc_back","/#","^Well, I handle the front desk operations and guest interactions. But my colleague here...","\n",{"->":"colleague_responds"},null],"colleague_responds":["#","^speaker:npc:test_npc_front","/#","^I manage all the backend systems and security infrastructure. Together, we keep everything running smoothly.","\n",{"->":"player_follow_up"},null],"player_follow_up":["#","^speaker:player","/#","^That sounds like a well-coordinated operation!","\n",{"->":"front_npc_agrees"},null],"front_npc_agrees":["#","^speaker:npc:test_npc_back","/#","^It really is! We've been working together for several years now. Communication is key.","\n",{"->":"colleague_adds"},null],"colleague_adds":["#","^speaker:npc:test_npc_front","/#","^Exactly. And we're always looking for talented people like you to join our team.","\n",{"->":"player_closing"},null],"player_closing":[["#","^speaker:player","/#","ev","str","^I'd love to join your organization!","/str","/ev",{"*":".^.c-0","flg":20},"ev","str","^I need to think about it.","/str","/ev",{"*":".^.c-1","flg":20},{"c-0":["\n","ev",true,"/ev",{"VAR=":"player_joined_organization","re":true},"#","^speaker:npc:test_npc_back","/#","^Excellent! Welcome aboard. We'll get you set up with everything you need.","\n","#","^exit_conversation","/#",{"->":"hub"},{"#f":5}],"c-1":["\n","#","^speaker:npc:test_npc_back","/#","^That's understandable. Take your time deciding.","\n","#","^exit_conversation","/#",{"->":"hub"},{"#f":5}]}],null],"global decl":["ev",false,{"VAR=":"conversation_started"},false,{"VAR=":"player_joined_organization"},"/ev","end",null]}],"listDefs":{}}
{"inkVersion":21,"root":[[["done",{"#n":"g-0"}],null],"done",{"hub":[["^test_npc_back: Woop! Welcome! This is a group conversation test. Let me introduce you to my colleague.","\n","^test_npc_back: Agent, meet my colleague from the lab. They handle all the backend systems.","\n","^test_npc_front: Nice to meet you! I'm the lead technician here.","\n","^Player: What kind of work do you both do here?","\n","^test_npc_back: Well, I handle the front operations and guest interactions. But my colleague here...","\n","^test_npc_front: I manage all the backend systems and security infrastructure. Together, we keep everything running smoothly.","\n","^Player: That sounds like a well-coordinated operation!","\n","^test_npc_back: It really is! We've been working together for several years now. Communication is key.","\n","^test_npc_front: Exactly. And we're always looking for talented people like you to join our team.","\n","^Player:","\n","ev","str","^I'd love to join your organization!","/str","/ev",{"*":".^.c-0","flg":20},"ev","str","^I need to think about it.","/str","/ev",{"*":".^.c-1","flg":20},{"c-0":["\n","ev",true,"/ev",{"VAR=":"player_joined_organization","re":true},"^test_npc_back: Excellent! Welcome aboard. We'll get you set up with everything you need.","\n","#","^exit_conversation","/#",{"->":"hub"},{"#f":5}],"c-1":["\n","^test_npc_back: That's understandable. Take your time deciding.","\n","#","^exit_conversation","/#",{"->":"hub"},{"#f":5}]}],null],"global decl":["ev",false,{"VAR=":"conversation_started"},false,{"VAR=":"player_joined_organization"},"/ev","end",null]}],"listDefs":{}}