Event trigger after X days from initial trigger

So basically what I need is :
1) You chose to trigger a dialogue/event/etc on let's say day 25.
2) After 5 days from triggering said event another event fires automatically.

I'm stuck at the part where I store one variable for the day (that increases) but don't know how to link the event firing to it, since it's not a static number/value and the player choses when to trigger the initial event.
Simple enough.
Using your example, have a common event that triggers at the end of every day, when you trigger the dialogue event, set another variable equal to five.

Have a conditional branch in the end of day event that checks whether the variable is greater than 1. If it is, have it then check whether the variable is equal to 1, if it isn't, -1 from the variable after the check to signify the passage of time. If it is, then 5 days have passed and do whatever you want to happen on the 5th day.
basically it depends on how your time is created.
one way is described above.
another way would be to include a check into the official time counter, but that only works if you know how to do it - in an event-based time system you would enter event commands into the timeloop, in a javascript-based time system you would have to modify the plugin code.

Original thread: https://forums.rpgmakerweb.com/threads/event-trigger-after-x-days-from-initial-trigger.137224/