NoShirtstann

Veteran
Veteran
Joined
Nov 13, 2018
Messages
46
Reaction score
10
First Language
English
Primarily Uses
RMMV
Script NSS_IGT-System V1.1
[*]NoShirtStan

Introduction
Hey folks, so I've built my first full functioning plugin. This plugin is an In Game Time System that is fully customizable. After many grueling hours of coding and testing, it is complete. Unlike a normal Time system, this one allows you to set exactly how long you want a day to last in your game. I've included the .js as an attachment for straight download for those who prefer to not download the demo.

*Updated Jan 25 2021


Features
- IRL time limiting. Allows you to set the length of a day in-game via real world minutes. (ex. 40 min real time = 24hours game time.)
- Full window positioning.
- Various plugin commands to control the flow of time.
- 12 hour and 24 hour formatting for time.
- Custom window Icon function for those who do not wish to use the default.
- Sunrise/Sunset option that will auto tint the screen at the times set.

Screenshots

How to Use
Install this plugin underneath all your other plugins. It doesn't use any core functions that affect core engine functionality.

Demo
Demo for the plugin is here (hosted by Mediafire.com) This demo is for the original V1.0 of the script and does not include all features.

A new script for V1.1 has been attached.

Script
Code:
//=============================================================================
// NSS-IGT_System.js
//=============================================================================
/*:
 * @plugindesc V1.1 This plugin, is designed to be an In Game Time system.
 *
 * @author NoShirtStan
 *
 * @param -- General --
 * @param -- Window Configuration --
 * @param -- Time Settings --
 *
 * @param Visibility
 * @desc Choose to display the time window in game. (Time will still start to 
 * flow with this option off)
 * @type select
 * @option Show
 * @option Hide
 * @default Show
 * @parent -- General --
 *
 * @param Start Time On Game Start
 * @desc Check to see if time starts with the game.
 * @type select
 * @option Start With Game
 * @option Start With Plugin
 * @default Start With Game
 * @parent -- General --
 *
 * @param Length of Day
 * @desc Length of day in real time. (Minutes)
 * @type number
 * @default 40
 * @parent -- General --
 *
 * @param Activate Sunrise/Sunset
 * @desc Select whether or not to tint the screen for the sunrise and sunset.
 * @type select
 * @option Activate
 * @option Deativate
 * @default Activate
 * @parent -- General --
 * 
 * @param Window Name
 * @desc Label that appears in the window.
 * @type text
 * @default Date & Time
 * @parent -- Window Configuration --
 *
 * @param Icon Display
 * @desc Set the icon that you wish to display in the window.
 * @type number
 * @default 220
 * @parent -- Window Configuration --
 *
 * @param Window X Offset
 * @desc Window X location.
 * @type number
 * @default 0
 * @parent -- Window Configuration --
 *
 * @param Window Y Offset
 * @desc Window Y Location.
 * @type number
 * @default 0
 * @parent -- Window Configuration --
 *
 * @param Time Format
 * @desc 12 hour format or 24 hour format.
 * @type select
 * @option 12 Hours
 * @option 24 Hours
 * @default 12 Hours
 * @parent -- Time Settings --
 *
 * @param Am Pm Default
 * @desc Starting Am Pm Settings (true = AM, false = PM).
 * @type select
 * @option Am
 * @option Pm
 * @default Am
 * @parent -- Time Settings --
 *
 * @param Minutes Default
 * @desc Starting minutes counter.
 * @type number
 * @min 0
 * @max 59
 * @default 0
 * @parent -- Time Settings --
 * 
 * @param Hours Default
 * @desc Starting hours counter. (1-12 for 12 hour format, 1-24 for 24 hour 
 * format)
 * @type number
 * @min 1
 * @max 24
 * @default 1
 * @parent -- Time Settings --
 *
 * @param Days Default
 * @desc Starting Days counter.
 * @type number
 * @min 1
 * @max 12
 * @default 1
 * @parent -- Time Settings --
 *
 * @param Sunrise Hour
 * @desc The hour for when "Sunrise" starts. (1-24)
 * @type number
 * @min 1
 * @max 24
 * @default 6
 * @parent -- Time Settings --
 *
 * @param Daylight Hour
 * @desc The hour for when "Daylight" starts. (1-24)
 * @type number
 * @min 1
 * @max 24
 * @default 7
 * @parent -- Time Settings --
 *
 * @param Sunset Hour
 * @desc The hour for when "Sunset starts. (1-24)
 * @type number
 * @min 1
 * @max 24
 * @default 19
 * @parent -- Time Settings --
 *
 * @param Night Time Hour
 * @desc The hour for when "Night time" starts. (1-24)
 * @type number
 * @min 1
 * @max 24
 * @default 20
 * @parent -- Time Settings --
 *
 * @help
 * 
 * TERMS OF USE
 *
 * This plugin is free for commercial and non-commercial use. A shoutout in
 * credits would be nice though. Credit to "NoShirtStan".
 *
 * COMPATIBILITY
 *
 * As of yet I have not found any compatibility issues. If you happen to fine
 * some please let me know. This plugin can be placed below all other 
 * plugins.
 *
 * ==========================================================================
 * Explanation
 * ==========================================================================
 *
 * So this plugin was built and designed to be a modifiable In Game Time  
 * system. You are able to set the length of time for each day as well as 
 * position the window where ever you would like.
 *
 * ==========================================================================
 * Parameter Run Down
 * ==========================================================================
 *
 * Most of the parameters you will not need to adjust, but I have added them
 * in for those who want 100% control of how the clock operates.
 *
 * == General ==
 *
 * -- Visibility --
 *
 * This option will allow you to choose whether or not to display the clock
 * when the game starts up.
 *
 * -- Start Time On Game Start -- 
 *
 * This option allows you to choose whether or not to have the clock start as
 * soon as the game is opened. There are plugin commands that will allow you
 * to pause and resume the clock as needed.
 *
 * -- Length of Day -- 
 *
 * This will allow you set the duration of the day in real time for the
 * clock. The option is set in minutes, and will do all the calculations for
 * you.
 *
 * -- Activate Sunrise/Sunset
 *
 * This will activate a tinting effect on the screen for certain hours of the
 * day. Ex. 8pm or 20h the screen will tint to a sunset style tint.
 *
 * == Window Configuration ==
 *
 * -- Window Name --
 *
 * This option allows you to change the name or phrase for your clock in the 
 * window. The default is "Date & Time", but you can change it to whatever
 * you wish.
 *
 * -- Icon Display --
 *
 * This option will allow you to set a custom icon in the Icon position of
 * the window.
 *
 * -- Window X Offset --
 *
 * This option will allow you to position the window in the X axis.
 *
 * -- Window Y Offset --
 *
 * This option will allow you to position the window in the Y axis
 *
 * == Time Settings ==
 *
 * -- Time Format --
 *
 * This will allow you to select a 12hour or 24 hour format for the clock.
 *
 * -- Am Pm Default --
 *
 * This will allow you to set whether or not it is Am or Pm when the 
 * game first starts. This state will only apply if you are in the 12 
 * hour formatting.
 *
 * -- Minutes Default --
 *
 * This parameter sets the default counter for the minutes counter. If for
 * some reason you want to change that you can.
 *
 * -- Hours Default -- 
 *
 * Similiar to the last parameter, this will set the default of the hours
 * counter.
 *
 * -- Days Default --
 *
 * Currently in the plugin, the days are listed as a 7 day week following
 * standard day names: Monday, Tuesday etc. Using a value of 1-7 you can
 * set what day of the week you wish to start the game at. In order to 
 * change the number of days, or the names of days, will require excess 
 * changes to the main script, and I do not recommend doing that.
 *
 * -- Sunrise Hour --
 *
 * This will set the time at which the screen will tint to the sunrise tint.
 *
 * -- Daylight Hour --
 *
 * This will set the time at which the screen will tint to the daylight
 * tint.
 *
 * -- Sunset Hour --
 *
 * This will set the time at which the screen will tint to the sunset tint.
 *
 * -- Night Time Hour --
 *
 * This will set the time at which the screen will tint to the night time
 * tint.
 *
 * ==========================================================================
 * Plugin Commands
 * ==========================================================================
 *
 * I have only added a few plugin commands to this as it is only the first
 * version. As I update it, I will add more.
 *
 * Command: StartClock
 *
 * This command will start the clock up from either a pause, or a fresh
 * start, in the event you do not start the clock on game start.
 *
 * Command: StopClock
 *
 * This will stop the clock at its current time.
 *
 * Command: ClockHide
 *
 * This will hide the clock from view. Keep in mind that time will continue
 * to progress even if it is hidden.
 *
 * Command: ClockShow
 *
 * This will bring the clock into view.
 *
 * Command: AdvanceMinute x
 *
 * This will advance the clock x amount of minutes.
 *
 * Command: AdvanceHour x
 *
 * This will advance the clock x amount of hours.
 *
 * Command: AdvanceDay x
 *
 * This will advance the clock x amount of days.
 *
 * ==========================================================================
 * Updates
 * ==========================================================================
 *
 * V1.0 Plugin Released (Yay!)
 * 
 * V1.1 Plugin Update - Jan 25th 2021
 * - Added selecteable formatting for 12 hour or 24 hour clock.
 * - Added selectable screen Tinting for Dusk/Dawn/Day/Night effect.
 * - Cleaned up the parameter options.
 * - Recompiled for compatibility against various common plugins.
 * - Reformatted the script for easier viewing.
 *
 */


