Skill Trees System

Vergel_Nikolai

Veteran
Veteran
Joined
Mar 6, 2020
Messages
68
Reaction score
11
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,846
Reaction score
1,599
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
100
Reaction score
112
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,846
Reaction score
1,599
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,846
Reaction score
1,599
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,846
Reaction score
1,599
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,846
Reaction score
1,599
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
100
Reaction score
112
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?
 

kkh829

Villager
Member
Joined
Oct 9, 2019
Messages
27
Reaction score
5
First Language
Korean
Primarily Uses
RMMV
I have a problem.

제목 없음.png

Is there any way to fix the error?
 

SomeFire

Veteran
Veteran
Joined
May 27, 2016
Messages
100
Reaction score
112
First Language
Russian
Primarily Uses
Check console log (F8 should open it).
 

kkh829

Villager
Member
Joined
Oct 9, 2019
Messages
27
Reaction score
5
First Language
Korean
Primarily Uses
RMMV
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]
 
Last edited:

SomeFire

Veteran
Veteran
Joined
May 27, 2016
Messages
100
Reaction score
112
First Language
Russian
Primarily Uses
There is a button with similar message. Turn off `Learn by double click` setting and check `Confirmation button text` setting.
 

Andyest

Villager
Member
Joined
Jul 7, 2020
Messages
15
Reaction score
0
First Language
Portuguese
Primarily Uses
RMMV
EDIT: Sorry for being rude.
Thank you for this amazing pluggin, It's really a great work!

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
 
Last edited:

kkh829

Villager
Member
Joined
Oct 9, 2019
Messages
27
Reaction score
5
First Language
Korean
Primarily Uses
RMMV
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.

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.
 

SomeFire

Veteran
Veteran
Joined
May 27, 2016
Messages
100
Reaction score
112
First Language
Russian
Primarily Uses
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.
 

Andyest

Villager
Member
Joined
Jul 7, 2020
Messages
15
Reaction score
0
First Language
Portuguese
Primarily Uses
RMMV
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.
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. :)
 

Latest Threads

Latest Posts

Latest Profile Posts

I'm moving on from RMXP finally. I've been stuck in a difficult decision between XP and MZ, and I've given up and moved on to MZ. Overall I'm really liking it, I wish tilesets were easier to setup like XP, but it's actually not that bad!
Have you ever gone full 'Ship of Theseus' while frankenspriting? Because I just did.
I saw my new eye doctor today, he reminds me of Satoru Iwata for some reason
I've been using a modified version of a script called Multiple Messages. It makes my text boxes look like a Mario & Luigi game! There is something about it that bothers me a little bit, but I shouldn't worry about that now.

Side note, Mist's walking animation is almost perfectly in sync with Loose Yourself by Eminem.
Starting work on some stuff for the community. Hopefully it will be fun, and useful to somebody.

Forum statistics

Threads
107,773
Messages
1,032,038
Members
139,915
Latest member
nick7626
Top