【漢化】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.

這個(gè)插件需要YEP_ItemCore,請(qǐng)放在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.

有時(shí)候有很多物品道具對(duì)玩家沒有幫助仿荆,在這種情況下芙委,為什么不讓玩家選擇來分解掉他們獲得其他更有用的東西呢瓶埋?使用這個(gè)插件可以分解物品供炼,武器少梁,護(hù)甲饼问。使用不同的分解器可以獲得不同的物品


Notetags


Making items be disassemble-able can be done with these notetags:
使用下面標(biāo)簽讓物品具備可分解的屬性

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.

設(shè)置分解器類型

— Item Pool Format —

物品設(shè)置格式

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.

分解后得到此物品的數(shù)量

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.

分解后得到此物品的數(shù)量在一個(gè)范圍內(nèi)波動(dòng)

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.

分解后得到此物品的數(shù)量和概率

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.

分解后得到此物品隨機(jī)數(shù)量和概率

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

注意:當(dāng)把一個(gè)物品設(shè)置為分解器時(shí)考杉,他就不是獨(dú)立物品了

<Disassembler>

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

設(shè)置為分解器

<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.

設(shè)置分解器類型

<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.

設(shè)置特定分解器類型的分解成功率

<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.

分解時(shí)播放的聲音設(shè)置


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!

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末策精,一起剝皮案震驚了整個(gè)濱河市,隨后出現(xiàn)的幾起案子崇棠,更是在濱河造成了極大的恐慌咽袜,老刑警劉巖,帶你破解...
    沈念sama閱讀 217,657評(píng)論 6 505
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件枕稀,死亡現(xiàn)場(chǎng)離奇詭異询刹,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī)萎坷,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,889評(píng)論 3 394
  • 文/潘曉璐 我一進(jìn)店門凹联,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人哆档,你說我怎么就攤上這事蔽挠。” “怎么了瓜浸?”我有些...
    開封第一講書人閱讀 164,057評(píng)論 0 354
  • 文/不壞的土叔 我叫張陵澳淑,是天一觀的道長(zhǎng)。 經(jīng)常有香客問我斟叼,道長(zhǎng)偶惠,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,509評(píng)論 1 293
  • 正文 為了忘掉前任朗涩,我火速辦了婚禮,結(jié)果婚禮上绑改,老公的妹妹穿的比我還像新娘谢床。我一直安慰自己兄一,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,562評(píng)論 6 392
  • 文/花漫 我一把揭開白布识腿。 她就那樣靜靜地躺著出革,像睡著了一般。 火紅的嫁衣襯著肌膚如雪渡讼。 梳的紋絲不亂的頭發(fā)上骂束,一...
    開封第一講書人閱讀 51,443評(píng)論 1 302
  • 那天,我揣著相機(jī)與錄音成箫,去河邊找鬼展箱。 笑死,一個(gè)胖子當(dāng)著我的面吹牛蹬昌,可吹牛的內(nèi)容都是我干的混驰。 我是一名探鬼主播,決...
    沈念sama閱讀 40,251評(píng)論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼皂贩,長(zhǎng)吁一口氣:“原來是場(chǎng)噩夢(mèng)啊……” “哼栖榨!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起明刷,我...
    開封第一講書人閱讀 39,129評(píng)論 0 276
  • 序言:老撾萬榮一對(duì)情侶失蹤婴栽,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后辈末,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體愚争,經(jīng)...
    沈念sama閱讀 45,561評(píng)論 1 314
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,779評(píng)論 3 335
  • 正文 我和宋清朗相戀三年本冲,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了准脂。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 39,902評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡檬洞,死狀恐怖狸膏,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情添怔,我是刑警寧澤湾戳,帶...
    沈念sama閱讀 35,621評(píng)論 5 345
  • 正文 年R本政府宣布,位于F島的核電站广料,受9級(jí)特大地震影響砾脑,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜艾杏,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,220評(píng)論 3 328
  • 文/蒙蒙 一韧衣、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦畅铭、人聲如沸氏淑。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,838評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽假残。三九已至,卻和暖如春炉擅,著一層夾襖步出監(jiān)牢的瞬間辉懒,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 32,971評(píng)論 1 269
  • 我被黑心中介騙來泰國(guó)打工谍失, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留眶俩,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 48,025評(píng)論 2 370
  • 正文 我出身青樓袱贮,卻偏偏與公主長(zhǎng)得像仿便,于是被迫代替她去往敵國(guó)和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子攒巍,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,843評(píng)論 2 354

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

  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 9,495評(píng)論 0 23
  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的閱讀 13,471評(píng)論 5 6
  • 人生會(huì)遇到一些超出你理解和想象的事嗽仪,郁悶不開心的同時(shí)能讓你更正視人性更了解自己,不要成為那種人你要成為比那種人更厲...
    天空上面還是天空閱讀 394評(píng)論 0 0
  • 1柒莉、從產(chǎn)品定位與愿景 生活類電商闻坚、品質(zhì)、嚴(yán)選 可以看出嚴(yán)選的定位是生活類品質(zhì)電商兢孝; 從購(gòu)買經(jīng)歷來看窿凤,網(wǎng)易對(duì)供應(yīng)鏈有...
    沉默的羔洋閱讀 739評(píng)論 0 0
  • 青春雳殊,一個(gè)永遠(yuǎn)不會(huì)過時(shí)的話題,因?yàn)橛腥讼蛲靶⒂腥苏湎Ш煌骸⒂腥藨涯睿總€(gè)人生活的經(jīng)歷不同痢艺,每個(gè)人都有不同的話說仓洼。《最好...
    夏拾昭華閱讀 622評(píng)論 5 6