Conversation Keys
Conversations can be given keys to uniquely identify them. Think of them as the name of the conversation. These keys allow the writer to refer back to specific conversations later.
{
"Name": "Robin",
"Conversations":
[
{
"Key": "thursday"
"Statement": [ "It's thursday" ]
}
]
}
The keys are unique to the character, so two different characters could both have a conversation with the key of "thursday". However, each key must be unique to the character. Each character should have at least one conversation with a key, the introduction.
{
"Name": "Robin",
"Conversations":
[
{
"Key": "Introduction",
"Statement": [
"Hello! I'm Robin.",
"If you need anything build I'm your lady!"
]
},
{
"Statement": [ "Nice to see you!" ]
}
]
}
The key "Introduction" on a conversation ensures that this is the very first conversation that a player has with a character. If the above file was used then Robin woudl say "Hello! I'm Robin." the first time you met her and "Nice to see you!" every other time.
The real power of keys becomes apparent with converation requirements which are discussed on another page.