MZ Skill + Item Bug in fresh Project.

I created a Item that let one Ally learn a Skill, if i use it once, he learns it, if i try it a second time, than the Item cant be used. That works.

If a NPC allready let me learn that Skill, than i can not use the Item. That also works.

If i give that Skill to the Actor in the Database Settings in the Class Menu. That also works, i cant use the Item.

But:
If i give that Skill to the Actor in the Database Settings in the Actor Tab. Than the Bug occurs that i can use the Item 1x
even if the Skill is learned allready.

Not sure if this allready got reported.
How did you create that item? can you give us screenshots?

There are several things that could have happened here, and not all of them are bugs.
For example there is a difference between skill learned and skill trait assigned that could explain that behaviour, and that is intentional and not a bug.
Here is the Screenshot, but the Item works in mostly all described cases as intended, like a Healthpotion but with 1 single Skill, the Bug only occurs in the Last example.

Iam aware that if i add multiple Effects, that the behavior would most likely behave differently.
itemskillbug_1587484.png
and how do you give the skill to the actor? There are two ways to do that after all...
As Andar has implied, added skills and learned skills are different things.

A skill can be learned by:
  • Levelling up in a class;
  • Using an item/skill with a Learn Skill effect;
  • Using the Change Skill command.
By contrast, a skill can be added with an Add Skill trait. If the trait-bearing object (e.g. class, state, weapon, armor) is removed from the actor, they will also lose the skill.
Database Actors Tab on the Right Side - There i can assign the Skill and there the Bug Appears.
I did not test the Option with adding Skill at certain Levels. Not used in this constellation.
But:
If i Add the Skill in Database Class Tab on the right Side, than it works.

Thats why i assume there is a Bug in the Actors Tab.

Because no matter where i add the Skill, the Actor has it in its Skill Menu.
But he cannot use the Item if he has that Skill, that works, but it does not work in that one described case. He has the skill but can still use the Item 1x.
testos1515.png
testos4545.png

Edit: Just testing adding by Level, that also works fine. Like all the other cases except that one.
I'm not sure why you're getting that result. I just tested with various setups (3 separate playtests) and I did not see any differences:
  1. "Add Skill: Test" trait on Actor - can use "Learn Skill: Test" item once.
  2. "Add Skill: Test" trait on their Class - can use "Learn Skill: Test" item once.
  3. "Add Skill: Test" trait on their Weapon - can use "Learn Skill: Test" item once.
This is the expected behaviour: Learn Skill is a valid menu item effect if the target has not yet learned that skill. The skill is, as mentioned, available if it is learned or if it is added by a trait.
Like all the other cases except that one.
That is because adding a skill is NOT the same as learning a skill.

THIS IS NO BUG!!!!

Adding a skill is supposed to be used like adding a skill by equipping something. And if you remove that equipment, then the skill must also be removed again.
Because of this, adding a skill is not the same as learning a skill, because a learned skill remains even after the equipment is removed.

And due to this you can learn a skill even if it is already added - that is not a bug but intentional, because by learning the skill you guarantee to always have it even if an equipment or state with the skill-add is removed.
"Add Skill: Test" trait on their Class - can use "Learn Skill: Test" item once.
If I'm reading Bex's posts right, this isn't happening when they use the Add Skill trait through the Class tab, which is what they seem to want, but is not the way it should be working.
But in my 2 Pictures i use Trait to Add Skill in both cases, but both cases behave differently.

Andars explanation makes sense, and i will definitelly look further into that.
But because of that it appears even more like a Bug.

When i add skill in class traid tab, you cannot eat the Item. (As wanted ; works fine)
When i add skill in Actors traid tab, you can eat the Item. (This is the Bug i mean)

I do not want to build anything, iam just observing this behavior and am wondering
why in Database the Traid windows behave differentelly even if it is both ADD SKILL.

and Andars explanation would make sense if the behavior would be reversed.
Because i can change the Class of an Actor and loose the Skill but i cannot change the Actor of an Actor, because an Actor just got Traids that never change and cant be unequiped. So why would he be able or have the need to be able to use Item 1x in this case. Since there is no equipment involved in this or any
other Way he could loose the Skill. And in Class Tab the exact same Traid Window with add Skill behaves differently.

Sorry my english aint the best, thanks for all the patience.

Edit:
@Sword_of_Dusk is right, but iam ok how the Class Traid Tab works when using Add Skill.
Iam confused about the Actors Traid Tab when using Add Skill.

Edit:
The PRoblem is i wanted to give the Player Skills in Actors Traid Tab. But he can use the Magic Item Books even if he allready got the Skill. If i use the Traids in Class Tab, it works perfectly fine, he cant eat the Magic Books.
Poblem is when i change my Class than i forget some Skills, thats why i wanted to use Actors Traid Tab for the Skills the individual Actors got from the get go for the whole Game. But than he can waste the MAgic Books even if he got the Skill. That is why i believe the Actors Traid Tab should behave like the Class Traid Tab. And i would be disapointed if it get changed like you explained @caethyril,
i wonder why in your example you can use the Item 1x in every case even if Skill is allready existing.
Even if skill is given by Armor, i cant use the item until i uneqip that armor. That is how i want and like it. please dont change that.
Poblem is when i change my Class than i forget some Skills
This is expected behaviour for the Add Skill trait: added skills are sourced only from an actor's active class. The Change Class command does not reset learned skills. If you want a class to always know some skills, just add those skills to the class's "Learnable skills" list, all at level 1. Anyone who changes to that class will immediately learn those skills.

Via event commands, the only options for removing learned skills are:
  • Change Skill -> Forget (Game_Actor#forgetSkill)
  • Change Party Member -> Initialize (Game_Actor#initSkills)
By contrast, skills added by traits will remain for as long as the trait-bearing object remains. If the trait-bearing object is the Actor themselves, then the added skill will be truly permanent.

That is why i believe the Actors Traid Tab should behave like the Class Traid Tab. And i would be disapointed if it get changed like you explained @caethyril,
As I explained: from my testing and my knowledge of the core scripts, they do behave the same, and I don't know why you are seeing anything different. Added skills are temporary additions, e.g. "Fire Staff lets you cast Fireball while it is equipped"; learned skills are more permanent, e.g. "Mage learned how to cast Fireball, no equipment required".

Note that traits do not store any information about their origin. When the game checks for added skills, a trait from an Actor object looks exactly like one from a Class, Weapon, Armor, or State.

The item usage check is isLearnedSkill: it doesn't care about traits. Continuing my example, you seem to be suggesting that having a Fire Staff equipped should prevent you from learning the Fireball skill. So you have to unequip that item to learn the skill? That doesn't make sense to me. 😅
I will preemptivly repair rpg maker through steam and create a new project,
maybe this is a weird tech problem on my end.

Sorry iam not good in explaining and your answers let me come to the conclusion that iam mostly missunderstood.
But @caethyril understood the part i ment and thanks to his test we know it behaves differently on his end in comparisson to my project.

Thanks for the help so far.
I updated the Core Script from 1.60 to 1.60.
Now it is working perfectly flawless. I can not eat the Item 1x when Skill is allready Added through Actors Traid Tab in Database.

Iam realy sorry to have wasted your time, but i did not even think of this as cause for the Bug behavior i observed. Thank you for the help.

Original thread: https://forums.rpgmakerweb.com/threads/mz-skill-item-bug-in-fresh-project.154153/