Fizzer have some example mods on his github (including a few with popups). The wiki is also great documentation.
Alright thanks, i'll take a look on that later.
The request is too generalised. Make it more specific by saying what you want the pop ups to do and want conditions should make the pop up appear.
It would mostly be triggered when the player reaches a certain territory or after a given amount of turns have passed.