Yanfly's Skill Cost Item ( http://yanfly.moe/2015/12/12/yep-43-skill-cost-items/ )
allows you to have items be used as a skill resource.
Yanfly's Item Core ( http://yanfly.moe/2015/10/16/yep-11-item-core/ )
allows for various features, one being able to have independent items.
The skill cost item specifically points out:
"To enable skills to utilize items as costs, use the following notetags:
Skill Notetags:
<Item x Cost: y>
<Weapon x Cost: y>
<Armor x Cost: y>
This will set the cost of the item, weapon, or armor x to require y of it before it can be used. If you are using YEP_ItemCore, independent items cannot be used as item costs as the game will not distinguish which of the independent items is fit to be used. "
Is it possible to overwrite independent items disabling the skill cost feature? As in, making the game able to select an independent item (even if it comes down to randomly selecting) to be used. I think I understand the risks involved, but I'd rather deal with those risks.
Edit: The <Not Independent item> notetag doesn't help. If the use of that notetag can enable a work around, that'd be perfect, I think.
Edit 2: From line 402 (Skill Cost Item), the following piece of code can be found. I'm thinking of editing/removing the "if (Imported.YEP_ItemCore && this.isIndependent(item)) return;" line, but I'm unsure what consequences that may cause.
allows you to have items be used as a skill resource.
Yanfly's Item Core ( http://yanfly.moe/2015/10/16/yep-11-item-core/ )
allows for various features, one being able to have independent items.
The skill cost item specifically points out:
"To enable skills to utilize items as costs, use the following notetags:
Skill Notetags:
<Item x Cost: y>
<Weapon x Cost: y>
<Armor x Cost: y>
This will set the cost of the item, weapon, or armor x to require y of it before it can be used. If you are using YEP_ItemCore, independent items cannot be used as item costs as the game will not distinguish which of the independent items is fit to be used. "
Is it possible to overwrite independent items disabling the skill cost feature? As in, making the game able to select an independent item (even if it comes down to randomly selecting) to be used. I think I understand the risks involved, but I'd rather deal with those risks.
Edit: The <Not Independent item> notetag doesn't help. If the use of that notetag can enable a work around, that'd be perfect, I think.
Edit 2: From line 402 (Skill Cost Item), the following piece of code can be found. I'm thinking of editing/removing the "if (Imported.YEP_ItemCore && this.isIndependent(item)) return;" line, but I'm unsure what consequences that may cause.
Code:
DataManager.processSCIObjItemCost = function(obj, item, cost, code) {
if (!item) return;
if (Imported.YEP_ItemCore && this.isIndependent(item)) return;
var arr = [item.id, cost, code];
if (this.isItem(item)) {
obj.useItemCost.push(arr);
} else if (this.isWeapon(item)) {
obj.useWeaponCost.push(arr);
} else if (this.isArmor(item)) {
obj.useArmorCost.push(arr);
}
};