How to make events appear on specific days?

Hello everyone! I hope you are all well!



So my question is: How to make one event appear during expecific days of the month?

I have clock, time, calendar and day/night common events running really ok.

What I want is make the merchant ship arrive and dock at the port every day 5, 10, 20 and after midnight of these days, departs again and dissapear from the map. (My merchant ship is a Char sprite, so I can use it and move it around as I please).

I tried many ways and honestly I can't make this work... If I use variables in my timer common event, the ship makes the show and moves around and stops beatifully, but when I leave the map, It returns to the start point, leaving the sailors lost and wondering around. 🙁

I need to do everything in common events? Anyone have any idea how this can work?
I just gave my example to explain myself, that why I didn't attached any pictures...
I just gave my example to explain myself, that why I didn't attached any pictures...
Unfortunately, without pictures, we don't know how you're tracking your "clock, time, calendar" events.

Without knowing that, anyone can just say that if you're tracking your calendar it should be easy to make other events only do things on a specific day.

If you want actual help/advice on how to do it, you need to show us how you're tracking time.

the ship makes the show and moves around and stops beatifully, but when I leave the map, It returns to the start point
This sounds like you need to have another event page with a self switch to account for the ship already having moved - the MZ engine does not track events once you leave a map, they will always reset unless you code them not to. But, again, impossible to say for sure without seeing what you've done.
there are several different ways to handle this, that is why we need to know how your time system actually works.

the usual approach is to have the event conditioned on a day variable, but that not only requires that such a variable exists but also that it cycles correctly.

if your day counter only goes up, your day common event would have to use a modulo operation on it to set a different variable, and use that as condition.

or you could have your common event check the day and give a command to the trader event, but that requires you to check a lot more than just the day to work.
there are several different ways to handle this, that is why we need to know how your time system actually works.

the usual approach is to have the event conditioned on a day variable, but that not only requires that such a variable exists but also that it cycles correctly.

if your day counter only goes up, your day common event would have to use a modulo operation on it to set a different variable, and use that as condition.

or you could have your common event check the day and give a command to the trader event, but that requires you to check a lot more than just the day to work.
Hi Andar,
I have my time system to show... its just in my language but I think you can understand the basic.

My variable 25 counts the days... I use it in my calendar too. It shows the day, month and year to the player...

I made a common event that makes conditions...

If day is = 5 the (ship variable) turn 1 in the map in paralel and the ship works ok... If the day is different than 5, the (ship variable) turn 2 and the ship goes away....

But only works if I'm in the map... If I leave... the ship get crazy....

1.jpg


2.jpg
OK

I think the key to get what you want is to have two different events for the merchant ship.

one event to be the moving ship, and one event to be the ship in port.

you'll need to time the controls perfectly if the player is around to see it, but basically the moving event goes to the port position, then the previously invisibe and intangable event there turns to the ship while the moving event turns invisible and intangable.

and repeat that in reverse on leaving, including teleporting the moving event to where it has to be to move.

that way it can only be messed up if the player leaves exactly while the ship is moving, and even in that case it should autocorrect itself on reentering, because the ship that is in port is always at that position and only depending on the time and day either active (visible and reacting to action button if that is part) or passive (through on, no sprite, above priority)

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-events-appear-on-specific-days.151274/