Weapon Skills and Skill equip wont unequip

Broken_squirrel

Veteran
Veteran
Joined
Nov 14, 2016
Messages
36
Reaction score
1
First Language
English
Primarily Uses
Hello everyone!

I have just realized my project has a big problem. First, a little explanation of the plugins and systems involved. I am using Yanfly's equip battle skills plugin. It limits the total amount of skills an actor can learn and adds a menu that allows the player to chose what skills are equipped or not.

Next, I have weapons in game that add a specific skill to the list of equippable skills.

Now, the issue. Unequipping a weapon that has a skill attached to it does not unequip the skill either. In my project, the prevoius skill is still useable even if another weapon is equipped. It will not disappear until an equipped skill is unequipped (seemingly refreshing the list).

What can be done to have the skill unequip itself from the actor upon the weapon being unequipped?
 

Zarsla

Veteran
Veteran
Joined
Jan 23, 2015
Messages
710
Reaction score
228
First Language
English
Primarily Uses
You could use this plugin. And run this code for when you unequip a weapon:
user.equipSkill(x, -1);

Where x is the id of the skill you want to de-equip.
 
Last edited:

Broken_squirrel

Veteran
Veteran
Joined
Nov 14, 2016
Messages
36
Reaction score
1
First Language
English
Primarily Uses
I just figured it out, its WAY_CustomOnEquipEval.js
 

Zarsla

Veteran
Veteran
Joined
Jan 23, 2015
Messages
710
Reaction score
228
First Language
English
Primarily Uses
Yeah You can still get it, here.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top