@bgillisp
Originally I had been intending to randomize NPC dialogue to a large extent via a variable that would be set to within a range each time the player entered the town map. Essentially just adding another part to my parallel process map corner event I assign to all of my maps, that set region id & map id.
However, I decided against that particular model for various reasons, & instead I decided to go with something akin to the dialogue system Morrowind uses, though less extensive.
Essentially having a set topic types for all NPCs, like "Background", "Rumors", "Services", "Jobs", along with more specific topics related to the NPC roles, for example "trade" with merchant NPCs. So instead of having to come up with a random saying for every random NPC, or five like I was going to use under the previous system; the player can seek the information they are looking for from any given NPC, & bypass those topics they aren't interested in. Not to mention having a more conversational feel to the dialogues.
So for example, the player could walk up to the merchant, which would trigger the perfunctory greeting from that NPC, followed by a causal interrogative to the player, then the player would be meet with multiple choice loop.
Like so,
Choice 1) Background? (ask about the NPCs history)
Choice 2) Jobs? (ask about what jobs are available in town, potential quest seeking)
Choice 3) Rumors? (ask for details about local events, potential quest seeking)
Choice 4) Services? (ask for details regarding local merchants, inns, etcetera)
Choice 5) Trade? (engage in trade with the merchant NPCs)
Choice 6) Nevermind. (cancel loop & end conversation)