![]() length ) return KTS::DAY_NAMES end #- # Screen Tone Functions #- def update_tint (duration = KTS::FADE_LENGTH ) return if $BTEST if KTS::USE_TONE & !$kts_event_tone & $kts_map_data. update end end #- # Script Support/Misc Functions #- def getDayName frame_count * KTS::SPEED / 60 ) + -= (total_seconds - ) = false end def sec (sec = 0 ) += secĮnd def min (min = 0 ) += min * 60 end def hours (hours = 0 ) += hours * 3600 end def days (days = 0 ) += days * 86400 end def jump_to_hour (jhour = 0 ) while != += 1 $kts. Time = sprintf ( "%02d:%02d", , ) return timeĮnd end #- # Script Command Functions #- def = true end def go Time = sprintf ( "%01d:%02d" + " AM", , ) end end return time T3 = # Day # Use 24-hour values for time periods T1 = # Night # Sets time periods for tinting effects START_DAY = 1 #- # If you want custom day names, edit away! #-ĭAY_NAMES = #- # Settings for Time Periods #. SPEED = 100 #AMPM (True: 12-hour clock, False: 24-hour clock)ĪMPM = false # Sets the time at the start of your game. A higher # value will give you a faster clock. #- # User Definable Clock Settings #- # Sets the speed multiplier of the clock. Game Database Setup #- # This script, by defult, uses the following game variables and switches: # Database Variables: # The Current Time The Current Hour # The Current Second The Current Day # The Current Minute Name of the Current Day # Database Switches # ON during night hours (2200-0400)(10pm-4am) # ON during dawn hours (0500-0800)( 5am-8am) # ON during daytime hours (0900-1800)( 9am-6pm) # ON during sunset hours (1900-2100)( 7pm-9pm) #= #= # Stores variables and user defined settings for the time system.This command MAY cause your game # to appear to freeze for a few seconds on slower # computers. # Particularly useful in a situation where you # want a certain event to happen at a certain time, # or an Innkeeper who should wake the party up at # a certain hour. $kts.jump_to_hour(n) - progresses time forward TO the specified hour.$kts.days(n) - progresses time forward (n) days #.$kts.hours(n) - progresses time forward (n) hours #.$kts.min(n) - progresses time forward (n) minutes #.$kts.sec(n) - progresses time forward (n) seconds #.$kts.go - Resumes time (don't forget to use this!) #.$kts.stop - Stops time (can be used for cutscenes) #.Script Function Calls #- # The following are script commands that can be executed by using the # "Script." command in your events.This means that "" won't show up in your Map Name Popup # windows. Provisions are made later in # the script to remove from the map name when it's read by another # script. ![]() For example, you world map could be # named "World Map " or " World Map". To signify a map to be "outdoors", you must # include In the name of the map. Auto-tone Instructions #- # Maps designated as outdoors are the only maps to be affected by this # scripts use of auto-toning.Hopefully # this resolves the wrong maps being tinted problem. # 1.5 - Rewrote the regexp that finds the in the map name. # Added $kts_anti_tone - returns an inverse tone color to allow sprites # to appear normally on a tinted screen. # Now switches and variables will only update when the map loads so that # events don't suddenly dissappear when their time is up. # 1.4 - Fixed Battle Test compatibility (simulates normal daylight for battle # test instead of darkness). Also added game switches for # even easier eventing. Place this script # below any battle background scripts if you experience "jumpy tinting" # 1.2 - Corrected the accuracy of $kts.stop and $kts.go # 1.3 - $kts.stop really stops everything now. # 1.1 - Corrected tinting issue at the start of a battle. Change Log #- # 1.0 - Original Release.Although time output to game # variables is optional, I strongly suggest using it so that its easier to # build your events based on the time in the game. # I've tried to make this script as customizable as possible, the settings # are found immediately following this header. Other than that, # there shouldn't be any other script compatibility issues. If you use a custom # script that makes changes to the battle background, place KTS below it so # that you don't get the delayed-tone effect in you battles. This # script adds a new window to the game menu, so if you use a CMS, then place # this script ABOVE it so that it won't mess up your CMS. This is my comprehensive time and day/night system. Cleaner code and less intrusive (more # compatible). #= # ■ Kylock's Time System VX 1.5 #- # Script by: Kylock #= # Mostly rewritten since XP version.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |