pokerogue/src/data/dialogue.ts

392 lines
17 KiB
TypeScript
Raw Normal View History

import { trainerConfigs } from "./trainer-config";
import { TrainerType } from "./enums/trainer-type";
import { BattleSpec } from "../enums/battle-spec";
export interface TrainerTypeMessages {
encounter?: string | string[],
victory?: string | string[],
defeat?: string | string[]
}
export interface TrainerTypeDialogue {
[key: integer]: TrainerTypeMessages | [ TrainerTypeMessages, TrainerTypeMessages ]
}
export const trainerTypeDialogue = {
[TrainerType.YOUNGSTER]: [
{
encounter: [
`Hey, wanna battle?`,
`Are you a new trainer too?`,
`Hey, I haven't seen you before. Let's battle!`
],
victory: [
`Wow! You're strong!`,
`I didn't stand a chance, huh.`,
`I'll find you again when I'm older and beat you!`
]
},
{
encounter: [
`Let's have a battle, shall we?`,
`You look like a new trainer. Let's have a battle!`,
`I don't recognize you. How about a battle?`
],
victory: [
`That was impressive! I've got a lot to learn.`,
`I didn't think you'd beat me that bad…`,
`I hope we get to have a rematch some day.`
]
}
],
[TrainerType.ROXANNE]: {
encounter: [
`Would you kindly demonstrate how you battle?`,
`You can learn many things by battling many trainers.`,
`Oh, you caught me strategizing.\nWould you like to battle?`
],
victory: [
`Oh, I appear to have lost.\nI understand.`,
`It seems that I still have so much more to learn when it comes to battle.`,
`I'll take what I learned here today to heart.`
],
defeat: [
`I have learned many things from our battle.\nI hope you have too.`,
`I look forward to battling you again.\nI hope you'll use what you've learned here.`,
`I won due to everything I have learned.`
]
},
[TrainerType.BRAWLY]: {
encounter: [
`Oh man, a challenger!\nLet's see what you can do!`,
`You seem like a big splash.\nLet's battle!`,
`Time to create a storm!\nLet's go!`
],
victory: [
`Oh woah, you've washed me out!`,
`You surfed my wave and crashed me down!`,
`I feel like I'm lost in Granite Cave!`
],
defeat: [
`Haha, I surfed the big wave!\nChallenge me again sometime.`,
`Surf with me again some time!`,
`Just like the tides come in and out, I hope you return to challenge me again.`
]
},
[TrainerType.WATTSON]: {
encounter: [
`Time to get shocked!\nWahahahaha!`,
`I'll make sparks fly!\nWahahahaha!`,
`I hope you brought Paralyz Heal!\nWahahahaha!`
],
victory: [
`Seems like I'm out of charge!\nWahahahaha!`,
`You've completely grounded me!\nWahahahaha!`,
`Thanks for the thrill!\nWahahahaha!`
],
defeat: [
`Recharge your batteries and challenge me again sometime!\nWahahahaha!`,
`I hope you found our battle electrifying!\nWahahahaha!`,
`Aren't you shocked I won?\nWahahahaha!`
]
},
[TrainerType.FLANNERY]: {
encounter: [
`Nice to meet you! Wait, no…\nI will crush you!`,
`I've only been a leader for a little while, but I'll smoke you!`,
`It's time to demonstrate the moves my grandfather has taught me! Let's battle!`
],
victory: [
`You remind me of my grandfather…\nNo wonder I lost.`,
`Am I trying too hard?\nI should relax, can't get too heated.`,
`Losing isn't going to smother me out.\nTime to reignite training!`
],
defeat: [
`I hope I've made my grandfather proud…\nLet's battle again some time.`,
`I…I can't believe I won!\nDoing things my way worked!`,
`Let's exchange burning hot moves again soon!`
]
},
[TrainerType.NORMAN]: {
encounter: [
`I'm surprised you managed to get here.\nLet's battle.`,
`I'll do everything in my power as a Gym Leader to win.\nLet's go!`,
`You better give this your all.\nIt's time to battle!`
],
victory: [
`I lost to you…?\nRules are rules, though.`,
`Was moving from Olivine a mistake…?`,
`I can't believe it.\nThat was a great match.`
],
defeat: [
`We both tried our best.\nI hope we can battle again soon.`,
`You should try challenging my kid instead.\nYou might learn something!`,
`Thank you for the excellent battle.\nBetter luck next time.`
]
},
[TrainerType.WINONA]: {
encounter: [
`I've been soaring the skies looking for prey…\nAnd you're my target!`,
`No matter how our battle is, my Flying Pokémon and I will triumph with grace. Let's battle!`,
`I hope you aren't scared of heights.\nLet's ascend!`
],
victory: [
`You're the first Trainer I've seen with more grace than I.\nExcellently played.`,
`Oh, my Flying Pokémon have plummeted!\nVery well.`,
`Though I may have fallen, my Pokémon will continue to fly!`
],
defeat: [
`My Flying Pokémon and I will forever dance elegantly!`,
`I hope you enjoyed our show.\nOur graceful dance is finished.`,
`Won't you come see our elegant choreography again?`
]
},
[TrainerType.TATE]: {
encounter: [
`Hehehe…\nWere you surprised to see me without my sister?`,
`I can see what you're thinking…\nYou want to battle!`,
`How can you defeat someone…\nWho knows your every move?`
],
victory: [
`It can't be helped…\nI miss Liza…`,
`Your bond with your Pokémon was stronger than mine.`,
`If I were with Liza, we would have won.\nWe can finish each other's thoughts!`
],
defeat: [
`My Pokémon and I are superior!`,
`If you can't even defeat me, you'll never be able to defeat Liza either.`,
`It's all thanks to my strict training with Liza.\nI can make myself one with Pokémon.`
]
},
[TrainerType.LIZA]: {
encounter: [
`Fufufu…\nWere you surprised to see me without my brother?`,
`I can determine what you desire…\nYou want to battle, don't you?`,
`How can you defeat someone…\nWho's one with their Pokémon?`
],
victory: [
`It can't be helped…\nI miss Tate…`,
`Your bond with your Pokémon…\nIt's stronger than mine.`,
`If I were with Tate, we would have won.\nWe can finish each other's sentences!`
],
defeat: [
`My Pokémon and I are victorious.`,
`If you can't even defeat me, you'll never be able to defeat Tate either.`,
`It's all thanks to my strict training with Tate.\nI can synchronize myself with my Pokémon.`
]
},
[TrainerType.JUAN]: {
encounter: [
`Now's not the time to act coy.\nLet's battle!`,
`Ahahaha, You'll be witness to my artistry with Water Pokémon!`,
`A typhoon approaches!\nWill you be able to test me?`
],
victory: [
`You may be a genius who can take on Wallace!`,
`I focused on elegance while you trained.\nIt's only natural that you defeated me.`,
`Ahahaha!\nVery well, You have won this time.`
],
defeat: [
`My Pokémon and I have sculpted an illusion of Water and come out victorious.`,
`Ahahaha, I have won, and you have lost.`,
`Shall I loan you my outfit? It may help you battle!\nAhahaha, I jest!`
]
},
2024-02-06 21:15:35 +00:00
[TrainerType.RIVAL]: [
{
encounter: [
2024-02-14 19:41:39 +00:00
`Hey, I was looking for you! I knew you were eager to get going but I expected at least a goodbye…
$So you're really pursuing your dream after all?\n I almost can't believe it.
2024-02-06 21:15:35 +00:00
$Since we're here, how about a battle?\nAfter all, I want to make sure you're ready.
$Don't hold back, I want you to give me everything you've got!`
],
victory: [
2024-02-14 19:41:39 +00:00
`Wow… You actually cleaned me out.\nAre you actually a beginner?
$Maybe it was a bit of luck but\nWho knows you might just be able to go all the way.
2024-02-06 21:15:35 +00:00
$By the way, the professor asked me to give you these items. They look pretty cool.
2024-02-14 19:41:39 +00:00
$Good luck out there!`
2024-02-06 21:15:35 +00:00
]
},
{
encounter: [
`There you are! I've been looking everywhere for you!\nDid you forget to say goodbye to your best friend?
2024-02-14 19:41:39 +00:00
$You're going after your dream, huh?\nThat day is really today isn't it
2024-02-06 21:15:35 +00:00
$Anyway, I'll forgive you for forgetting me, but on one condition. You have to battle me!
2024-02-14 19:41:39 +00:00
$Give it your all! Wouldn't want your adventure to be over before it started, right?`
2024-02-06 21:15:35 +00:00
],
victory: [
2024-02-14 19:41:39 +00:00
`You just started and you're already this strong?!\nYou totally cheated, didn't you?
$Just kidding! I lost fair and square I have a feeling you're going to do really well out there.
2024-02-06 21:15:35 +00:00
$By the way, the professor wanted me to give you some items. Hopefully they're helpful!
$Do your best like always! I believe in you!`
]
}
],
[TrainerType.RIVAL_2]: [
{
encounter: [
2024-02-14 19:41:39 +00:00
`Hey, you're here too?\nStill a perfect record, huh…?
2024-02-06 21:15:35 +00:00
$I know it kind of looks like I followed you here, but that's mostly not true.
$Honestly though, I've been itching for a rematch since you beat me back at home.
$I've been doing a lot of my own training so I'll definitely put up a fight this time.
2024-02-14 19:41:39 +00:00
$Don't hold back, just like before!\nLet's go!`
2024-02-06 21:15:35 +00:00
],
victory: [
`Oh. I guess I was overconfident.`
]
},
{
encounter: [
2024-02-14 19:41:39 +00:00
`Oh, fancy meeting you here. Looks like you're still undefeated. Huh… Not bad!
$I know what you're thinking, and no, I wasn't creeping on you. I just happened to be in the area.
2024-02-06 21:15:35 +00:00
$I'm happy for you but I just want to let you know that it's OK to lose sometimes.
$We learn from our mistakes, often more than we would if we kept succeeding.
$In any case, I've been training hard for our rematch, so you'd better give it your all!`
],
victory: [
`I… wasn't supposed to lose that time…`
]
}
],
[TrainerType.RIVAL_3]: [
{
encounter: [
2024-02-14 19:41:39 +00:00
`Hey, look who it is! It's been a while.\nYou're… still undefeated? Huh.
$Things have been kind of strange.\nIt's not the same back home without you.
2024-02-06 21:15:35 +00:00
$I know it's selfish, but I need to get this off my chest.\nI think you're in over your head here.
$Never losing once is just unrealistic.\nWe need to lose sometimes in order to grow.
$You've had a great run but there's still so much ahead, and it only gets harder. Are you prepared for that?
$If so, prove it to me.`
],
victory: [
2024-02-14 19:41:39 +00:00
`This is ridiculous… I've hardly stopped training…\nHow are we still so far apart?`
2024-02-06 21:15:35 +00:00
]
},
{
encounter: [
`Long time no see! Still haven't lost, huh.\nYou're starting to get on my nerves. Just kidding!
2024-02-14 19:41:39 +00:00
$But really, don't you miss home by now? Or… me?\nI… I mean, we've really missed you.
$I support you in your dream and everything, but the reality is you're going to lose sooner or later.
2024-02-06 21:15:35 +00:00
$And when you do, I'll be there for you like always.\nNow, let me show you how strong I've become!`
],
victory: [
2024-02-14 19:41:39 +00:00
`After all that… it wasn't enough…?\nYou'll never come back at this rate…`
2024-02-06 21:15:35 +00:00
]
}
],
[TrainerType.RIVAL_4]: [
{
encounter: [
`Hey.
2024-02-14 19:41:39 +00:00
$I won't mince words or pleasantries with you.\nI'm here to win, plain and simple.
2024-02-06 21:15:35 +00:00
$I've learned to maximize my potential by putting all my time into training.
$You get a lot of extra time when you cut out the unnecessary sleep and social interaction.
$None of that matters anymore, not until I win.
2024-02-14 19:41:39 +00:00
$I've even reached the point where I don't lose anymore.\nI suppose your philosophy wasn't so wrong after all.
$Losing is for the weak, and I'm not weak anymore.
2024-02-06 21:15:35 +00:00
$Prepare yourself.`
],
victory: [
2024-02-14 19:41:39 +00:00
`What…@d{64} What are you?`
2024-02-06 21:15:35 +00:00
]
},
{
encounter: [
2024-02-14 19:41:39 +00:00
`It's me! You didn't forget about me again… did you?
$You should be proud of how far you made it. Congrats!\nBut it looks like it's the end of your journey.
2024-02-06 21:15:35 +00:00
$You've awoken something in me I never knew was there.\nIt seems like all I do now is train.
$I hardly even eat or sleep now, I just train my Pokémon all day, getting stronger every time.
2024-02-14 19:41:39 +00:00
$In fact, I hardly recognize myself.
2024-02-06 21:15:35 +00:00
$And now, I've finally reached peak performance.\nI don't think anyone could beat me now.
$And you know what? It's all because of you.\nI don't know whether to thank you or hate you.
$Prepare yourself.`
],
victory: [
2024-02-14 19:41:39 +00:00
`What…@d{64} What are you?`
2024-02-06 21:15:35 +00:00
]
}
],
[TrainerType.RIVAL_5]: {
encounter: [ `` ],
victory: [ '…' ]
},
2024-02-14 19:41:39 +00:00
[TrainerType.RIVAL_6]: [
{
encounter: [
`We meet again.
$I've had some time to reflect on all this.\nThere's a reason this all seems so strange.
$Your dream, my drive to beat you\nIt's all a part of something greater.
$This isn't about me, or about you… This is about the world, and it's my purpose to push you to your limits.
$Whether I've fulfilled that purpose I can't say, but I've done everything in my power.
$This place we ended up in is terrifying Yet somehow I feel unphased, like I've been here before.
$You feel the same, don't you?
$and it's like something here is speaking to me.\nThis is all the world's known for a long time now.
$Those times we cherished together that seem so recent are nothing but a distant memory.
$Who can say whether they were ever even real in the first place.
$You need to keep pushing, because if you don't, it will never end. You're the only one who can do this.
$I hardly know what any of this means, I just know that it's true.
$If you can't defeat me here and now, you won't stand a chance.`
],
victory: [
`It looks like my work is done here.
$I want you to promise me one thing.\nAfter you heal the world, please come home.`
]
},
{
encounter: [
`So it's just us again.
$You know, I keep going around and around in my head
$There's something to all this, why everything seems so strange now
$You have your dream, and I have this ambition in me
$I just can't help but feel there's a greater purpose to all this, to what we're doing, you and I.
$I think I'm supposed to push you to your limits.
$I'm not sure if I've been doing a good job at that, but I've tried my best up to now.
$It's something about this strange and dreadful place Everything seems so clear
$This is all the world's known for a long time now.
$It's like I can barely remember the memories we cherished together.
$Were they even real? They seem so far away now
$You need to keep pushing, because if you don't, it will never end. You're the only one who can do this.
$I don't know what all this means… but I feel it's true.
$If you can't defeat me here and now, you won't stand a chance.`
],
victory: [
`I… I think I fulfilled my purpose…
$Promise me After you heal the world Please come home safe.
$Thank you.`
]
}
]
};
export const battleSpecDialogue = {
[BattleSpec.FINAL_BOSS]: {
encounter: `It appears the time has finally come once again.\nYou know why you have come here, do you not?
$You were drawn here, because you have been here before.\nCountless times.
$Though, perhaps it can be counted.\nTo be precise, this is in fact your 5,643,853rd cycle.
$Each cycle your mind reverts to its former state.\nEven so, somehow, remnants of your former selves remain.
$Until now you have yet to succeed, but I sense a different presence in you this time.\n
$You are the only one here, though it is as if there is another.
$Will you finally prove a formidable challenge to me?\nThe challenge I have longed for for millennia?
$We begin.`,
firstStageWin: `I see. The presence I felt was indeed real.\nIt appears I no longer need to hold back.
$Do not disappoint me.`,
secondStageWin: `…Magnificent.`
}
};
export function initTrainerTypeDialogue() {
const trainerTypes = Object.keys(trainerTypeDialogue).map(t => parseInt(t) as TrainerType);
for (let trainerType of trainerTypes) {
const messages = trainerTypeDialogue[trainerType];
const messageTypes = [ 'encounter', 'victory', 'defeat' ];
for (let messageType of messageTypes) {
if (Array.isArray(messages)) {
if (messages[0][messageType])
trainerConfigs[trainerType][`${messageType}Messages`] = messages[0][messageType];
if (messages.length > 1)
trainerConfigs[trainerType][`female${messageType.slice(0, 1).toUpperCase()}${messageType.slice(1)}Messages`] = messages[1][messageType];
} else
trainerConfigs[trainerType][`${messageType}Messages`] = messages[messageType];
}
}
}