- Joined
- Nov 13, 2018
- Messages
- 35
- Reaction score
- 8
- First Language
- English
- Primarily Uses
- RMMV
Script NSS_IGT-System V1.1
[*]NoShirtStan
[*]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
Last edited: