【汉化】YEP.136 – Item Requirements

YEP.136 – Item Requirements – RPG Maker MV

Introduction

This plugin requires YEP_ItemCore. Make sure this plugin is located under YEP_ItemCore in the plugin list.

这个插件需要 YEP_ItemCore.确保这个插件在 YEP_ItemCore列表下面

In RPG Maker MV, items only have a few restrictions on them by default, whether or not they can be used in or out of battle or never. There aren’t any other conditions that you can set that would otherwise determine if an item can or cannot be used. This plugin gives more ways to restrict item usage based on switches, variables, the actors using them, classes, state requirements, and more.

在RMMV里面,物品通常只有简单的限制来决定它们是否可以在战斗中使用,并没有其他可以自定义的情况来决定它们。因此,这个插件会提供给你物品使用的更多限制,例如开关、变量、职业等等

Notetags

Use the following notetags to enforce requirements for items before they can be used.

使用下面的备注栏来设置物品能否使用

Item Notetags:

<Enable Requirements>
condition
condition
</Enable Requirements>

– Replace ‘condition’ with the desired condition setup. You can insert any number of conditions inside the notetags. All of the conditions must be met before the item can be used. Look below for a list of the possible conditions that can be used.

你只需要设置condition为你需要的限制条件即可,下面是限制条件可使用的命令列表

Conditions:
Eval: code
– Replace ‘code’ with JavaScript code that you’d like to run a check against to enable the item. If the check returns false, the item will be disabled regardless of other conditions.
设置某变量是否和指定数值或文本相同
Examples:
Eval: $gameActors.actor(1).name() === ‘Harold’
Eval: $gameActors.leader().name() !== ‘Ralph’
Actor: x
Actor: x, x, x
– Requires actor(s) ID ‘x’ to use the item. If the actor isn’t the one using the said item, then the item is disabled and cannot be used regardless of other conditions.
设置可以使用的角色
Not Actor: x
Not Actor: x, x, x
– Requires the actor using the item to NOT be actor ID ‘x’. If the actor’s ID matches one of the listed ‘x’, then the item is disabled and cannot be used regardless of other conditions.
设置不可以使用的角色
Examples:
Actor: 1
Actor: 2, 3, 4, 5, 6
Not Actor: 7
Not Actor: 8, 9, 10
Armor: x
Armor: x, x, x
– Requires the actor to specifically have armor ID ‘x’ equipped to use the item. If multiple ‘x’ are used, the actor can have any of them equipped. If the actor does not have armor ‘x’ equipped, then the item is disabled and cannot be used regardless of other conditions.
装备指定护甲时可以使用
Not Armor: x
Not Armor: x, x, x
– Requires the actor to not have armor ID ‘x’ equipped to use the item. If multiple ‘x’ are used, the actor cannot have any of them equipped. If the actor does have armor ‘x’ equipped, then the item is disabled and cannot be used regardless of other conditions.
装备指定护甲时不可以使用
Examples:
Armor: 1
Armor: 2, 3, 4, 5, 6
Not Armor: 7
Not Armor: 8, 9, 10
Class: x
Class: x, x, x
– Requires class(es) ID ‘x’ to use the item. If the actor’s class doesn’t match the item requirement, then the item is disabled and cannot be used regardless of other conditions.
指定职业可以使用
Not Class: x
Not Class: x, x, x
– Requires the actor using the item to NOT be class ID ‘x’. If the actor’s class ID matches one of the listed ‘x’, then the item is disabled and cannot be used regardless of other conditions.
指定职业不可以使用
Examples:
Class: 1
Class: 2, 3, 4, 5, 6
Not Class: 7
Not Class: 8, 9, 10
Subclass: x
Subclass: x, x, x
– Requires YEP_X_Subclass.js
– Requires subclass(es) ID ‘x’ to use the item. If the actor’s class doesn’t match the item requirement, then the item is disabled and cannot be used regardless of other conditions.
需要YEP_X_Subclass插件支持
指定副职业可以使用
Not Subclass: x
Not Subclass: x, x, x
– Requires YEP_X_Subclass.js
– Requires the actor using the item to NOT be subclass ID ‘x’. If the actor’s subclass ID matches one of the listed ‘x’, then the item is disabled and cannot be used regardless of other conditions.
需要YEP_X_Subclass插件支持
指定副职业不可以使用
Examples:
Subclass: 1
Subclass: 2, 3, 4, 5, 6
Not Subclass: 7
Not Subclass: 8, 9, 10
Either Class: x
Either Class: x, x, x
– Requires YEP_X_Subclass.js
– The actor’s primary class or subclass ID has to match ‘x’. If at least one of them match, then the condition passes. Otherwise, the condition fails and the item is disabled and cannot be used regardless of other conditions.
需要YEP_X_Subclass插件支持
主职业或副职业满足一个即可使用
Neither Class: x
Neither Class: x, x, x
– Requires YEP_X_Subclass.js
– Requires YEP_X_Subclass.js
– The actor’s primary class or subclass ID has to NOT match ‘x’. If at least one of them match, then the condition fails and the item is disabled and cannot be used regardless of other conditions.
需要YEP_X_Subclass插件支持
主职业或副职业都不满足才可使用
Examples:
Either Class: 1
Either Class: 2, 3, 4, 5, 6
Neither Class: 7
Neither Class: 8, 9, 10
State: x
State: x, x, x
– Requires the actor using the item to be affected by state ‘x’. If multiple ‘x’ are used, the actor can be affected by any of them. If the actor is not affected by state ‘x’, then the condition fails and the item is disabled and cannot be used regardless of other conditions.
存在指定状态时可以使用
Not State: x
Not State: x, x, x
– Requires the actor using the item to be not affected by state ‘x’. If multiple ‘x’ are used, the actor cannot be affected by any of them. If the actor is not affected by state ‘x’, then the condition fails and the item is disabled and cannot be used regardless of other conditions.
存在指定状态时不可以使用
Examples:
State: 10
State: 11, 12, 13, 14, 15
Not State: 16
Not Stage: 17, 18, 19, 20
Switch Off: x
Switch Off: x, x, x
– Requires switch(es) x to be OFF before the item can be used. If the switch is ON, then the item is disabled and cannot be used regardless of other conditions.
指定开关关闭时才可以使用
Examples:
Switch Off: 1
Switch Off: 2, 3, 4, 5, 6

