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,248
Reaction score
1,250
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 Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top