Skill Trees System

Vergel_Nikolai

Veteran
Veteran
Joined
Mar 6, 2020
Messages
68
Reaction score
12
First Language
English
Primarily Uses
RMMV
OK thanks. I'll figure how to do this.
 

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,516
Reaction score
1,108
First Language
English
Primarily Uses
RMMV
@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
 

SomeFire

Veteran
Veteran
Joined
May 27, 2016
Messages
88
Reaction score
106
First Language
Russian
Primarily Uses
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.
 
Last edited:

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,516
Reaction score
1,108
First Language
English
Primarily Uses
RMMV
@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.
 
Last edited:

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,516
Reaction score
1,108
First Language
English
Primarily Uses
RMMV
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.
 
Last edited:

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,516
Reaction score
1,108
First Language
English
Primarily Uses
RMMV
@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
 
Last edited:

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,516
Reaction score
1,108
First Language
English
Primarily Uses
RMMV
@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)
 
Last edited:

alan123wisp

Pixel Artist & Absurdist
Member
Joined
Nov 4, 2015
Messages
2
Reaction score
0
First Language
Portuguese
Primarily Uses
RMMV
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!

1606126802783.png
 

SomeFire

Veteran
Veteran
Joined
May 27, 2016
Messages
88
Reaction score
106
First Language
Russian
Primarily Uses
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!

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++);
 

alan123wisp

Pixel Artist & Absurdist
Member
Joined
Nov 4, 2015
Messages
2
Reaction score
0
First Language
Portuguese
Primarily Uses
RMMV
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?
 

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

Latest Threads

Latest Posts

Latest Profile Posts


My only regret is the portal mirror effect is too subtle to show up in these GIFs. It probably just needs more sparkles. :LZSwink:
Microsoft: Hey, let's waste money advertising the Xbox Series X when nobody has any in stock, we don't seem to be making more, we aren't taking preorders and you can't get on a waiting list. BEST. IDEA. EVER.
So I'm practicing ITC with a spirit box, and decide to try to contact my deceased soulmate. It actually gave me multiple identifiers. Me, still a bit skeptical, asked aloud "Fine but does he still love me?" and the box spoke and printed the word "Forever" at the same time. Been a mess of tears since. :kaocry:
Been scratching away at my game and making progress, but just had a revelation. I'm working in full screen and adjusting all my pictures accordingly, but will they resize if someone's screen is smaller?? I hope this doesn't turn out to be a problem later.

Forum statistics

Threads
105,633
Messages
1,015,134
Members
137,293
Latest member
Greencat
Top