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!
事件计时器通常用于倒计时。但是,有时您希望可以暂停和恢复计时器,增加或减少秒数,分钟甚至小时。你可以正数或者倒数计时。还可以添加自己的插件命令!
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
特点如下:
- 自定义定时器显示效果
- 能够显示小时数
- 定时器的暂停/恢复功能
- 定时器增加/减少秒
- 计数,不仅倒计时
Plugin Commands
Use the following plugin commands to make use of the new features added by
使用下面的插件命令来使用添加的新功能
this plugin to control the event timer.
这个插件主要是来控制事件计时器。
Plugin Commands:
— PAUSE/RESUME —
EventTimer Pause
– Pauses the event timer.
暂停事件计时器
EventTimer Resume
– Resumes the event timer if it has been paused.
恢复事件定时器
— COUNT DOWN/UP —
EventTimer Countdown
– Changes the direction of the event timer to decrease and count down towards 0 seconds.
倒计时
EventTimer Count Up
– Changes the direction of the event timer to increase and count upwards endlessly until manually stopped
时间正数计时
EventTimer Count Toggle
– Switches the current direction of the event timer to either increase or decrease each second it is active.
切换计时方式
— 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.
增加或减少事件定时器的帧数
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.
增加或减少事件定时器的秒数
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.
增加或减少事件定时器的分钟
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.
增加或减少事件定时器的小时
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:
对于了解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'关键字之后的插件命令的其余部分。例如:
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小时,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.
如果您需要将效果代码恢复到原始状态,请从插件管理器列表中删除插件,然后重新添加。代码将恢复为默认值。
网友评论