【汉化】YEP.11 Item Core

YEP.11 – Item Core

The Item Core plugin changes a lot of things about your project, from the item menu to independent items. But more importantly, this plugin builds a bridge for those who wish to do more with their items…

物品核心插件改变了游戏的很多内容,从物品菜单到个人包裹,更重要的是这个插件为希望设置更多物品选项的人搭建了桥梁。

Hello, I am aware that Independent Items have a “maximum” amount. This “maximum” amount only serves to limit the player from buying too many items and filling up the inventory with junk. Gaining items through any other method, such as events and battle drops are still allowed.
你们好,我知道私人包裹有最大数量限制。这个最大数量限制只是为了限制玩家购买太多的物品,导致垃圾填满了仓库。你可以用其他方式来获得物品,例如事件,战斗掉落等。

Now, why is this? Because not every scenario can be envisioned by the developer. In most cases, the developer can be short sighted and may not be aware of the player’s inventory limits at the time. So, to mitigate this, I made it possible for the player to go above the limit but only through events and battle drops.
为什么呢?因为开发者不可能考虑所以情况。大多数下,开发者不能知道玩家的仓库容量。所以,为了减轻这种情况,除非有事件或者战斗掉落,否则玩家只能被限制数量。

Why those two? Because of key items. Key items, if given by events and/or battle drops, are a necessity to progress in a game. Should the developer be unaware of the player’s inventory and provide a key item that cannot be inserted into the inventory, the player will be locked out of the game through no fault of their own. So to prioritize the player, this system is enabled.
又为什么呢?因为关键物品。在游戏中,通过事件或者战斗给与关键物品是游戏重要的换届。如果开发者不知道玩家库存,并且提供的关键物品无法进入仓库,玩家将会被锁住游戏进程不能游戏。所以优先考虑玩家,这个系统被打开。

Therefore, it is functioning as intended as a way to work as a fail safe for the sake of the player incase of any developer shortsight.
所以,这是一项对于开发者来说相对安全的措施


Introduction


This plugin makes a couple of main changes to your game and the way items handled to allow a base core for future plugins.

这个插件改变了游戏很多主要设置,同时也是未来拓展插件所要依赖的核心插件。

1. Independent Items

If you choose to have maximum limit on your items, weapons, and/or armors, those items will become independent and have their own individual stats and whatnot. Independent items are capable of being upgraded, altered, modified, etc. and retain those changed properties independent of other items of the same type. Items without a maximum limit (aka 0), they will continue working as they normally did in RPG Maker MV.

如果你想要有物品的最大数量限制,那么这些物品会有独立的统计等。独立的。独立物品可以被提升,改变,修改等同时保留物品类型。没有最大数量限制的物品,他们将会以默认的物品管理方式运行。

2. New Scene_Item

The item scene has been revamped to look a little bit different. With the new layout, the item list is no longer two columns, but one. Added are a few more windows, such as the item status window (which displays basic item information), an item information window (which shows information applied to the item via upgrades, etc.), and an item action window, which appears when you select an item and it will ask you if you wish to Use the item or any action added via plugins (such as upgrading the item). If you wish to not use this revamp, you can disable it from the parameters.

物品界面看起来略微不同。有了分层,物品列表不在是2列,而是一列。并且添加了更多的界面,例如物品重要程度,物品信息,物品动作等。如果你不想使用这个修改,你可以用参数关闭它。

3. Random Variance

Newly acquired items that aren’t from shop can be given randomized stats to a small degree for items that are independent. Items can be above the stock value or below the stock value by the variance value. If you wish for an item to not have a variance value, you can use a notetag to set the variance value to 0. If you wish for all of your items to not have a variance value, you can set the parameter to 0.

不是从商店买来的物品可以一定程度上获得随机属性。数值可以在一个范围内浮动,如果你不希望有浮动,你可以使用标签设置为0.如果你希望所有物品都没有浮动,你可以设置参数为0.

Note: During battle test, independent items are disabled.
注意:在战斗测试中,个人物品菜单是关闭的。


Notetags


If you are using independent items, items that aren’t gained through the shop can have a random variance applied to its stats.

如果你希望使用独立物品,并且有一个随机属性,你可以使用下面标签

Item, Weapon, Armor Notetag

<Random Variance: x>

If this item is acquired through non-shop means, it will have random stats offset by x amount in either a positive or negative value.

设置随机属性x

<Not Independent item>

Sets an item that is independent by default to become a nonindependent item, allowing it to stack and making it unable to be affected by independent item modifiers.

非独立物品

<Priority Name>

This sets the item, weapon, or armor’s priority name to its database entry so that name schemes cannot affect the item.

设置物品的优先名,让数据库内的名字不会影响物品


Plugin Commands


If you wish to be able to add items to your player’s inventory without the random variance being applied to it, you can use the following plugin commands to adjust the settings for that.

如果你不希望为你的物品添加随机属性,你可以使用下面的命令改变设置

