Time

Mevers

Warper
Member
Joined
Oct 3, 2018
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMMV
I have an idea for a detective game that's CSI style. Originally, I planned to do this in Ren p'y but I found the timing of events became repetitive; my looping system confusing and I couldn't fully implement a core aspect of my story into the game because the system is too restrictive. Which is why I started looking at using RPG maker as the maps gives the player more movement. The player basically has to solve murders by collecting clues. I want to give the player an x amount of time (days/nights) to find all the information. For example: the player would have to wait for any lab results that certain clues may require.

In addition, I have planned for a total of 10 abstract murders while in the background I have a serial killer going around, who kills people as the days go by. For example: the serial killer, will have one victim during the first case but then their will be two victims during the second case, ect.

For the independent murders as soon as the player finds all the relevant clues and arrests the murder. I'm hoping the game can either jump to the next crime or give the player some free time to hunt the serial killer. Once the serial killer is arrested, there will be no more victims of the serial killer but if the player still has an independent murder left, the player can continue to solve the remaining murders.

My problem is I'm not quite sure how to program the time element of my game. Ideally, I would like to have a day/night cycle but give the player the opportunity to either increase/decrease time or have an elder scrolls/fallout sleep system where the player goes to bed to progress time. However, I also need events to trigger or not trigger based on my timeline. I don't want the player sleeping when an event is happening. I also don't want the player having exhausted their free time hanging around with nothing to do till the next event.

I've seen several tutorials that show how to program time but I haven't found any that involve time related events. Example: X time is reached triggers event Y if conditions are met. Or anything close to what I'm after.

I've seen people make 24 hour clocks that automatically count the days with skip time functions. This included the ability to make certain events appear and disappear depending on the time based on the 24 hour clock not a weekly or monthly clock. So theoretically, my game mechanic should be achievable.

Therefore, what would be the best way to introduce a time mechanic relevant to my goals? And does anyone know any good tutorials that might be relevant?
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,225
Reaction score
1,206
First Language
Spanish
Primarily Uses
RMVXA
I came up with my own time system by editing the game's own timer.
I still have to solve the "after X days" part, but the "counting hours", "updating time" and "changing day light" parts are solved.

for the trigger/not-trigger event part, I made a separate quest system that handles validations separately.
tying that to the time system is part of the "solving the 'after x days'" part.

start by making the game timer count minutes as hours, and find the way to set and reset the timer at will
it all comes into place after you solve that: counting days is just a reset after 24 hours, updating day/night is just a check after X hours, an hour is a check after Y real seconds, etc.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

And we're live now!
Yosh! :LZScheeze: Made a video with some cool tips and tricks for MV & MZ.
As you watch, I'm curious to know how many tips you already knew. :LZSyum:


Lol. Just got an Apple support scam... is that a thing now? Well, I trolled them good. I played "H.O.L.I.D.A.Y." by The Wiggles and then told them that the supposed victim wasn't at the call center anymore. He was confused so I let it slip that I knew the scam. He hung up on me.
Tired of scammers? Just troll them. They'll run for the hills.
I'm going to schedule my shuttle to the train station today... after I vote. It's not a pleasant thing to do, since I hate politics. So much negative talk. I can see why it's not allowed here. But about the shuttle. My county has a service called PalmTran, and it's really convenient. They pick you up at your home and drop you off where you need to be. Just give them a date and time.
Titlescreen idle movie player, play some videos if the player sits on the titlescreen too long! [free plugin]

Forum statistics

Threads
104,514
Messages
1,006,857
Members
136,012
Latest member
felipemills
Top