Skill Trees System

● ARCHIVED · READ-ONLY
Started by SomeFire 312 posts Page 10 of 16 View original ↗
  1. OK thanks. I'll figure how to do this.
  2. @SomeFire Hey, so I noticed a potential bug. When I start a new game my Hero has the correct amount of skill trees displayed (2 pages worth). Screenshot:
    1603438422652.png

    But once I create a save file (w/o making any changes or doing anything else) and restart the game, I get the following result when I open up the skill tree menu: (the "stuff" trees are gone)
    1603438579688.png

    Then, if I save for the 2nd time and restart the game again, I get the worst result yet. The entire 2nd page is gone! Even the arrows disappeared and using the <- -> arrow keys doesn't get me to the page w/ the "Racials" tree. Any way to fix this? Screenshot:
    1603438772707.png
  3. I'll check it.

    @Frostorm, where you placed every tree? actor2trees, class2trees or otherTrees?

    All disappeared trees have the same id, which must be unique for every tree.
  4. @SomeFire Hey, I was wondering if it was possible to put an icon in front of the names of the skill trees (on the top row where you select the trees). I have 15 trees so it's a bit wordy, hence why I want to add icons. That way it won't look so boring.
    1603813832322.png

    I tried skillTree('\\i[514]Allocation', 'Allocation', [ but to no avail...

    Also, is it possible to make it so you can navigate between the trees using up & down in addition to left & right? Currently, you have to scroll in consecutive order left or right, while jumping up/down isn't possible for some reason.
  5. Hey @SomeFire, can I get the correct syntax to check if a certain tree is currently selected in the skill tree? I want to create a conditional statement to draw the actor's stats. I just need to make something that says: "if (this._tree = "Allocation")" or similar (w/e the correct terminology/format is). Thx!

    Edit: Also, where in the Skills_Window code block should I place this? I tried putting in a simple "this.drawActorHp" (which worked in the description_window) within the "drawAllItems" function but got an error.
  6. @SomeFire Hey so I found another minor bug. When a skill has 0 MP cost and 0 TP cost, the CD is not shown, even if the skill has a CD. I believe the culprit is in this block of code:
    Code:
    Description_Window.prototype.drawCastCost = function(skill, x, y) {
        if (!skill.mpCost && !skill.tpCost)
    
            return;
       
        let text = "";
    
        if (skill.mpCost) {
            text += skill.mpCost + " \\C[" + (Yanfly.Param && Yanfly.Param.ColorMpCost || 23) + "]" +
                TextManager.mpA + "\\C";
        }
    
        if (skill.mpCost && skill.tpCost)
            text += "\\C, ";
    
        if (skill.tpCost) {
            text += skill.tpCost + " \\C[" + (Yanfly.Param && Yanfly.Param.ColorTpCost || 29) + "]" +
                TextManager.tpA + "\\C";
        }
    
        text += this.getSkillCooldownText(skill, text);
    
        this.drawTextEx(text, x, y);
    };
    I tried fixing it myself, but got this result:
    1605145187565.png
  7. SomeFire said:
    @Frostorm, you can get fix here.
    Hmm, just tried it...got a "Length is undefined" error @ this line:
    if (!skill.mpCost && !skill.tpCost && cdText.length === 0)

    Edit: Nvm, I prolly did something wrong...
    Update: Eureka, it works! (I have a highly modified version, so I had to integrate the changes lol)
  8. Hello!
    I am using this plugin on my project, and i have a question.
    As shown in the screenshot below, there is so much little space in the skill tree scene window for my spells descriptions to appear...
    There is some way to reduce the text font of the descriptions, so that it may fit in the window?

    Thank you, this plugin is incredible. Keep the good work!

    Screenshot
    1606126802783.png
  9. alan123wisp said:
    Hello!
    I am using this plugin on my project, and i have a question.
    As shown in the screenshot below, there is so much little space in the skill tree scene window for my spells descriptions to appear...
    There is some way to reduce the text font of the descriptions, so that it may fit in the window?

    Thank you, this plugin is incredible. Keep the good work!

    Screenshot
    View attachment 168796
    There are 3 ways:
    1. Increase screen width. It will add more space for the text and other things, but requires additional work with other things (like images).
    2. Change text, so it will be fitted in current skill description bounds. You can use second string.
    3. Decrease font size by \} in single skill description or add this special symbol to function `Description_Window.prototype.refresh` in `SkillTreesSystem.js`. But this way will affect all skills.
    Code:
    // Lines 6 and 7.
    this.drawTextEx("\\}" + skill.description, 0, this.lineHeight() * line++);
  10. SomeFire said:
    There are 3 ways:
    1. Increase screen width. It will add more space for the text and other things, but requires additional work with other things (like images).
    2. Change text, so it will be fitted in current skill description bounds. You can use second string.
    3. Decrease font size by \} in single skill description or add this special symbol to function `Description_Window.prototype.refresh` in `SkillTreesSystem.js`. But this way will affect all skills.
    Code:
    // Lines 6 and 7.
    this.drawTextEx("\\}" + skill.description, 0, this.lineHeight() * line++);

    Thank you so much! It works!

    However, i have another question: I noticed that whenever the player upgrades one skill to another (Fire I to Fire II for example), the lower level skill is removed from the character's skills list.

    It is possible to add the higher level skills without erasing the lower ones?
  11. alan123wisp said:
    It is possible to add the higher level skills without erasing the lower ones?
    No, because of plugin structure. Upgrades are made for upgrading existing skills, not for adding new skills.
  12. I have a problem.

    제목 없음.png

    Is there any way to fix the error?
  13. Check console log (F8 should open it).
  14. SomeFire said:
    Check console log (F8 should open it).
    Thx I solved the problem.

    But before used SP, I wonder if I can make a confirmation message?

    Like...
    [Are you sure you want to learn a skill?]
    [Yes] | [No]
  15. There is a button with similar message. Turn off `Learn by double click` setting and check `Confirmation button text` setting.
  16. EDIT: Sorry for being rude.
    Thank you for this amazing pluggin, It's really a great work!

    kkh829 said:
    I have a problem.

    View attachment 169405

    Is there any way to fix the error?

    I have the same problem. How did you fixed it?
    Just for you to know, I'm using some ICF-Soft pluggins.
    I tried to copy everything from the demo, but nothing seems to work.
    This is the console:
    1607381561721.png
  17. SomeFire said:
    There is a button with similar message. Turn off `Learn by double click` setting and check `Confirmation button text` setting.
    It's not exactly what I want, but it's still better than nothing.
    Thank you for making a good plug-in.

    Andyest said:
    EDIT: Sorry for being rude.
    Thank you for this amazing pluggin, It's really a great work!



    I have the same problem. How did you fixed it?
    Just for you to know, I'm using some ICF-Soft pluggins.
    I tried to copy everything from the demo, but nothing seems to work.
    This is the console:
    View attachment 170292
    I solved it by changing the arrangement of YEP Plug-in.
    I'm sorry I couldn't help you.

    Or...
    Don't copy the demo.

    Copy your game.
    And add one by one to the demo.(One plug in, one Data, One Map...)

    Test, Add, Test, Add, Test, Add...

    It's going to be a tough process.

    But
    When the cause of the problem cannot be determined
    Time is the only solution.
  18. Andyest said:
    EDIT: Sorry for being rude.
    Thank you for this amazing pluggin, It's really a great work!



    I have the same problem. How did you fixed it?
    Just for you to know, I'm using some ICF-Soft pluggins.
    I tried to copy everything from the demo, but nothing seems to work.
    This is the console:
    View attachment 170292
    Actor have no skill trees. You can add actor or class tree to solve it for now. I'll fix this bug on weekend.
  19. kkh829 said:
    I solved it by changing the arrangement of YEP Plug-in.
    I'm sorry I couldn't help you.

    Or...
    Don't copy the demo.

    Copy your game.
    And add one by one to the demo.(One plug in, one Data, One Map...)

    Test, Add, Test, Add, Test, Add...

    It's going to be a tough process.

    But
    When the cause of the problem cannot be determined
    Time is the only solution.
    SomeFire said:
    Actor have no skill trees. You can add actor or class tree to solve it for now. I'll fix this bug on weekend.

    Thank you guys for the fast reply. I'll try everything you two said. :)