YEP.60 – More Currencies
Introduction
This plugin requires YEP_ShopMenuCore. Make sure this plugin is located under YEP_ShopMenuCore in the plugin list.
這個插件需要YEP_ShopMenuCore。確保這個插件在YEP_ShopMenuCore之下。
As an extension of the Shop Menu Core, this plugin enables you to have items cost multiple currencies or different currencies using variables and/or other items themselves.
作為商店菜單插件的拓展插件,可以讓你通過變量或者物品有更多的貨幣
Instructions – Variables as Currency
If you’re planning to use variables as currency (and you should!), you can set them up in a way to have them show an icon. Name your currency variable as such:
如果你想使用變量作為貨幣,你需要這樣設置他們
\i[x]Variable Name
When displayed in shops, it will show the icon and the name. However, if you want it to display only the icon and/or exclude some text, place the text inside a << and >> bracket like such:
當顯示在商店的時候,它會顯示圖標和名字。如果你希望只顯示圖標,可以用《》來隱藏
\i[x]<<Variable Name>>
That way, only the icon will be shown while all the next inside the << >> will be hidden.
這個方法,只有圖標顯示,在《》內的文本被隱藏
Instructions – Proxies
Perhaps in your game, you would like for the player to have multiple ways of purchasing an item through one currency or another. However, inputting the costs for all of the options makes the item cost every single aspect. But, what you can do is make proxies of these items. For example, in the database will will have the following:
在游戲里,你玩家用不同的貨幣有很多購買方式。對于所有選項重新設置很麻煩。你可以使用物品代理功能,例如,數據庫內這樣寫
Potion – 50 Gold
Potion (Proxy A) – 5 Gems
Potion (Proxy B) – 3 Jewels
Placing all three items in your shop normally would result in three types of potions that do not stack into the same category. However, by using this proxy notetag, you can make them all attribute to the same Potion item:
如果簡單把這3個物品放入商店,將會產生3種相同類型的物品。可以,使用代理標簽,你可以設置為一個物品
<Proxy Buy: x>
<Proxy Buy: name>
If you’re using this item as a proxy for another item (so you can set a different cost for the item), this item will end up representing item x, weapon x, or armor x of the same type. If you’re using a named notetag and you have multiple entries in your database with the same name, priority will be given to the item, weapon, or armor with the highest ID.
如果你使用了物品代理,這個物品將會代表物品x,武器x,或者裝備x。如果你使用了名字標簽,你可以代替名字相同的物品,優先選擇最高ID物品。
If Proxy A and B link back to the main Potion, then whenever the player buys the Proxies in the shop, they will link back to the main Potion, making it possible to buy the same item using different currencies.
如果代理A和代理B返回主物品,玩家可以通過商店購買代理從而得到主物品,讓其實現不同貨幣來購買同一物品。
Notetags
You can use the following notetags to adjust various properties for more currencies for your items, weapons, and armors.
你可以使用下面的標簽來調整貨幣
Item, Weapon, and Armor Notetags:
<Variable x Buy Price: y>
This sets the currency of this item, weapon, or armor to variable x with a buy price of y. You can insert multiples of this notetag to have more than one variable cost for that item, weapon, or armor.
設置變量x來購買,價格為y,你可以插入多個標簽來獲得多個變量貨幣來購買物品
<Variable x Sell Price: y>
This makes it that when selling this item, weapon, or armor, the player will gain variable x in y amount. You can insert multiples of this notetag to have more than one variable cost for that item, weapon, or armor.
設置變量x來出售,價格為y,你可以插入多個標簽來獲得多個變量貨幣來出售物品
<Item x Buy Price: y>
<Item name Buy Price: y>
This sets the currency of this item, weapon, or armor to cost item x (or the named item) with a buy price of y. You can insert multiples of this notetag to have more than one item cost for that item, weapon, or armor. If you’re using Item Core, this will not work on independent items. If you are using the named version of the notetag and have multiple items in your database of the same name, priority will be given to the item with the highest ID.
設置物品x來購買,數量為y,你可以插入多個標簽來獲得多個物品貨幣來購買物品。如果你使用了物品核心插件,對于獨立物品不會生效。如果你使用了名字代碼并且有多個重名的物品,將會優先選擇ID最高
<Item x Sell Price: y>
<Item name Sell Price: y>
When selling this item, weapon, or armor, the player will get item x (or the named item) with a quantity of y. You can insert multiples of this notetag to have more than one item cost for that item, weapon, or armor. If you’re using Item Core, this will not work on independent items. If you are using the named version of the notetag and have multiple items in your database of the same name, priority will be given to the item with the highest ID.
設置物品x來出售,數量為y,你可以插入多個標簽來獲得多個物品貨幣來出售物品。如果你使用了物品核心插件,對于獨立物品不會生效。如果你使用了名字代碼并且有多個重名的物品,將會優先選擇ID最高
<Weapon x Buy Price: y>
<Weapon name Buy Price: y>
This sets the currency of this item, weapon, or armor to cost weapon x (or the named weapon) with a buy price of y. You can insert multiples of this notetag to have more than one weapon cost for that item, weapon, or armor. If you’re using Item Core, this will not work on independent items. If you are using the named version of the notetag and have multiple items in your database of the same name, priority will be given to the item with the highest ID.
設置武器x來購買,數量為y,你可以插入多個標簽來獲得多個武器貨幣來購買物品。如果你使用了物品核心插件,對于獨立物品不會生效。如果你使用了名字代碼并且有多個重名的物品,將會優先選擇ID最高
<Weapon x Sell Price: y>
<Weapon name Sell Price: y>
When selling this item, weapon, or armor, the player will get weapon x (or the named weapon) with a quantity of y. You can insert multiples of this notetag to have more than one weapon cost for that item, weapon, or armor. If you’re using Item Core, this will not work on independent items. If you are using the named version of the notetag and have multiple items in your database of the same name, priority will be given to the item with the highest ID.
設置武器x來出售,數量為y,你可以插入多個標簽來獲得多個武器貨幣來出售物品。如果你使用了物品核心插件,對于獨立物品不會生效。如果你使用了名字代碼并且有多個重名的物品,將會優先選擇ID最高
<Armor x Buy Price: y>
<Armor name Buy Price: y>
This sets the currency of this item, weapon, or armor to cost armor x (or the named armor) with a buy price of y. You can insert multiples of this notetag to have more than one armor cost for that item, weapon, or armor. If you’re using Item Core, this will not work on independent items. If you are using the named version of the notetag and have multiple items in your database of the same name, priority will be given to the item with the highest ID.
設置裝備x來購買,數量為y,你可以插入多個標簽來獲得多個裝備貨幣來購買物品。如果你使用了物品核心插件,對于獨立物品不會生效。如果你使用了名字代碼并且有多個重名的物品,將會優先選擇ID最高
<Armor x Sell Price: y>
<Armor name Sell Price: y>
When selling this item, weapon, or armor, the player will get armor x (or the named armor) with a quantity of y. You can insert multiples of this notetag to have more than one armor cost for that item, weapon, or armor. If you’re using Item Core, this will not work on independent items. If you are using the named version of the notetag and have multiple items in your database of the same name, priority will be given to the item with the highest ID.
設置裝備x來出售,數量為y,你可以插入多個標簽來獲得多個裝備貨幣來出售物品。如果你使用了物品核心插件,對于獨立物品不會生效。如果你使用了名字代碼并且有多個重名的物品,將會優先選擇ID最高
<Proxy Buy: x>
<Proxy Buy: name>
If you’re using this item as a proxy for another item (so you can set a different cost for the item), this item will end up representing item x, weapon x, or armor x of the same type. If you’re using a named notetag and you have multiple entries in your database with the same name, priority will be given to the item, weapon, or armor with the highest ID.
如果你使用物品作為代理,這個物品最后代表物品x,或者武器裝備x。如果你使用了名字代碼,數據庫會優先選擇ID最高的