Wondering if this can be done...

 So here's the issue...

I'm working on a Modern-day game, called Work.

I've got some scripts installed, namely a Difficulty selector, Advanced Game Time system and a crafting system.

I'm trying to figure out if it's possible to insert rent payments into the Advanced Game Time system.

So that every week certain conversations start up with your Landlord or the guys from the Rental place. (For your TV, PC, couch, etc)

This is one of the main gameplay features of this project, so it's gotta work somehow.

Any help would be great, thanks.

~Edit~

After looking at the script again for the Game Time system, there's a command to export the current time as a variable, so I'll have to figure out how to link the conversation event to the exported game time variable.

Do I just have to set it up to constantly check the variable for the right time? Or can I set it to only check like once or something?
Hello! Yes, it would be possible even without using scripts. Could you link to the script you're using to manage time?
Hello! Yes, it would be possible even without using scripts. Could you link to the script you're using to manage time?
Sure, it's this one.

http://forums.rpgmakerweb.com/index.php?/topic/3851-advanced-game-time/

It's the script by Vlue.
One example:


If a variable contains the current hour, you can make an event with 24 pages, each page conditioned to the hour with the same number as the page.


This is important for page order or it won't work: the conditions need to be in increasing values!


If an hour/page is deleted, the event from the previous hour/page will continue to be active.


Will probably take a bit of experimenting, but it's the easiest way to work time into events.
One example:

If a variable contains the current hour, you can make an event with 24 pages, each page conditioned to the hour with the same number as the page.

This is important for page order or it won't work: the conditions need to be in increasing values!

If an hour/page is deleted, the event from the previous hour/page will continue to be active.

Will probably take a bit of experimenting, but it's the easiest way to work time into events.
I see what you're saying, so using this same idea...

With 7 days of the week, I setup an event with 7 pages, only one of those event pages (Friday) would have the convo box and interaction with the Landlord.

Just follow the numbered order correctly, and it should work out then. I could even just set it up to work on Friday, paste the code into each page, and every other day it just counts down to rent-day. 6 Days, 5 Days, etc.

So the player will have a daily heads-up, but won't be getting bugged every hour for a week.

Thanks a bunch.

Original thread: https://forums.rpgmakerweb.com/threads/wondering-if-this-can-be-done.41713/