Simple Skill Leveling

Name: Simple Skill Leveling


Version: 1.1


Author: Mr. Trivel


Created: 2015-11-27


 


What does it do?


Skills change to their stronger or different versions after X uses.


 


Video:










 


How to use?


To make skill change after some uses, use the following tag:
<LevelUpTo: [ID], [USES], [REMOVE]>



Will make skill require a specific other existing skill that was used.
<LevelUpRequire: [ID], [USES], [REMOVE]>



[ID] - Skill ID to change to
[USES] - After how many uses change into that skill
[REMOVE] - 0 - keep skill after leveling up, 1 - remove skill after leveling up
(Remove is optional, by default it'll remove)



Examples:
<LevelUpTo: 5, 25, 0>
<LevelUpTo: 8, 10>



<LevelUpTo: 5, 20, 0>
<LevelUpRequire: 7, 5>
<LevelUpRequire: 8, 9>



<LevelUpTo: 7, 20>
<LevelUpRequire: 8, 10, 0>



<LevelUpTo: 8, 10>
<LevelUpRequire: 7, 20> 


 



Plugin: <Link: Github>


How to download Plugin. Click the link above, there will be a button named Raw, press Right Click -> Save As.


 




Terms of Use:


Don't remove the header or claim that you wrote this plugin.


Credit Mr. Trivel if using this plugin in your project.


Free for non-commercial projects.


For commercial use contact Mr. Trivel.






 
Very Cool!

I need it to show the player when the skill will change.

Something like 3 out of 50 uses for Level up.

Will this be possible somehow?
Great script, remembers me at the Skill System from Secret of Evermore 🙂 That's really realistic - train skills to make them better than actually just spending points on them.

It's kinda oldschool but it's way better then in most new games
@Skotty  TV,

But where would you want to show it?
Would it be possible to add the feature :


- be able to combine multiple skills to unlock new skill.
<Learn Require Skill: [ID], [ID], [USES]>
<Learn Require Skill: [ID] to [ID], [USES]>
These tags would be put in the new skill notes
Is it show on skill menu how many times we have use it? 😳
@Radis3D,


It doesn't show anywhere.


@Chaos17,


I'll think about it.
@Radis3D,


It doesn't show anywhere.


@Chaos17,


I'll think about it.

will it update to make it shown in skill menu? :3 🙂
Version 1.1


 - Added multiple skill requirement for level up.
 - Added ability to keep skills after they leveled up.
 - Fixed a bug where it'd count as multiple uses for multiple target skill.
Oh yesssssss!


203_s.jpg



Donwloading now!!


Thank you very much.


210_s.jpg
i'd like to use this skill but i was hoping the player could track their progess via a display of "xp" gained from using it or like a little xp like bar that was filling up. kind of like final fantasy 2 or disgaia
i'd like to use this skill but i was hoping the player could track their progess via a display of "xp" gained from using it or like a little xp like bar that was filling up. kind of like final fantasy 2 or disgaia


Very Cool!


I need it to show the player when the skill will change.


Something like 3 out of 50 uses for Level up.


Will this be possible somehow?

This is my only request with this system

You could have it show as a gauge underneath the skill name.  Ideally, give users color control over it (windowskin colors?)), and make it display the current level of the skill at the end of the bar.
EG:concept.png
are there any known plugins that have trouble with this one? i would like to use this but it doesnt seem to register levels at all and i do not get anything in the console window. 
@Mr. Trivel I've sent you a message in your site. Hope you can read it. Thanks. cm
hey there, i love this plugin, but i do have a request for it, or at least a question.


Is it possible to show how many uses the skill has in the description.
Excuse me, is there a way for one skill to liberate more than one other?


Like, Water1 liberates Water2 and Ice1 after different uses (or even the same number but Ice1 also needs to use Thunder1)?


To clarify: despite the examples claiming I can add two skills to be learned, if I do so my character is only learning one, the latest.


Also, if I put a requirement for the first it is applying to the latest too.


[EDIT] @Mr. Trivel hope you don't mind me fixing it myself.

Spoiler
Between lines 86 and 87 I added these two:



if (skillLearnObj.result > 0) {this._levelingSkillNeeds.push(skillLearnObj)};
skillLearnObj = {result: 0, required: [], completed: false};


Basically it adds the previous skillLearnObj if its result is not 0 and empties it afterwards.


The problem was that, since it is an object and was only being pushed later, the result variable was changing as it went through the notes, and since it was only added at the end...


So, the revevant function ended up as



Game_Actor.prototype.grabSkillLevelingData = function(skillId) {
var lines = $dataSkills[skillId].note.split(/[\r\n]/);
var skillLearnObj = {result: 0, required: [], completed: false};
var regex1 = /<LevelUpTo:[ ]*(\d+),[ ]*(\d+),?[ ]?(\d+)?>/i;
var regex2 = /<LevelUpRequire:[ ]*(\d+),[ ]*(\d+),?[ ]?(\d+)?>/i;
for (var i = 0; i < lines.length; i++) {
var regex1Match = regex1.exec(lines);
if (regex1Match)
{
if (skillLearnObj.result > 0) {this._levelingSkillNeeds.push(skillLearnObj)};
skillLearnObj = {result: 0, required: [], completed: false};
var goal = Number(regex1Match[1]);
var reqId = skillId;
var uses = Number(regex1Match[2]);
var remove = regex1Match[3] ? regex1Match[3] === "1" : true;
skillLearnObj.result = goal;
skillLearnObj.required.push({id: reqId, uses: uses, remove: remove});
continue;
}

var regex2Match = regex2.exec(lines);
if (regex2Match)
{
var reqId = Number(regex2Match[1]);
var uses = Number(regex2Match[2]);
var remove = regex2Match[3] ? regex2Match[3] === "1" : true;
skillLearnObj.required.push({id: reqId, uses: uses, remove: remove});
continue;
}
}
this._levelingSkillNeeds.push(skillLearnObj);
};










Again, hope you don't mind me messing with your code.
i'm searching for a Skill Level Plugin that's simply give levels to skill(s) together with Yanlfy's JP & SkillLearnSystem,
i prefer the tags like
<SkillLevel : x> for max level

<SkillUpgrade>
+50 hpdmg
</SkillUpgrade> for additional benefit of leveling skill

that's it.

is there any?
Yo ! I don't know if you're still working on it but I've left a comment on your site for troubleshooting.
Yo ! I don't know if you're still working on it but I've left a comment on your site for troubleshooting.
The author hasn't been around since a long time ago, but you're lucky someone else made a similar plugin: http://yanfly.moe/2019/01/25/yep-178-skill-mastery-levels-rpg-maker-mv/
@Chaos17 Nice thought, but the plugins do different things. Yanfly's improves the skill, this one teaches a new one after enough use.

Original thread: https://forums.rpgmakerweb.com/threads/simple-skill-leveling.51820/