Credit and Thanks
- NoshirtStan
- Ashtar

Terms of Use

This plugin is free for commercial and non-commercial use.
 

Attachments

  • NSS-IGT_System.js
    16.7 KB · Views: 15
Last edited:

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,122
Reaction score
15,530
First Language
English
Primarily Uses
RMMV
Can you please add your terms of use?
 

Azineum

Warper
Member
Joined
Dec 31, 2020
Messages
4
Reaction score
1
First Language
English
Primarily Uses
RMMV
Thanks for your contribution this looks really nice!
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,682
Reaction score
1,798
First Language
Dutch
Primarily Uses
RMMV
even if I have it evented, the plugin is nice, specially the realtime in minutes as day ingame.
however, for most it's useable, for others, there might be 2 things missing, if not more as well.

time on picture shows 1:07 which is nice if you have 01:07 or invisible 0, 1: 07.
this is sweet if you have a image background so it will fit nicely or so it stays in 1 spot
for each 4 digit number.

the other thing that might be usefull, it says, start time at AM or PM, but what if they
want to use the 24 hour clock? 23:59 -> 00:00 ?

while the look is really basic, it's a nice and easy sweet plugin, but there is place
for improvement as well in case you want to add it.

while for most, it's enough, others wants more (I know 3 nice time system plugin)
but low features are mostly more compatible with other plugins.