Plugin Command:

EnableVarianceStock

Causes all items acquired from this point forward to have its variance give stock (nonrandom) values.

开启固定值

DisableVarianceStock

Causes all items acquired from this point forward to have its variance give random values.

开启随机值

A small note is that if you enabled the variance stock values, if the player restarts the game by either going through the title screen or just turning off the program and starting it back up, the random variance will in effect again. This plugin command is meant to exist short term disable.

有个小提示需要注意,如果你开启了固定值,玩家重新通过游戏标题界面再次进入游戏或者关闭程序重新启动,随机值将会开启。插件命令只是一个暂时的关闭


Eventing Changes


A few changes have been made to eventing in order to adjust for independent items. They are as follows:

我们改变了一些事件让其可以调整独立物品。它们是:

Event Page Conditions and Conditional Branches:

Checking to see if an item exists in the party’s inventory will differ if the item can be independent. Instead, the condition can be fulfilled if there is an item, even when upgraded, that has the selected item as the base item. This means your Long Sword (+1) will fulfill the condition of having the target Long Sword item in the event editor.

条件及分支:当检查你的仓库里是否存在物品时,独立物品的+1属性不会造成影响,可以认为物品存在

Actor Has X Equip:

Just like the previous condition, this condition will be fulfilled if the actor has a weapon whose base item matches the event editor’s target item. The Long Sword (+1) will fulfill the condition of needing the actor to have a Long Sword item equipped.

装备:当检查你的装备里是否存在物品时,独立装备的+1属性不会造成影响,可以认为物装备存在

Change Equipment:

If the target equipment is independent, the game will first check to see if the actor has an item equipped with the matching base item. If not, the game will then check to see if the party has a matching base item in the inventory first and use that. If not, then the game will create a new stock version of the item and equip that to the actor.

装备改变:如果装备标签是独立物品,这个游戏会检查基础装备来适配,如果没找找到,则会检查个人仓库;如果依旧没有,则会创建一个类别。


Item Name System


For independent items, they have a unique name handling system. Independent items consist of four parts:

对于独立物品,他们有一个特殊的名字索引系统。包括如下:

Prefix Base Name Suffix Boost Count

The prefix, base name, suffix, and boost count are adjusted by plugins. Depending on the effects applied, they can be altered or changed. Using the name system, an item with a prefix of ‘Fiery’, base name of ‘Sword’, suffix being ‘of Might’, and a boost count of 5 will end up looking like:

前缀,名字,后缀,增量可以用插件来调整。如下便是一个例子:前缀Fiery,名字Sword,后缀of Might,增量5.

Fiery Sword of Might (+5)

These item would appear that way only if its various name parts have been altered some way or another. However, there is a fifth name convention, and that is the priority name. If an item has a priority name, it will completely overwrite the current name scheme with just the priority name itself. So even if the item’s name is ‘Fiery Sword of Might (+5)’, if the item’s priority name is ‘Legendary Blade’, then ‘Legendary Blade’ will take priority.

如果设置了其他名字,则不会显示带有前后缀增量的名字


Lunatic Mode – Custom Info Window Display


If you want to display unique and custom stuff into your info window on the side, you can use the following notetags:
如果你想自定义一些选项,可以使用如下:

Item, Weapon, Armor Notetags:

<Info Text Top>
text
text
</Info Text Top>

Type in extra information you wish to type in for the item info window here, whether it is lore or other information. Text codes can be used. Information here is is displayed towards the top of the info window.

顶部显示文字

<Info Text Bottom>
text
text
</Info Text Bottom>

Type in extra information you wish to type in for the item info window here, whether it is lore or other information. Text codes can be used. Information here is is displayed towards the bottom of the info window.

底部显示文字

<Info Eval>
var variableId = 1;
var value = 500;
$gameVariables.setValue(variableId, value);
</Info Eval>

If you know JavaScript, you can use these notetags to run some code before displaying any new info. This way, if you plan on using text codes that display variable values, you can run a bit of code before displaying them to synch up what’s shown in the item info window.

显示自定义信息


Happy RPG Making!

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

推荐阅读更多精彩内容

  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的阅读 13,459评论 5 6
  • 介绍 tensorflow是由google开源的一个用于机器学习和神经网络研究的library。官网地址为http...
    YunaY阅读 2,641评论 1 4
  • 一个有雨有肉的晚上 和你分一瓶酒
    明月Doris阅读 201评论 0 1
  • 看到自己在去年写的这篇文章,突然觉得这个可以一直写下去,写写在2字头的那些被虚度浪费的日子。 昨天初中的同学来找我...
    薰衣草jia阅读 578评论 0 0
  • 看过天津卫视爱情保卫战的节目,里面印象最深的属涂磊,雷鸣,都是碰见糊涂人,着急上火,不吐不快的人,两者之间再选一个...
    67fbaec5208f阅读 370评论 0 1