RPG Maker Forums

Not that great with rpgm yet but im trying to implement a passage of time idea, without a script. by just using variables.

I plan to have a 60 minute, 24 hour, 30 day, 12 month, a year system.
Using variables i allready got the gist of how to do it.
Wondering if its efficient and there is a easier way to do this.

First i made 5 variables, 1 each for minutes, hours ,days, months, and years (named as such.)
Then when I wish time to progress or advance I input it in with the event or action.
ie a cutscene which takes around 10 minutes in game, I simply put :
control variables: [0006:minutes]+=10, (within the event page for this cutscene)
Then after this putting a:
Conditional branch: Variable [0006:minutes]>=60 (greater or equal to 60)
Control variables: [0007:hours] +=1 (add one hour)
Control variables: [0006:minutes] -= 60 (minus 60 minutes)

This lets minutes flow up the hours and resets the minutes, and its simple to do this with hours into days
Conditional branch: Variable [0007:hours]>=24 (greater or equal to 24)
Control variables: [0008:days] +=1 (add one day)
Control variables: [0007:hours] -= 24 (minus 24 hours)
And so on for days months and years.

To see this time change ingame, there is a simple event where if you have a clock in your protagonists house, or a clock anywhere.
Have a priority same as character, action trigger event on the clock and input:
Conditional branch: variable[0006:minutes] < 10 (under 10 minutes)
Text:-, -, Normal, Bottom (or middle or top or what ever)
: : It's \v[007]:0\v[006] (first one is hour variable second is minutes, odd 0 is important)

: Else
Text :-, -, Normal, Bottom
: : It's \v[007]:\v[006]
The conditional branch is because when it reads out variables it dictates them exactly, so if it was:
5 hours and 5 minutes. it would incorrectly say 5:5 which is not standard time reading.
With the conditional branch adding the 0 before the minute readout when it is lower than 10 minutes.
making it read 5 hours and 5 minutes as 5:05
If you want to to read 05:05 (which looks weird to me), you will need to add a second layer of conditional branch,
using hours lower than 10 ect.
Obviously those who know how to utilize variables for event triggers or completion, or what ever they can be used for. You see how this could be used.

Hoping for some feedback or questions if anyone doesn't understand.
Is this next best thing since sliced bread, or is it a really twisted or buggy way to have a time passage feature in a game... :p
thanks

I have a small game file of my work, its 2 mb on mega
https://mega.nz/#F!1UdxxYYJ!czXYnQvBN0OlOLCntDp8tA

Latest Threads

Latest Posts

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,455
Members
137,821
Latest member
Capterson
Top