So you're saying each skill has it's own individual item?
Ok, well I came up with a solution (that I hate) that will allow you to just use Notetags to specify which items are teaching skills.
Replace the code in the .js file with this
let spAlias_GameActor_consumeItem = Game_Actor.prototype.consumeItem;
Game_Actor.prototype.consumeItem = function(item){
let temp = item.note;
let efx;
let skill;
if(temp.includes("SkillReel")){
efx = item.effects.filter(function(obj){return obj.code == 43})
if(efx.length > 0){
skill = efx[0].dataId;
if(this._skills.contains(skill)) $gameParty.gainItem(item, 1);
}
}
$gameVariables.setValue(1, this._actorId);
spAlias_GameActor_consumeItem.call(this, item);
}
Inside of the notebox in the database of ANY item that adds a skill, type
SkillReel
Also, use the effects section of that item to add the skill. Now, when you consume the item, it will teach the skill. If the target already knows that skill, it simply adds the item back into inventory.
Your quote is first example I showed you, did you try the second one? It worked for me. Consuming the item would add the skill if my character didn't have it. If they already had the skill, it would add it back. Make sure you try the second example, replace the first example with the code from the second.
I'm not sure what you mean, because I just tested it again and it works fine for me. It adds the skill if my actor doesn't have it, returns the item if they already have it.
.....I'm not gonna argue with you lol I would recommend however that you re-read what I posted. We don't live in a world where it works on my computer but not on yours.