【汉化】YEP.96 – Item Disassemble

YEP.96 – Item Disassemble


Introduction


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

这个插件需要YEP_ItemCore,请放在YEP_ItemCore下面

Sometimes, there are items that are simply not useful to the player anymore. In that case, why not give players the option to break down the item into something a little bit more useful? Using this plugin, players can break down and disassemble items, weapons, and armors into something else. Using different types of disassemblers, the player can get different types of items back, too.

有时候有很多物品道具对玩家没有帮助,在这种情况下,为什么不让玩家选择来分解掉他们获得其他更有用的东西呢?使用这个插件可以分解物品,武器,护甲。使用不同的分解器可以获得不同的物品


Notetags


Making items be disassemble-able can be done with these notetags:
使用下面标签让物品具备可分解的属性

Item, Weapon, and Armor Notetags:

<Disassemble Pool>
item
item
</Disassemble Pool>

This is the pool of items that will be given when using any disassemblers. Replace the ‘item’ in the notetag setup with one of the syntax in the notetag Item Pool Format list below.

分解后可以获得的物品

<Disassemble Pool: type>
item
item
</Disassemble Pool: type>

This is the pool of items made specifically for the disassembler type. The items listed in this pool will only drop if the disassembler’s type matches this pool’s type. Replace the ‘item’ in the notetag setup with one of the syntax in the notetag Item Pool Format list below.

设置分解器类型

— Item Pool Format —

物品设置格式

item x
weapon x
armor x
name

– This adds item, weapon, or armor ID x to the disassemble pool. If you plan on using the item’s name and multiple objects in the database have the same name, priority will be given to items, weapons, then armors in that order. Then, priority is then given to the entry with the highest ID.

物品ID或者名字

item x: y%
weapon x: y%
armor x: y%
name: y%

– If you wish for a chance of getting an item when disassembling instead of a 100% chance of getting it, you can use this format. For the item, there will be a y% chance of getting the item when disassembling.

分解后得到此物品的概率

x2 item y
x3 weapon y
x4 armor y
x5 name

– When disassembling, items can yield quantities. You can set the amount of an item given when disassembling using this setup.

分解后得到此物品的数量

x2-3 item y
x3-5 weapon y
x5-8 armor y
x8-10 name

– If you wish for there to be random quantity amounts, you can use this disassembling format to set the amount of quantity given of an item from a minimum amount to a maximum amount.

分解后得到此物品的数量在一个范围内波动

x2 item y: z%
x3 weapon y: z%
x4 armor y: z%
x5 name: z%

– To make an item yield a larger quantity than 1 with a random success rate of doing it, use the above format for the item line.

分解后得到此物品的数量和概率

x2-3 item y: z%
x3-5 weapon y: z%
x5-8 armor y: z%
x8-10 name: z%

– To give a random amount of item quantities while having a random success rate of acquiring them item during a disassembling process, use the above item line format.

分解后得到此物品随机数量和概率

*NOTE: When turning an item into a Disassembler, it will become a non-Independent item.

注意:当把一个物品设置为分解器时,他就不是独立物品了

<Disassembler>

– This item can be used to disassemble all types of items. This will fall under the ‘All’ category.

设置为分解器

<Disassembler: +x%>
<Disassembler: -x%>

– This item can be used to disassemble all types of items with a +/- x% success rate than normal. This will fall under the ‘All’ category.

改变分解器概率

<Disassembler: type>

– This item can be used to disassemble item categories for ‘All’ and ‘type’ where ‘type’ is the disassemble pool type. Insert multiples of this notetag if you want this item to be able to disassemble more pool types.

设置分解器类型

<Disassembler: type +x%>
<Disassembler: type -x%>

– This item can be used to disassemble item categories for ‘All’ and ‘type’ where ‘type’ is the disassemble pool type. This has a success rate change of +/-% than normal. Insert multiples of this notetag if you want this item to be able to disassemble more pool types.

设置特定分解器类型的分解成功率

<Disassemble Sound Name: filename>
<Disassemble Sound Volume: x>
<Disassemble Sound Pitch: x>
<Disassemble Sound Pan: +x> or <Disassemble Sound Pan: -x>

– When this item is disassembled, it will play this sound effect. The filename is case sensitive. Do not include the filename extension.

分解时播放的声音设置


Lunatic Mode – Custom Disassembled Effect


For those with JavaScript experience, you can have custom effects occur when an item is disassembled using the following notetag:

自定义模式

Item, Weapon, and Armor Notetags:

<Custom Disassembled Effect>
if (targetItem.name === ‘Great Sword’) {
results.push($dataItems[1]);
} else if (effectItem.name === ‘Salvage Kit’) {
results.push($dataItems[2]);
}
</Custom Disassembled Effect>

– The ‘results’ variable is an array that contains all of the items that have been collected. The variable ‘targetItem’ refers to the item being disassembled and ‘effectItem’ refers to the item disassembling the target item. This will occur before any custom disassembler effects.

自定义分解器和分解物品的效果

*NOTE: This requires that item to have items to gain when disassembling to begin with or else the item cannot be disassembled.


Lunatic Mode – Custom Disassembler Effect


For those with JavaScript experience, you can have custom effects occur when an item is used to disassemble using the following notetag:

自定义模式

Item, Weapon, and Armor Notetags:

<Custom Disassembler Effect>
if (targetItem.name === ‘Great Sword’) {
results.push($dataItems[1]);
} else if (effectItem.name === ‘Salvage Kit’) {
results.push($dataItems[2]);
}
</Custom Disassembler Effect>

– The ‘results’ variable is an array that contains all of the items that have been collected. The variable ‘targetItem’ refers to the item being disassembled and ‘effectItem’ refers to the item disassembling the target item. This will occur after any custom disassembled effects.

自定义分解器效果

*NOTE: This item is required to have a disassembler type.


Plugin Commands


You can use the following plugin commands to alter Item Disassemble related aspects of your game:

插件命令

Plugin Command:

ShowItemDisassemble

– Shows the Disassemble command in the item menu if the item permits disassembling.

显示菜单中的分解命令

HideItemDisassemble

– Hides the Disassemble command in the item menu regardless.

隐藏菜单中的分解命令


Happy RPG Making!

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

推荐阅读更多精彩内容