so congrats on your first plugin, and thank you for contributing it :)
 

NoShirtstann

Veteran
Veteran
Joined
Nov 13, 2018
Messages
46
Reaction score
10
First Language
English
Primarily Uses
RMMV
Thank you all!


even if I have it evented, the plugin is nice, specially the realtime in minutes as day ingame.
however, for most it's useable, for others, there might be 2 things missing, if not more as well.

time on picture shows 1:07 which is nice if you have 01:07 or invisible 0, 1: 07.
this is sweet if you have a image background so it will fit nicely or so it stays in 1 spot
for each 4 digit number.

the other thing that might be usefull, it says, start time at AM or PM, but what if they
want to use the 24 hour clock? 23:59 -> 00:00 ?

while the look is really basic, it's a nice and easy sweet plugin, but there is place
for improvement as well in case you want to add it.

while for most, it's enough, others wants more (I know 3 nice time system plugin)
but low features are mostly more compatible with other plugins.

so congrats on your first plugin, and thank you for contributing it :)

As time goes on I will be adding features like that. I havent included 24hour only because the game I am currently developing does not require it.

I will continue to work on this plugin that way hopefully more people will find a use for it.
 

NoShirtstann

Veteran
Veteran
Joined
Nov 13, 2018
Messages
46
Reaction score
10
First Language
English
Primarily Uses
RMMV
I have edited the main post with the new updated script. Hopefully this will help with the customization concerns some people were having.
 

Latest Threads

Latest Profile Posts

thanks to a lot of lunatic coding... my game finally has a stun mechanic that I feel really good about. damage enemy's mental psyche (mp), and once empty, hitting with certain attacks trigger combos that can stack the damage.
Waiting for the 1.40 update before testing out my copy of MZ so that I don't end up adding unnecessary work to my plate. Meanwhile the current fourth draft for my story is taking shape, and I'm fleshing out the lore as I realize how things would make better sense here and there for the world that I'm building.
Sword_of_Dusk wrote on BCj's profile.
Just found out about your complications. I'm so sorry that you're going through this. I wish I could do something substantial for you, but our distance from each other makes that an impossibility. Still, if you ever need to talk or vent, I'm here.
Candacis wrote on BCj's profile.
I don't know, if any words will help right now, but here is a hug. And my offer to help you with Escalia, if you ever want or need help with it. Tiles or mapping especially.
MZ weather + title screen update is here! (Also includes MZ and MV RETRO demo project updates)

Forum statistics

Threads
117,110
Messages
1,104,655
Members
153,141
Latest member
bigdaddyloll
Top