Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

Click here to join us on IRC (#charas on irc.freenode.net)!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • Time Played
« previous next »
  • Print
Pages: [1]

Author Topic: Time Played  (Read 2638 times)

Offline Linkforce

  • The Original Master of the Mosey
  • Leader
  • *
  • Posts: 2,330
  • i love rpgs
Time Played
« 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?
Logged

Offline Dominicy

  • All men play on ten!
  • Leader
  • *
  • Posts: 2,852
(No subject)
« Reply #1 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
Logged

Offline Linkforce

  • The Original Master of the Mosey
  • Leader
  • *
  • Posts: 2,330
  • i love rpgs
(No subject)
« Reply #2 on: June 04, 2008, 05:46:05 PM »
Ok, I did all that....now how do I show it in the menu?
Logged

Offline aboutasoandthis

  • Exemplar
  • *
  • Posts: 1,915
  • Talking sucks.
(No subject)
« Reply #3 on: June 04, 2008, 06:21:38 PM »
No. It takes a custom menu like Dominicy's way.
Logged
My pokemon bring all the nerds to the yard, and they're like you wanna trade cards? Darn right, I wanna trade cards, I could trade this, but not my charizard.  



Offline Linkforce

  • The Original Master of the Mosey
  • Leader
  • *
  • Posts: 2,330
  • i love rpgs
(No subject)
« Reply #4 on: June 04, 2008, 06:44:35 PM »
So is there a way to do it with the default menu?
Logged

Offline psy_wombats

  • Member
  • Initiate
  • *
  • Posts: 17
(No subject)
« Reply #5 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
  • :\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.
Logged
When Wombats Strike - (Enjoy your last days!)
http://www.wombatrpgs.tk - In depth RPG design, development, and discussion... With Team Olympus now in Beta... Testing positions available!

Offline Dominicy

  • All men play on ten!
  • Leader
  • *
  • Posts: 2,852
(No subject)
« Reply #6 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'.
Logged

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • Time Played
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum