needing npc to leave at a certain time of day, and returning later/the next day

PoniMeiMei

Veteran
Veteran
Joined
Sep 29, 2021
Messages
85
Reaction score
16
First Language
english
Primarily Uses
RMVXA
So im trying to get this event to work, im eventing using this for the clock script and im trying to get npcs to leave at a certain time and then re-appear once a certain hour is hit.

Example :
Npc is by the lake >
the store they run opens at 9am >
when 9am hits they go to the store leaving the lake >
the npc is now at the store running it till 6 pm >
npc goes home>
starts the whole thing the next day.

any ideas? sorry if im not explaining things well :kaocry:any help is appreciated !
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
36,325
Reaction score
9,714
First Language
German
Primarily Uses
RMMV
you'll need several multipage events pretending to be the same NPC.
they need to be conditioned to the variable that stores the hour of the time system.

the store event for example needs a page hour>9 and a second page hour>18
this will make the first page active between 09:00 and 18:00, give that page the behaviour and sprite of the NPC. the other page will be active from 18:00 to 24:00, give it no sprite because the NPC is elsewhere.

the event in the home would then only be active on hour>18.

as for the movement between locations: an event CANNOT leave the map it is on, so that movement could only be done if lake, shop and home are the same map.

if that is the case or if you want to put in the work to pretend map changes, you'll need a single variable for finer timesteps and use more pages with the moving pages on the steps between the main times. But such a finetuning rarely works out due to the massive added work it would need.
 

PoniMeiMei

Veteran
Veteran
Joined
Sep 29, 2021
Messages
85
Reaction score
16
First Language
english
Primarily Uses
RMVXA
okay, how do i go about eventing random dialogue for each npc??? im sorry im asking so much i just want to learn :kaocry:
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
36,325
Reaction score
9,714
First Language
German
Primarily Uses
RMMV
control variable to get a random number, followed by a series of conditional branches to see which number was rolled and give different show text each.
 

PoniMeiMei

Veteran
Veteran
Joined
Sep 29, 2021
Messages
85
Reaction score
16
First Language
english
Primarily Uses
RMVXA
how would i add both of those things together?
im using Selchars HM Calendar and i cant seem to combined both of those elements in one npc? sorry im slow
 

Latest Threads

Latest Profile Posts

After a little test with the parallax mapping, found it lags like a cat on a leash. Instead of the original idea to parallax map the entirety of the ship, I guess I'll settle for editing the tilesets. Probably should have done that first. :kaosigh:
So I kinda came back and learned how to mod other RPG Maker games so... Hello everyone!
Captura-de-pantalla-475.png
Version 1.0.1 done! Now finally free time... oh
Capture.PNG
I'm Really proud of how my game over screen looks!
UldJFr1.png
I felt inspired by a piece of art I saw. So I made this.

Wanderer Doge.png

Forum statistics

Threads
123,282
Messages
1,155,473
Members
161,678
Latest member
brideinmydreams
Top