09-12-2019, 07:07 PM
(This post was last modified: 09-12-2020, 04:04 AM by DerVVulfman.
Edit Reason: Handling Saves and Menus
)
Centi-Second Wait Count
Version: 1.5
Version: 1.5
Definition
Centi-Second: Noun. (plural centiseconds)
1) A unit of time equal to 0.01 seconds and with symbol cs.
2) Time of 91 926 317.7 periods of the radiation corresponding to the transition between the 2 hyperfine levels of the ground state of the caesium 133 atom at 0 K .
Introduction
This script grants one the ability to use an alternate system to the default wait system. Unlike the default wait system, this one uses the actual system clock to measure time in centi-seconds, or down to a hundredth of a second. And since it does not rely on the graphics framecount system which can be slowed down, it is more accurate.
The only drawback is that major rewrites had to be performed within three classes to add this feature; the actual timing system needing to be placed within loop-end blocks of code.
However, it also allows the map event PICTURE system to be controlled by the meticulous system of centi-seconds, so timing will be exact regardless of PC or Smooth-mode/Normal-mode settings are used.
Features
- Field Map Script Call for new wait counter down to 1/100th of a second.
- Script Call in Custom Move Routes allows for new wait counter down to 1/100th of a second.
- Troop Database Script Call for new wait counter down to 1/100th of a second.
- Picture movement and Picture tone manipulation down to 1/100th of a second.
- Special timer system based on duration from event start for field maps
Screenshots
Are you kidding? This is a timer system.
Demo
CLICK ME
* It's pretty simplistic
* If studying, look for dashed lines within the code to show the direct edits to the update and move_type_custom methods.
Instructions
Generally, paste after Scene_Debug and before main in your script database. Due to heavy rewrites in three principle methods, it is recommended to be the first script within your list of custom scripts below Scene_Debug.
It does not replace the [Wait] button in the list of event commands. You use a script call of: set_cs_wait(value) where value is the number of centi-seconds for a delay.
Recommendation
Would be excellent for use with cutscenes. Recommend using with the Prevent Window Deactivation (aka MessageIntercept) system by KK20.
Compatibility
* NOT based on the RPGMaker RMXP SDK system.
Designed for RPGMaker XP, though the premise and edits shown should be valid for other Enterbrain engines using Ruby. It overwrites update methods in the Interpreter, Game_Character and Scene_Battle code, so it should be the first script in your list of custom scripts. That is, unless you perform direct edits yourself.
Author's Notes
Considered Intermediate to Skilled/Advanced due to method rewrites.