Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Upgrade Skill

Status
Not open for further replies.

Saif

Towns Guard
Xy$
0.00
So I am using Yanfly's Skill Learn System and Autopassive States. I have envisioned my game wherein users can learn passives and as game progresses, the user will be able to learn an upgraded version of what he has learned. for example.

Fortified Skin I (Reduces Physical Damage by 10%) into Fortified Skin II (Reduces Physical Damage by 20%)

is it possible to learn Fortified Skin II and then remove Fortified Skin I once Fortified Skin II is learned?
 

MinisterJay

Administrator
Staff member
Administrator
This could be done by having an event occur as the level II was acquired to removed the level I. In eventing, the chosen skill can be removed or unlearned.
 
Last edited:

Saif

Towns Guard
Xy$
0.00
@MinisterJay, I have already taken a look at it a while ago and I could then say it is possible. But I do not know how to put it in between the process wherein I navigate to the Skill Learn System and learn the actual skill itself.

I have looked up Archeia's RMMV Script Call list and found that the JS equivalent of it is, "$gameActors.actor(actorId).forgetSkill(n);". The problem is I have no idea when or how will I call it. :/
 

MinisterJay

Administrator
Staff member
Administrator
Have you tried having an event running parallel that looks for each upgraded skill, and if it is found in a contingency, then each corresponding lower leveled skill is removed? The process for looking for upgraded skills might be recommended to made into a common event. Having it being parallel would make it look for the upgrade continually, and could be cut and pasted of every map.
 

Saif

Towns Guard
Xy$
0.00
@MinisterJay, thank you for the suggestions. Silly of me not to read about the extra functionalities that Yanfly's systems offer. He/She has provided a notetag functionality in his/her system wherein certain set of codes can be run after learning a skill. I then called a common event in the notetag function which checks if the actor has learned the skill. Thank you for the help! :)
 
Status
Not open for further replies.
Top