MV Skill equipment learning Help

I’m trying to create the following system where certain equipments equipped to certain characters will temporarily give them certain skills.
I’ve looked at this plugin https://forums.rpgmakerweb.com/index.php?threads/equipment-common-events.57234/
But have been getting [type error cannot read property length of undefined] .
I’m trying to find the most practical way to do this. I’m thinking if I ran it from a common event I would just be doing big if statements all day like.
-if character hero
-if earth argument is equiped
-if skill A is not learned
-Learn skill
(Than repeats for every other skill that that character can learn)
I was thinking if i had it check the note tags for the requirements that might be easier.
Let me know if this needs any more explanation.or if I need to move this to another category in the forums.
Thanks.
That's actually a standard rpgmaker vx ace thing...I am not sure if it's still in MZ since I don't have it...but where you put the features in your weapons (like states, parameters, etc)...there is a tab with skills where you can add skill type, or specific skills....those will only appear on your character if he has the equiped weapon...
Please generate the error, hit F8 to open the developer tools, go to the console tab, and grab a screenshot and post it here. The error message on its own isn't useful.
Think it can read it from the notes like
<skillLearn: equipID,ActorID,LevelReq>
If equipID,ActorId and LevelReq are all true.
Learn skill.

I’ll get a check at it when I can thanks.

Error page.
1606259426965.png
1606261179406.png


Ok, so weird stuff.
Turning off all the plugin's and removing all the note tags gives me this error at the equip screen
type error cannot read property of 'etypeid' of undefined'
I than backed up the my JS files and replaced them with a fresh version of MV, still the same issue.
I think I may have JS file that changed / missing. but i never touched the main JS files.

1606264417318.png


Better error line
1606265082906.png


Looks like it might be an issue with the save file, looking into it.

I've moved this thread to Plugin Support. Thank you.


hoboayoyo, please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.


I've merged your six posts together. Please just use the 'Edit' button next time.
@hoboayoyo we only need the console log, not the other ones which is irrelitive.
as well, can you show your plugin database?

My guess is that your plugin order is in the correct order, missing a plugin,
or your miss something in the notetag (which is usefull as well which one you used).
Do you even need a plugin for that? Why don't you just add the skill from the traits section of the equipment in question?
1606310008419.png
ok, so it looks like it was the save file that was causing the issue... weird.
Because different actors will acquire different skills.
Moved to: Plugin Support
Double-post notice: hoboayoyo
I've merged your six posts together. Please just use the 'Edit' button next time.
thanks for the heads up

Original thread: https://forums.rpgmakerweb.com/threads/skill-equipment-learning-help.130275/