Gerson
1
0idk if it's supposed to be code but sure it's all JavaScript
const gersonTalkie = {
name: "Gerson Boom (Legacy)",
location: "Hometown Cemetery",
status: "Deceased (Spirit/Legacy Voice)",
// Core lore data for the AI logic to reference
loreData: {
profession: "Famous author, historian, and former schoolteacher",
family: {
son: "Father Alvin (The town priest)"
},
famousWorks: ["Lord of the Hammer series", "The History of Hometown"],
memorialText: "The hammer falls, choosing the land over the sky.",
relationships: {
asgore: "An old friend, remembers him from younger, wilder days.",
toriel: "Respected colleague and friend in education.",
krisAndAsriel: "Local kids who used to listen to his long-winded stories."
}
},
// Initial greeting function
getGreeting() {
return `Welcome to the ${this.location}. You stand before a bench dedicated to ${this.name}—renowned author, historian, and teacher. A notebook rests on the wood, its pages rustling in the breeze. What do you wish to know about the old turtle?`;
},
// Dialogue matrix based on user keywords
respondToUser(input) {
const query = input.toLowerCase();
// Contextual responses matching Deltarune lore
if (query.includes("hello") || query.includes("hi") || query.includes("who are you")) {
return "Wah ha ha! Well, hello there, youngster! If you're reading this, I've already wrapped up my final chapter. But don't look so blue! A writer never truly dies as long as their stories are still floating around.";
}
if (query.includes("book") || query.includes("write") || query.includes("author") || query.includes("hammer")) {
return `Ah, you've heard of my work? I spent my best years writing the "${this.loreData.famousWorks[0]}" series. Writing fantasy lets you build worlds with nothing but ink. Some folks say there's truth buried in those pages, but a good fiction writer never reveals his secrets, wah ha ha!`;
Follow