OK thanks. I'll figure how to do this.
Skill Trees System
● ARCHIVED · READ-ONLY
-
-
@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:
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)
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:
-
I'll check it.
@Frostorm, where you placed every tree?actor2trees,class2treesorotherTrees?
All disappeared trees have the same id, which must be unique for every tree. -
@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.
I triedskillTree('\\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. -
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. -
@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:I tried fixing it myself, but got this result: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); };
-
-
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) -
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 -
There are 3 ways: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
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++); -
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? -
No, because of plugin structure. Upgrades are made for upgrading existing skills, not for adding new skills.It is possible to add the higher level skills without erasing the lower ones?
-
I have a problem.
Is there any way to fix the error? -
Check console log (F8 should open it).
-
Thx I solved the problem.Check console log (F8 should open it).
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] -
There is a button with similar message. Turn off `Learn by double click` setting and check `Confirmation button text` setting.
-
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:
-
It's not exactly what I want, but it's still better than nothing.There is a button with similar message. Turn off `Learn by double click` setting and check `Confirmation button text` setting.
Thank you for making a good plug-in.
I solved it by changing the arrangement of YEP 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'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.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.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. :)