Introduction
The event timer is often used for countdown purposes. However, sometimes you would like to have a bit more control over it, such as being able to pause and resume the timer, increase or decrease the seconds, minutes, or even hours on the timer. Don’t want a countdown timer? Why not have it count upwards instead? Experienced Lunatic Mode coders will be able to add in their own plugin commands, too!
事件計(jì)時(shí)器通常用于倒計(jì)時(shí)辕万。但是,有時(shí)您希望可以暫停和恢復(fù)計(jì)時(shí)器,增加或減少秒數(shù)施无,分鐘甚至小時(shí)锌云。你可以正數(shù)或者倒數(shù)計(jì)時(shí)郭变。還可以添加自己的插件命令殷勘!
Notable Changes Made:
– Ability to separate timer sprite from the spriteset
– Timer is now capable of displaying hours
– Pause/resume functions for timer
– Increasing/decreasing seconds from timer
– Counting up instead of just count down
特點(diǎn)如下:
- 自定義定時(shí)器顯示效果
- 能夠顯示小時(shí)數(shù)
- 定時(shí)器的暫停/恢復(fù)功能
- 定時(shí)器增加/減少秒
- 計(jì)數(shù)淆院,不僅倒計(jì)時(shí)
Plugin Commands
Use the following plugin commands to make use of the new features added by
使用下面的插件命令來(lái)使用添加的新功能
this plugin to control the event timer.
這個(gè)插件主要是來(lái)控制事件計(jì)時(shí)器何乎。
Plugin Commands:
— PAUSE/RESUME —
EventTimer Pause
– Pauses the event timer.
暫停事件計(jì)時(shí)器
EventTimer Resume
– Resumes the event timer if it has been paused.
恢復(fù)事件定時(shí)器
— COUNT DOWN/UP —
EventTimer Countdown
– Changes the direction of the event timer to decrease and count down towards 0 seconds.
倒計(jì)時(shí)
EventTimer Count Up
– Changes the direction of the event timer to increase and count upwards endlessly until manually stopped
時(shí)間正數(shù)計(jì)時(shí)
EventTimer Count Toggle
– Switches the current direction of the event timer to either increase or decrease each second it is active.
切換計(jì)時(shí)方式
— INCREASE/DECREASE —
EventTimer Increase x Frames
EventTimer Decrease x Frames
– Replace ‘x’ with a number value to determine how many frames to increase or decrease the event timer by.
增加或減少事件定時(shí)器的幀數(shù)
EventTimer Increase x Seconds
EventTimer Decrease x Seconds
– Replace ‘x’ with a number value to determine how many seconds to increase or decrease the event timer by.
增加或減少事件定時(shí)器的秒數(shù)
EventTimer Increase x Minutes
EventTimer Decrease x Minutes
– Replace ‘x’ with a number value to determine how many minutes to increase or decrease the event timer by.
增加或減少事件定時(shí)器的分鐘
EventTimer Increase x Hours
EventTimer Decrease x Hours
– Replace ‘x’ with a number value to determine how many hours to increase or decrease the event timer by.
增加或減少事件定時(shí)器的小時(shí)
You can also combine them together as such:
您也可以將它們組合在一起
EventTimer Increase x Hours, y Seconds
EventTimer Increase x Hours, y Minutes
EventTimer Increase x Minutes, y Seconds
EventTimer Increase x Hours, y Minutes, z Seconds
Lunatic Mode – Effect Code
For experienced users that know JavaScript and have RPG Maker MV 1.5.0+, you
can add new plugin commands for this plugin or alter the code of currently
existing plugin commands from the plugin parameters entry: Effect Code.
It should look something like this:
對(duì)于了解JavaScript的用戶,您可以為此插件添加新的插件命令
// ------------
// Pause/Resume
// ------------
if (data.match(/PAUSE/i)) {
$gameTimer.pause();
} else if (data.match(/RESUME/i)) {
$gameTimer.resume();
...
// --------------------------------
// Add new commands above this data
// --------------------------------
} else {
// Do nothing
}
The ‘data’ variable refers to the rest of the Plugin Command after the ‘EventTimer’ keyword. For example:
'data'變量是指'EventTimer'關(guān)鍵字之后的插件命令的其余部分土辩。例如:
EventTimer Increase 2 Hours, 30 Minutes, 15 Seconds
The ‘data’ would be ‘Increase 2 Hours, 30 Minutes, 15 Seconds’ and thus, the string ‘data’ is used when checking lines in the ‘Effect Code’ parameter.
增加2小時(shí)支救,30分鐘,15秒
—
If you need to revert the Effect Code back to its original state, delete the plugin from your plugin manager list and then add it again. The code will be back to default.
如果您需要將效果代碼恢復(fù)到原始狀態(tài)拷淘,請(qǐng)從插件管理器列表中刪除插件各墨,然后重新添加。代碼將恢復(fù)為默認(rèn)值启涯。