0 reviews
  • Review
  • Subscribe
  • Nominate
  • Submit Media
  • RSS

Plugging Along

This project is still very much alive and being worked on! I have decided to focus on this project while I sharpen and self-teach my scripting skills. It's really a waste of time to put so much effort into a project I'm not at all as passionate about. So, I shoved up a slew of screenshots.

This is a script that I wrote with some help and corrections from Craze and Raitzeno. I've removed some of the parts that are specific to my game (such as the Moon Phase being calculated based on the date). Replace the number of "$game_variables(###)" with the number of the variable you're using to keep track of it in your own game. I like to put stuff like this into $game_party. The first thing the game does is a script call: $game_party.date_roll

VARIABLES: Set these to the date you want to start at.
Month = 1 - 12
Date = 1 - 31
Day = 1 - 7
Total = Start this at 0. Keeps track of the total number of gamedays ever passed, if you need that.

def date_roll #  Automatic calendar
  month = $game_variables[101]
  date = $game_variables[102]
  day = $game_variables[103]
  total = $game_variables[104]

  date += 1

  lastday = 31  # last day of the month is 31st
 case month
 when 2 # except February
  lastday = 29
 when 4, 6, 9, 11 # and April, June, September, November
  lastday = 30
 end
 if date > lastday # if yesterday was the last day of the month
  date = 1
  month += 1
 end

  month = 1 if month > 12 # if December is over, make it January
  day += 1              # Advance day of week
  day = 1 if day > 7    # If Saturday is over, make it Sunday
  total += 1            # Total number of days ever passed
  
  $game_variables[101] = month
  $game_variables[102] = date
  $game_variables[103] = day
  $game_variables[104] = total
end # date_roll


Now at the end of every day, I just $game_party.date_roll and the calendar automatically adjusts itself. Hooray.

Posts

Pages: 1
SorceressKyrsty
Resident Cosplayer
3060
30 days has September, April, June, and November, all the rest have 31, except February, which has 28 days clear, and 29 in every leap year.

Looking pretty snazzy! I checked out the screenshots, it's nice that this has some updates. My notices has been very lonely lately, haha.

I might actually use this for a game I'm working on, which is intended to be similar to Persona (school setting and what not), but I haven't decided yet, heh. :)
Versalia
I was looking forward to some gam mak
1165
author=SorceressKyrsty
I might actually use this for a game I'm working on, which is intended to be similar to Persona (school setting and what not), but I haven't decided yet, heh. :)


Ooh, interesting. I like the school time-management theme. This was really just an excuse to throw some working script up :D I've done a bunch of stuff like this from scratch. It all adds up to pretty moving parts without a lot of playable game time, haha... But, I'm doing little stuff like battle animation enemies, so monsters are animated etc. POLISHING STUFF OFF!

I also feel like posting on RMN and checking it too often is counterproductive to getting stuff done. It's not worth the amount of time I would spend discussing the exact amount of indentation to use on dialogue lines instead of actually writing that dialogue. Input can always be gathered up and used to polish it up later!
Pages: 1