【漢化】YEP.160 – Event Timer Control

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)值启涯。

Happy RPG Making!

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末贬堵,一起剝皮案震驚了整個(gè)濱河市,隨后出現(xiàn)的幾起案子结洼,更是在濱河造成了極大的恐慌黎做,老刑警劉巖,帶你破解...
    沈念sama閱讀 219,366評(píng)論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件松忍,死亡現(xiàn)場(chǎng)離奇詭異蒸殿,居然都是意外死亡,警方通過(guò)查閱死者的電腦和手機(jī)鸣峭,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,521評(píng)論 3 395
  • 文/潘曉璐 我一進(jìn)店門宏所,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái),“玉大人摊溶,你說(shuō)我怎么就攤上這事爬骤。” “怎么了莫换?”我有些...
    開(kāi)封第一講書(shū)人閱讀 165,689評(píng)論 0 356
  • 文/不壞的土叔 我叫張陵霞玄,是天一觀的道長(zhǎng)。 經(jīng)常有香客問(wèn)我拉岁,道長(zhǎng)溃列,這世上最難降的妖魔是什么? 我笑而不...
    開(kāi)封第一講書(shū)人閱讀 58,925評(píng)論 1 295
  • 正文 為了忘掉前任膛薛,我火速辦了婚禮,結(jié)果婚禮上补鼻,老公的妹妹穿的比我還像新娘哄啄。我一直安慰自己雅任,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,942評(píng)論 6 392
  • 文/花漫 我一把揭開(kāi)白布咨跌。 她就那樣靜靜地躺著沪么,像睡著了一般。 火紅的嫁衣襯著肌膚如雪锌半。 梳的紋絲不亂的頭發(fā)上禽车,一...
    開(kāi)封第一講書(shū)人閱讀 51,727評(píng)論 1 305
  • 那天,我揣著相機(jī)與錄音刊殉,去河邊找鬼殉摔。 笑死,一個(gè)胖子當(dāng)著我的面吹牛记焊,可吹牛的內(nèi)容都是我干的逸月。 我是一名探鬼主播,決...
    沈念sama閱讀 40,447評(píng)論 3 420
  • 文/蒼蘭香墨 我猛地睜開(kāi)眼遍膜,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼碗硬!你這毒婦竟也來(lái)了?” 一聲冷哼從身側(cè)響起瓢颅,我...
    開(kāi)封第一講書(shū)人閱讀 39,349評(píng)論 0 276
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤恩尾,失蹤者是張志新(化名)和其女友劉穎,沒(méi)想到半個(gè)月后挽懦,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體翰意,經(jīng)...
    沈念sama閱讀 45,820評(píng)論 1 317
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,990評(píng)論 3 337
  • 正文 我和宋清朗相戀三年巾兆,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了猎物。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 40,127評(píng)論 1 351
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡角塑,死狀恐怖蔫磨,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情圃伶,我是刑警寧澤堤如,帶...
    沈念sama閱讀 35,812評(píng)論 5 346
  • 正文 年R本政府宣布,位于F島的核電站窒朋,受9級(jí)特大地震影響搀罢,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜侥猩,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,471評(píng)論 3 331
  • 文/蒙蒙 一榔至、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧欺劳,春花似錦唧取、人聲如沸铅鲤。這莊子的主人今日做“春日...
    開(kāi)封第一講書(shū)人閱讀 32,017評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)邢享。三九已至,卻和暖如春淡诗,著一層夾襖步出監(jiān)牢的瞬間骇塘,已是汗流浹背。 一陣腳步聲響...
    開(kāi)封第一講書(shū)人閱讀 33,142評(píng)論 1 272
  • 我被黑心中介騙來(lái)泰國(guó)打工韩容, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留款违,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 48,388評(píng)論 3 373
  • 正文 我出身青樓宙攻,卻偏偏與公主長(zhǎng)得像奠货,于是被迫代替她去往敵國(guó)和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子座掘,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,066評(píng)論 2 355

推薦閱讀更多精彩內(nèi)容

  • Spring Cloud為開(kāi)發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見(jiàn)模式的工具(例如配置管理递惋,服務(wù)發(fā)現(xiàn),斷路器溢陪,智...
    卡卡羅2017閱讀 134,669評(píng)論 18 139
  • afinalAfinal是一個(gè)android的ioc萍虽,orm框架 https://github.com/yangf...
    passiontim閱讀 15,434評(píng)論 2 45
  • Swift版本點(diǎn)擊這里歡迎加入QQ群交流: 594119878最新更新日期:18-09-17 About A cu...
    ylgwhyh閱讀 25,395評(píng)論 7 249
  • 生活本來(lái)就是平淡中咆霜,添加的五味雜陳邓馒,苦澀中的甜蜜,負(fù)累中的喜悅蛾坯,矛盾復(fù)雜中光酣,道不清,說(shuō)不明的煙火人生脉课。無(wú)止境救军,貪念...
    靜女其姝Y閱讀 405評(píng)論 0 2
  • 不一樣的卡梅拉是很不錯(cuò)的一套書(shū)。故事有點(diǎn)像小雞版的穿越劇倘零,把貪玩的小雞與歷史人物或大家熟悉的童話相結(jié)合唱遭。加上鮮明性...
    R2D2R2D2閱讀 13,331評(píng)論 0 2