I'm not very experienced with web languages, but I know a little bit of JavaScript. I'm working on creating a text-based rpg in HTML and need a way to modify dialogues for main story or quest dialogues and events without editing the code every time.
I know that if it's just to work with plain text, it wouldn't be too difficult. But I want to include a way to associate what type of monster to fight with specific quests or have specific rewards for them.
Is there a way to do this with JavaScript? What is the best way to approach this problem?