Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: Linkforce on June 04, 2008, 07:45:26 AM

Title: Time Played
Post 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?
Title:
Post by: Dominicy on June 04, 2008, 09:18:45 AM
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
Title:
Post by: Linkforce on June 04, 2008, 05:46:05 PM
Ok, I did all that....now how do I show it in the menu?
Title:
Post by: aboutasoandthis on June 04, 2008, 06:21:38 PM
No. It takes a custom menu like Dominicy's way.
Title:
Post by: Linkforce on June 04, 2008, 06:44:35 PM
So is there a way to do it with the default menu?
Title:
Post by: psy_wombats on June 04, 2008, 06:45:50 PM
If you don't want a custom menu it's easy enough to just have a message print it out, like:
"Played for \v
Title:
Post by: Dominicy on June 04, 2008, 06:48:25 PM
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'.