Simple Skill Leveling

Mr. Trivel

Glasses
Veteran
Joined
Jun 9, 2014
Messages
284
Reaction score
469
First Language
Lithuanian
Primarily Uses
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.






 
 
Last edited by a moderator:

Skotty TV

Veteran
Veteran
Joined
Nov 4, 2015
Messages
98
Reaction score
177
First Language
German, English
Primarily Uses
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?
 

McSundae

Veteran
Veteran
Joined
Oct 28, 2015
Messages
214
Reaction score
221
First Language
German
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
 

Mr. Trivel

Glasses
Veteran
Joined
Jun 9, 2014
Messages
284
Reaction score
469
First Language
Lithuanian
Primarily Uses
@Skotty  TV,

But where would you want to show it?
 

Chaos17

Dreamer
Veteran
Joined
Mar 13, 2012
Messages
1,311
Reaction score
485
First Language
French
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
 

Radis3D

Just a Devilz
Veteran
Joined
Nov 1, 2015
Messages
172
Reaction score
33
First Language
Indonesian
Primarily Uses
RMVXA
Is it show on skill menu how many times we have use it? o_O
 

Mr. Trivel

Glasses
Veteran
Joined
Jun 9, 2014
Messages
284
Reaction score
469
First Language
Lithuanian
Primarily Uses
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.
 

Chaos17

Dreamer
Veteran
Joined
Mar 13, 2012
Messages
1,311
Reaction score
485
First Language
French
Oh yesssssss!





Donwloading now!!


Thank you very much.


 
Last edited by a moderator:

radajin

Veteran
Veteran
Joined
Feb 19, 2013
Messages
159
Reaction score
16
First Language
English
Primarily Uses
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
 
Last edited by a moderator:

OverlyEpux

Villager
Member
Joined
Dec 4, 2012
Messages
29
Reaction score
2
First Language
English
Primarily Uses
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
 

kl4ss1c

Villager
Member
Joined
Jun 9, 2016
Messages
14
Reaction score
0
Primarily Uses
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. 
 

Aidensmercy

Veteran
Veteran
Joined
Oct 29, 2015
Messages
121
Reaction score
24
First Language
english
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.
 

YoraeRasante

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,643
Reaction score
420
First Language
Portuguese
Primarily Uses
RMMV
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.

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.
 
Last edited by a moderator:

zilgaant

Villager
Member
Joined
Jan 21, 2015
Messages
10
Reaction score
3
First Language
Indonesia
Primarily Uses
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?
 

Iliassine

Rider.
Veteran
Joined
Dec 14, 2016
Messages
90
Reaction score
3
First Language
French
Primarily Uses
N/A
Yo ! I don't know if you're still working on it but I've left a comment on your site for troubleshooting.
 

YoraeRasante

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,643
Reaction score
420
First Language
Portuguese
Primarily Uses
RMMV
@Chaos17 Nice thought, but the plugins do different things. Yanfly's improves the skill, this one teaches a new one after enough use.
 

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

Latest Threads

Latest Profile Posts

Why is there so much month left at the end of money? D=
Hello humans! How goes your day in this journey of living? I hope it is good, for I am human like you, and I am feeling great! Worship the altar.
Sand is basically small rocks

Forum statistics

Threads
105,614
Messages
1,014,997
Members
137,280
Latest member
Soraaa510
Top