Switch On: x
Switch On: x, x, x
– Requires switch(es) x to be ON before the item can be used. If the switch is OFF, then the item is disabled and cannot be used regardless of other conditions.
指定开关关闭时才可以使用
Examples:
Switch On: 1
Switch On: 2, 3, 4, 5, 6
Variable x eval
– Makes a check against variable x. Replace ‘x’ with an integer value and ‘eval’ with the code check you wish to run it against.
指定变量满足条件是可以使用
Examples:
Variable 1 >= 5
Variable 2 < 6
Variable 3 === 7
Variable 4 !== 8
Weapon: x
Weapon: x, x, x
– Requires the actor to specifically have weapon ID ‘x’ equipped to use the item. If multiple ‘x’ are used, the actor can have any of them equipped. If the actor does not have weapon ‘x’ equipped, then the item is disabled and cannot be used regardless of other conditions.
装备指定武器时可以使用
Not Weapon: x
Not Weapon: x, x, x
– Requires the actor to not have weapon ID ‘x’ equipped to use the item. If multiple ‘x’ are used, the actor cannot have any of them equipped. If the actor does have weapon ‘x’ equipped, then the item is disabled and cannot be used regardless of other conditions.
装备指定武器时不可以使用
Examples:
Weapon: 1
Weapon: 2, 3, 4, 5, 6
Not Weapon: 7
Not Weapon: 8, 9, 10
Weapon Type: x
Weapon Type: x, x, x
– Requires the actor to have weapon type ‘x’ equipped. If multiple ‘x’ are used, the actor can have any of the ‘x’ weapon types equipped. If the actor does not have the matching weapon types, then the item is disabled and cannot be used regardless of other conditions.
装备指定武器类型时可以使用
Not Weapon Type: x
Not Weapon Type: x, x, x
– Requires the actor to not have weapon type ‘x’ equipped. If multiple ‘x’ are used, the actor cannot have any of the ‘x’ weapon types equipped. If the actor does have the matching weapon types, then the item is disabled and cannot be used regardless of other conditions.
装备指定武器类型时不可以使用
Examples:
Weapon Type: 1
Weapon Type: 2, 3, 4, 5, 6
Not Weapon Type: 7
Not Weapon Type: 8, 9, 10

Lunatic Mode – Custom Enable Requirements

For those with JavaScript experience, you can create your own custom requirements for whether or not items can be used using the following notetag setup:

对于熟练使用JS语言的人,你可以编程实现自己的需求

Item Notetags:

<Custom Enable Requirement>
condition = battler.level >= item.price;
</Custom Enable Requirement>

– The ‘condition’ variable will determine whether or not the item will be enabled/disabled. If the ‘condition’ variable returns true, then the item is enabled provided all other conditions (if any) are also met. Otherwise, the item is disabled and cannot be used. The ‘battler’ variable will refer to the battler using the item. The ‘item’ variable will refer to the item being checked.

Happy RPG Making!

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 204,732评论 6 478
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 87,496评论 2 381
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 151,264评论 0 338
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 54,807评论 1 277
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 63,806评论 5 368
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,675评论 1 281
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 38,029评论 3 399
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,683评论 0 258
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 41,704评论 1 299
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,666评论 2 321
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,773评论 1 332
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,413评论 4 321
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 39,016评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,978评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,204评论 1 260
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 45,083评论 2 350
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,503评论 2 343

推荐阅读更多精彩内容

  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的阅读 13,432评论 5 6
  • 《好方法》 欣菲妈妈管欣菲时,总说一天得喝好多水,但欣菲不爱喝水,妈妈就让他一天喝一杯水。 可欣菲一杯水都想喝,他...
    一车阅读 247评论 0 1
  • 十七岁的我趴在姐姐肩头,嘤嘤啜泣。小妹儿、别哭了、眼泪该不值钱了......今早看了《七月与安生》,唯一想到的生死...
    artist依诺阅读 428评论 3 2
  • 1. CocoaPods 1>CocoaPods简介 CocoaPods是一个用来帮助我们管理第三方依赖库的工具。...
    keelZJP阅读 485评论 0 0
  • 已经是深秋的时节,脱去裙装的我已经准备好了冬装,刺骨的风慢慢开始在脸上掠过,这个城市似乎是没有秋天的,明明几日前的...
    格调8023阅读 253评论 0 0