【漢化】YEP.157 – Lunatic Pack – State Protection

Introduction

This plugin requires the following plugins:

– Battle Engine Core
– Buffs & States Core

這個(gè)插件需要下面的插件支持:
戰(zhàn)斗核心
狀態(tài)核心

Place this plugin beneath the above listed plugins in the plugin manager. This plugin allows you to add a variety of protection effects to your states to allow them to reduce HP or MP damage in more unique ways, from cutting off a percentage of the original damage, blocking off damage entirely once certain break points are met, capping damage in certain ways, and surviving fatal damage. And should any of those effects trigger, you can set the state to perform special effects, too!

將此插件放置在插件管理器中的上述插件下方魄咕。這個(gè)插件可以為狀態(tài)增加各種保護(hù)效果博脑,讓他們以更獨(dú)特的方式減少HP或MP傷害虐译,例如百分比保護(hù)白华,特定值保護(hù)勾笆,傷害上限等荤崇。如果這些效果觸發(fā),您可以設(shè)置狀態(tài)來執(zhí)行特殊效果!

NOTE: This plugin is best used with RPG Maker MV version 1.5.0+. You can still use this plugin with a lower version number, but you will have a much harder time altering the plugin parameters without it.

注意:這個(gè)插件用于RPG Maker MV版本1.5.0+吹榴。

Notetags

For updated versions of the notetags, please refer to the plugin’s helpfile.

對(duì)于備注命令,請(qǐng)查看插件幫助文件

Lunatic Mode – Effect Code

For experienced users that know JavaScript and have RPG Maker MV 1.5.0+, you can add new notetag effects that can be used by the plugin or alter the effects of currently existing notetag effects from the plugin parameters entry: Effect Code. It should look something like this:

對(duì)于熟悉JavaScript的用戶滚婉,您可以自定義效果

—

// ----------------
// Damage Reduction
// ----------------
if (data.match(/DAMAGE CUT[ ](\d+)([%%])/i)) {
  rate = parseFloat(RegExp.$1) * 0.01;
  blocked = originalValue * rate;
  value -= blocked;
  value = Math.max(value, 0);

} else if (data.match(/DAMAGE BLOCK[ ]([\+\-]\d+)/i)) {
  blocked = parseInt(RegExp.$1);
  value -= blocked;
  value = Math.max(value, 0);

...

// -------------------------------
// Add new effects above this line
// -------------------------------
} else {
  skip = true;
}
—

Here’s what each of the variables used in this code bit refer to:
以下是每個(gè)變量的含義:

  --------------------   ---------------------------------------------------
  Variable:              Refers to:
  --------------------   ---------------------------------------------------
  state                  The state this effect belongs to
  stateId                The state ID this effect belongs to

  value                  The HP/MP damage being affected by this effect. Any
                         changes made to this value will be permanent unless
                         the effect is skipped.

  originalValue          The original HP/MP damage before any of the protect
                         state effects have been applied.

  item                   The item being used by this action
  skill                  The skill being used by this action

  isItem                 Returns true if action is an item
  isSkill                Returns true if action is a skill

  a                      Returns the action user
  user                   Returns the action user
  subject                Returns the action user

  b                      Returns the action's current target
  target                 Returns the action's current target

  s[x]                   Return switch x (true/false)
  v[x]                   Return variable x's current value

  user._result           The current results for the user
  target._result         The current results for the target
  userPreviousResult     The results for the user before any changes
  targetPreviousResult   The results for the target before any changes

  animation              The animation to be played.

  triggered              Returns if any of this state's protection effects
                         have been triggered (true) or not (false)

  skip                   Default: false. If true, skips popups & animations
—

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閱讀 222,464評(píng)論 6 517
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件痢掠,死亡現(xiàn)場(chǎng)離奇詭異,居然都是意外死亡嘲恍,警方通過查閱死者的電腦和手機(jī)志群,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 95,033評(píng)論 3 399
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來蛔钙,“玉大人锌云,你說我怎么就攤上這事∮跬眩” “怎么了桑涎?”我有些...
    開封第一講書人閱讀 169,078評(píng)論 0 362
  • 文/不壞的土叔 我叫張陵,是天一觀的道長(zhǎng)兼贡。 經(jīng)常有香客問我攻冷,道長(zhǎng),這世上最難降的妖魔是什么遍希? 我笑而不...
    開封第一講書人閱讀 59,979評(píng)論 1 299
  • 正文 為了忘掉前任等曼,我火速辦了婚禮,結(jié)果婚禮上凿蒜,老公的妹妹穿的比我還像新娘禁谦。我一直安慰自己,他們只是感情好废封,可當(dāng)我...
    茶點(diǎn)故事閱讀 69,001評(píng)論 6 398
  • 文/花漫 我一把揭開白布州泊。 她就那樣靜靜地躺著,像睡著了一般漂洋。 火紅的嫁衣襯著肌膚如雪遥皂。 梳的紋絲不亂的頭發(fā)上力喷,一...
    開封第一講書人閱讀 52,584評(píng)論 1 312
  • 那天,我揣著相機(jī)與錄音演训,去河邊找鬼弟孟。 笑死,一個(gè)胖子當(dāng)著我的面吹牛样悟,可吹牛的內(nèi)容都是我干的披蕉。 我是一名探鬼主播,決...
    沈念sama閱讀 41,085評(píng)論 3 422
  • 文/蒼蘭香墨 我猛地睜開眼乌奇,長(zhǎng)吁一口氣:“原來是場(chǎng)噩夢(mèng)啊……” “哼没讲!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起礁苗,我...
    開封第一講書人閱讀 40,023評(píng)論 0 277
  • 序言:老撾萬榮一對(duì)情侶失蹤爬凑,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后试伙,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體嘁信,經(jīng)...
    沈念sama閱讀 46,555評(píng)論 1 319
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 38,626評(píng)論 3 342
  • 正文 我和宋清朗相戀三年疏叨,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了潘靖。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 40,769評(píng)論 1 353
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡蚤蔓,死狀恐怖卦溢,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情秀又,我是刑警寧澤单寂,帶...
    沈念sama閱讀 36,439評(píng)論 5 351
  • 正文 年R本政府宣布,位于F島的核電站吐辙,受9級(jí)特大地震影響宣决,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜昏苏,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 42,115評(píng)論 3 335
  • 文/蒙蒙 一尊沸、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧贤惯,春花似錦洼专、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,601評(píng)論 0 25
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至浦译,卻和暖如春棒假,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背精盅。 一陣腳步聲響...
    開封第一講書人閱讀 33,702評(píng)論 1 274
  • 我被黑心中介騙來泰國打工帽哑, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人叹俏。 一個(gè)月前我還...
    沈念sama閱讀 49,191評(píng)論 3 378
  • 正文 我出身青樓妻枕,卻偏偏與公主長(zhǎng)得像,于是被迫代替她去往敵國和親粘驰。 傳聞我的和親對(duì)象是個(gè)殘疾皇子屡谐,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,781評(píng)論 2 361

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