Learn or upgrade skill after x number of uses.

Fitcher

Veteran
Veteran
Joined
May 3, 2015
Messages
50
Reaction score
7
First Language
Finnish
Primarily Uses
So im not good at all with JS and i tried it my self but i just do not have the experience to make it work, not working at all...


Anyway im looking on how to make a character learn a new skill after x uses of another skills.


I belive using Yanfly_SkillCore make it possible with the Lunatic Mode note tags.


Here is a few i was thinking about.


After using "Fire" skill a total of 50 times, he then learns "Fire 2" and "Fire" is then removed from the learned skills.


After using "Slash" 50 times, he learns "Fire Slash" and "slash" is not removed.


I understand how the JS works i just do not know all the terms used in JS so i am pretty sure i can customize the code to my liking if i just got a base to go on.
 

Ugouka

Veteran
Veteran
Joined
Mar 11, 2016
Messages
140
Reaction score
53
First Language
English
Primarily Uses
I mean..you don't really need a plugin for this. You can just use variables and common events, if you'd like. Attach a common event to the skills you wish to affect this system of skill learning, every time you use the skill, it runs the common event. The picture below is how you would set up your Fire II learning. For the Fire slash thing, you'd add a variable for "Used Slash" to your slash skill, adding in another conditional branch, if "Used Slash " =50, add skill Fire Slash. Just don't do a forget skill branch in that one. Hope that helps.


Fireuses.png
 
Last edited by a moderator:

Fitcher

Veteran
Veteran
Joined
May 3, 2015
Messages
50
Reaction score
7
First Language
Finnish
Primarily Uses
Yeah well this is the first thing i tried, but then there comes the issue when multiple characters can learn the same skill.


Meaning if i got fire, fire 2 and fire 3 i would need to make a fire and fire 2 skill for each character.


Also as i was planing when you learn fire 2 you also learn another skill that branch out and levels up as you use it more and then that skill also teaches a new skill.


As you can see just how quickly the amount skills needed goes up fast. And not only that as i got a party system with more then 4 characters this mean a MASSIVE amount of skills even if they are just copies of each other.


Your system works perfect for a unique skill only usable by one character but when multiple characters got the same skill then it wont work unless i am missing something now,


it just does not work in my game.


I appreciate your effort in trying to help though. 
 

mrcopra

Veteran
Veteran
Joined
Jul 21, 2015
Messages
452
Reaction score
158
First Language
Not English
Primarily Uses
N/A
I am poor with explaining but i hope you understand me


in formula damage of skill put this before the damage


v[1]=a._actorId;v[2]=item.id;


and with common event put script with this 


var p=$gameVariables.value(1);                         // Actor ID


var s= $gameVariables.value(2);                         //Skill ID


var u=$gameVariables.value(((p*10)+s)-9);                     // How much add of uses


$gameVariables.setValue(((p*10)+s)-9,u+1);                   //add uses of skill


if ($gameVariables.value(((p*10)+s)-9)==1){                   // this will check how many you used the skill


$gameActors.actor(p).learnSkill(s+1);                   // this is new skill  "like old Skill ID=8 + 1 then new Skill ID = 9  "


$gameActors.actor(p).forgetSkill(s);}                   // this is old skill


of course you can't use these variables with anything else
 
Last edited by a moderator:

Fitcher

Veteran
Veteran
Joined
May 3, 2015
Messages
50
Reaction score
7
First Language
Finnish
Primarily Uses
I thank you for the reply and this will work for what i was looking for but seems i found a plugin for what i was looking for here that makes it more simple to achieve the same result.


I still thank you for the help.
 

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

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,476
Members
137,824
Latest member
dobratemporal
Top