Adding "Day" Variable to the Menu

The Commander

The Blood Knight
Veteran
Joined
May 20, 2014
Messages
40
Reaction score
4
First Language
English
Primarily Uses
Hi there, my newest project has a day/night cycle using common events and switches, and I'd thought I'd ask if there's a way I can add a "Day" counter (storing the days in a variable that adds 1 day to the variable at the end of every cycle) to the main menu, like above the "Gold" box or something similar. Basically, if there's a way I can work it so that the box would say "Day" and then the number variable that is stored in the 'day' counter.

Or, to get extremely into it, figure out a way to change the box so it reads "Night" instead of day during the 'night' and 'evening' parts of the cycle. An example...

The cycle has happened five times now (and thus added 4 points to the variable counter) and it's daytime (or it could be morning). The box in the menu says:

"Day 5"

Now it's night (or it could be evening) of that day, so the box in the menu would say:

"Night 5"

If the Day/Night thing is too difficult or complicated to script, or too difficult to set up for someone with absolutely zero scripting knowledge...then if I can at least get the box added to the menu to say "Day" (at all time periods, instead of switching to saying "Night" come the activation of the evening or night switches and then saying "Day" again come the activation of the morning or day switches) it would be greatly appreciated.

~Screen6.bmp (Entering a new map adds 1 point to the "Time" variable, I also have a second CE (Marked "Cycle2") that alternatively adds 1 point to the "Time" Variable every 999 frames)

~Screen7.bmp

~screen8.bmp

EDIT: Also, if its possible, if someone could also include another text box on the menu that indicates on what map you are on. Such as "North Forest" (if you are in North Forest) or a "Central Plains" if you are in the Central Plains being in its own little text box on the menu beneath the "Day"/"Night" box, please.
 

Attachments

Last edited by a moderator:

Funplayer

Self proclaimed sponge.
Veteran
Joined
Oct 9, 2013
Messages
120
Reaction score
35
First Language
English
Primarily Uses
I can think of a few issues that could happen by just adding a window into that location:

1. Expanding or replacing the menu scene with a 3rd party menu would probably break the (variable) window, unless you construct it, update it, place it in another location, and destruct it properly.

2. Changing variable ids would involve a couple of lines of changed code.

If you're okay with that, I could script it in for you.
 
Last edited by a moderator:

The Commander

The Blood Knight
Veteran
Joined
May 20, 2014
Messages
40
Reaction score
4
First Language
English
Primarily Uses
I'm using the basic menu anyway, and thanks.
 

Funplayer

Self proclaimed sponge.
Veteran
Joined
Oct 9, 2013
Messages
120
Reaction score
35
First Language
English
Primarily Uses
I'm using the basic menu anyway, and thanks.
Sorry I had some sound halting issues with my computer, but I fixed them and now its running correctly.  Nothing that required sound would run, including the rgss client.  

Here is the demo for the map display and day/night display, its commented and easy to understand.

Hosted in my public Dropbox public folder.

Here is the script hosted on my Github.
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,569
Latest member
Shtelsky
Top