Managing an NPC with A LOT of conversations (RPG MakeMV)

Would it be more organized to just have an NPC with lots of event pages staying in one place, or have the NPC move slightly throughout the map as the game progresses with a few pages of events instead? Basically, this NPC is giving a lot of the quests to the player and will have lots of different dialogue based on when quests are completed, etc.
I can give you my approach, but you need to know very basics of JavaScript and how to use it in RPG Maker MV.

Here is example of random NPC talk from my project. It's single liners, but you should get the idea:
Code:
var msg = [
    ['How is buisness doing?','Well, sometimes good, sometimes bad.'],
    ['Is forging steel difficult?','It depends of kind of steel, there are types that easy to forge, some other requires time and patience'],
    ['How long you run this place?','This is family legacy started by my grand grand grand father.\nSoon my son will inherit this smithy.'],
    ['What is your name?','I am Tedd, but i would like you reference to me sir.'],
    ['Are you forging wands and staves for magicians?','No, it is to difficult to forge steel dedicated for magicians.'],
    ['Are you able to improve a weapon?','No... I am to old for this, my son when he returns would do.']
  ];
var x = $gameVariables.value(80);
$gameVariables.setValue(79, msg[x][0]);
$gameVariables.setValue(81, msg[x][1]);
explanation:
var msg contain multi-dimmensional array containing pair of 6 elements (in total 12 strings), left side of array contain dialouges for my hero, right side stores answers from npc.

var x stores index of dialouge wich will be displayed, this variable is controled via common event and generates random number from 0 to index of last element in msg array.

$gameVariables.setValue(79, msg[x][0]);
$gameVariables.setValue(81, msg[x][1]);

these variables stores picked strings by variable x and in event to display messages I do it that way
to display messages.

Be adviced, this code has one minor flaw, because Script... event is limited to 12 lines per code, you have to re-think wich lines and dialouges
you want to use in conversations.

Here is how looks my event in total you can ignore conditional branch checking id of map where is event triggered, it's just my conceit.
@Soulrender even if its restricted to 12 lines, you can make it way longer though.
first you put in what you like, that paste it all behind each other, that script has 11 lines which can be reduced to 1,2 or 4 lines.

keeping the original organized somewhere else for easy edits. But I gotta tell, its a really neat idea like that ^^
Thank You @ShadowDragon. There is also another approach, but I don't need that much 😛 Array could be populated with content stored in
text file 🙂

Original thread: https://forums.rpgmakerweb.com/threads/managing-an-npc-with-a-lot-of-conversations-rpg-makemv.115576/