Indeed that is definitely a good place to start.
You can look at the governor.c dialog file. And also the very first function at the top of quests_common.c .
If you trace it from those points, you should get a pretty good idea of how that works.
For Random Town Events with Rumours, I think the code for that is somewhere in TownTable.c .
If you have any questions on it, I'll be near my computer during the weekend so can look at some code myself.
I've had a bit of a think through this feature and I've got some potential fancy ideas for later if you're interested.
But first things first.
You can look at the governor.c dialog file. And also the very first function at the top of quests_common.c .
If you trace it from those points, you should get a pretty good idea of how that works.
For Random Town Events with Rumours, I think the code for that is somewhere in TownTable.c .
If you have any questions on it, I'll be near my computer during the weekend so can look at some code myself.
I've had a bit of a think through this feature and I've got some potential fancy ideas for later if you're interested.
But first things first.