I guess you could use a variable and keep incrementing the contents of it the further you get into a quest or so. Like;
If variable = 1: Make NPC's give you special messages.
If variable = 2: Make NPC's say that a dragon has arrived in their town.
If variable = 3: Make citizens congratulate you on defeating the dragon.
"Stephen Wolfram is the creator of Mathematica and is widely regarded as the most important innovator in scientific and technical computing today." - Stephen Wolfram