YanFly's JP&Skill Learn System, how to remove old skills when you learn new ones?

PhoenixX92

The Light Bearer
Veteran
Joined
Jun 28, 2015
Messages
219
Reaction score
95
First Language
English
Primarily Uses
RMMV
So, I have a base skill, and after you learn the initial one on level up, you teach your character leveled up versions of the skill via the JP system. The problem is, is this makes a very messy skill list. So, I need to know how to remove the old skills when I learn new ones.
How do I go about doing this? The only way I've figured out to do it is to have a 'shop' to remove old ones when the new one has been learned. However, that seems like too much work when I could just make it auto-unlearn the skill upon acquisition of the higher tiered skill.

Any and all help would be appreciated :smile:
 

Farr

Veteran
Veteran
Joined
Feb 16, 2014
Messages
247
Reaction score
93
First Language
Portuguese
Is this MV or Ace?
 

Fernyfer775

Veteran
Veteran
Joined
Oct 6, 2013
Messages
1,317
Reaction score
818
First Language
English
This should do the trick, just change "x" and "y" to the appropriate actor ID/skill.
<Learn Cost Eval>
user.refresh();
$gameActors.actor(x).forgetSkill(y);
</Learn Cost Eval>
 

PhoenixX92

The Light Bearer
Veteran
Joined
Jun 28, 2015
Messages
219
Reaction score
95
First Language
English
Primarily Uses
RMMV

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,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top