Simple Skill Leveling

Discussion in 'JS Plugin Releases (RMMV)' started by Mr. Trivel, Nov 30, 2015.

  1. Mr. Trivel

    Mr. Trivel Glasses Veteran

    Messages:
    284
    Likes Received:
    459
    First Language:
    Lithuanian
    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: Apr 6, 2016
    #1
  2. Skotty TV

    Skotty TV Veteran Veteran

    Messages:
    98
    Likes Received:
    161
    Location:
    Germany
    First Language:
    German, English
    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?
     
    #2
  3. McSundae

    McSundae Veteran Veteran

    Messages:
    213
    Likes Received:
    218
    Location:
    Germany
    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
     
    #3
  4. Mr. Trivel

    Mr. Trivel Glasses Veteran

    Messages:
    284
    Likes Received:
    459
    First Language:
    Lithuanian
    @Skotty  TV,

    But where would you want to show it?
     
    #4
  5. Chaos17

    Chaos17 Dreamer Veteran

    Messages:
    1,253
    Likes Received:
    420
    Location:
    France
    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
     
    #5
  6. Radis3D

    Radis3D Just a Devilz Veteran

    Messages:
    172
    Likes Received:
    33
    Location:
    Surabaya, East Java, Indonesia
    First Language:
    Indonesian
    Primarily Uses:
    RMVXA
    Is it show on skill menu how many times we have use it? o_O
     
    #6
  7. Mr. Trivel

    Mr. Trivel Glasses Veteran

    Messages:
    284
    Likes Received:
    459
    First Language:
    Lithuanian
    #7
  8. Radis3D

    Radis3D Just a Devilz Veteran

    Messages:
    172
    Likes Received:
    33
    Location:
    Surabaya, East Java, Indonesia
    First Language:
    Indonesian
    Primarily Uses:
    RMVXA
    will it update to make it shown in skill menu? :3 :)
     
    #8
  9. Mr. Trivel

    Mr. Trivel Glasses Veteran

    Messages:
    284
    Likes Received:
    459
    First Language:
    Lithuanian
    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.
     
    #9
    Chaos17 likes this.
  10. Chaos17

    Chaos17 Dreamer Veteran

    Messages:
    1,253
    Likes Received:
    420
    Location:
    France
    First Language:
    French
    Oh yesssssss!


    [​IMG]


    Donwloading now!!


    Thank you very much.


    [​IMG]
     
    Last edited by a moderator: Apr 7, 2016
    #10
  11. radajin

    radajin Veteran Veteran

    Messages:
    159
    Likes Received:
    16
    First Language:
    English
    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: Apr 28, 2016
    #11
    Radis3D likes this.
  12. OverlyEpux

    OverlyEpux Villager Member

    Messages:
    28
    Likes Received:
    2
    First Language:
    English

    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
     
    #12
  13. kl4ss1c

    kl4ss1c Villager Member

    Messages:
    14
    Likes Received:
    0
    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. 
     
    #13
  14. cmgamesofficial

    cmgamesofficial Learner Veteran

    Messages:
    34
    Likes Received:
    16
    First Language:
    Taglish
    @Mr. Trivel I've sent you a message in your site. Hope you can read it. Thanks. cm
     
    #14
  15. Aidensmercy

    Aidensmercy Veteran Veteran

    Messages:
    121
    Likes Received:
    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.
     
    #15
  16. Waterguy

    Waterguy Veteran Veteran

    Messages:
    1,183
    Likes Received:
    254
    Location:
    Brazil
    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: Oct 8, 2016
    #16
  17. zilgaant

    zilgaant Villager Member

    Messages:
    10
    Likes Received:
    3
    Location:
    Indonesia
    First Language:
    Indonesia
    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?
     
    #17
  18. Iliassine

    Iliassine Rider. Veteran

    Messages:
    90
    Likes Received:
    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.
     
    #18
  19. Chaos17

    Chaos17 Dreamer Veteran

    Messages:
    1,253
    Likes Received:
    420
    Location:
    France
    First Language:
    French
    #19
  20. Waterguy

    Waterguy Veteran Veteran

    Messages:
    1,183
    Likes Received:
    254
    Location:
    Brazil
    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.
     
    #20

Share This Page