Charas-Project
Game Creation => Requests => RPG Maker Programming => Topic started by: Linkforce on June 04, 2008, 07:45:26 AM
-
Hey all. I was wondering if there was a way to put the amount of time played in the default menu screen. Is there any way to do this that doesnt involve massive amounts of coding?
-
One of two ways. Make a watch locket-watch item thing that you USE to check how long you've played, using a variable for seconds, a variable for minutes, and a variable for hours. Another way would be to use ITEMS instead of variables.
Either way,
Make a common event, make it parallel process, no conditional switch. Make the event increase the variable or item 'seconds' by 1, then wait 1 second. Make a second common event (or use the same one, either way it should work) with the conditional branch 'If seconds = 60', no alternate branch. then (inside the conditional branch) set the variable/item seconds to 0 and add 1 to the variable/item minutes. Do the same for minutes, except with hours.
If this wasn't clear enough, tell me.
Good luck :D
-
Ok, I did all that....now how do I show it in the menu?
-
No. It takes a custom menu like Dominicy's way.
-
So is there a way to do it with the default menu?
-
If you don't want a custom menu it's easy enough to just have a message print it out, like:
"Played for \v- :\v[y]:\v[z]" with the variables being the indexes of the hours/minutes/seconds. Then this would be triggered by an item, as Dominicy suggested.
-
Yeh, I forgot to mention that, sorry. But, instead of variables there's always making unsellable items that work as a clock. For example, things like, 'Clock - Seconds/Minutes/Hours'.