Skill Trees System
● ARCHIVED · READ-ONLY
-
-
Programmers are really the best community. :)
Thanks a lot! -
This plugin fantastic enough right now.
But, It would be even more AWESOME if some functions were added.
Because skill description truncated.
It's a little shorter than the actual description.
Maybe.. skill description directly with Java
or Line wrap/word wrap.
or changed Font size?
I hope these functions will be updated in the future. -
@SomeFire Hey, it's been a while... I was wondering what I would need to edit in order to move this text down a few pixels?: (the words "MAX" and "0/1" is what I mean)
-
Find `Skills_Window.prototype.drawItem` function in SkillTreesSystem.js, here you can adjust position in `this.drawText(text, x + 2, y + this.itemHeight() / 4, ...`@SomeFire Hey, it's been a while... I was wondering what I would need to edit in order to move this text down a few pixels?: (the words "MAX" and "0/1" is what I mean)
-
Thanks for the update! Is anyone else running into the issue where if you initialize a character, you duplicate their starting skill tree?
Additionally, is there a way to reset a character (remove all skill tree skills and points) without using an item. -
What do you mean?Thanks for the update! Is anyone else running into the issue where if you initialize a character, you duplicate their starting skill tree?
There is no pure function yet. Try this code:Additionally, is there a way to reset a character (remove all skill tree skills and points) without using an item.
Code:let points = 0; if (SkillTreesSystem.singlePointsPool) { for (let tree of actor.skillTrees.trees) points += SkillTreesSystem.resetSkillTree(actor, tree); actor.addTreesPoints(points, 0); } else { for (let tree of actor.skillTrees.trees) { points = SkillTreesSystem.resetSkillTree(actor, tree); if (tree._actorId > 0) actor.addTreesPoints(points, 0); else if (tree._classId > 0) actor.addTreesPoints(points, tree._classId); else actor.addTreesPoints(points, tree.symbol); } } -
What do you mean?
There is no pure function yet. Try this code:
Code:let points = 0; if (SkillTreesSystem.singlePointsPool) { for (let tree of actor.skillTrees.trees) points += SkillTreesSystem.resetSkillTree(actor, tree); actor.addTreesPoints(points, 0); } else { for (let tree of actor.skillTrees.trees) { points = SkillTreesSystem.resetSkillTree(actor, tree); if (tree._actorId > 0) actor.addTreesPoints(points, 0); else if (tree._classId > 0) actor.addTreesPoints(points, tree._classId); else actor.addTreesPoints(points, tree.symbol); } }
Thanks for the quick response! Is this for a scriptcall? Does the code go in system or config JS?
Could you show me how a full example scriptcall would work for an actor? I'm pretty sure I'm inputting the scriptcall wrong.
I'll test it out now, will report back if it works. -
Yes, it is a script call removing all learned skills and giving back all spent points. You can use it in custom script.
As for an actor - take it from the party or any other way. For example,$gameActors.actor(actorId)where actorId is actor id in database. -
Yes, it is a script call removing all learned skills and giving back all spent points. You can use it in custom script.
As for an actor - take it from the party or any other way. For example,$gameActors.actor(actorId)where actorId is actor id in database.
Ah sorry, I'm really new to scriptcalls as I haven't really used any. Not sure what the proper prefix is. I'm currently inputting this which I assume is incorrect:
Scriptcall for actor 106 and class 25:
Code:SkillTreesSystem.resetSkillTree(106, 25) -
There is an actor, which is actor itself, and actor id, which is number in database.
resetSkillTreetakes actor and skill tree and resets only 1 tree. To reset all trees you can get actor like$gameActors.actor(106)and insert into code snippet in my previous message.
codeCode:let actor = $gameActors.actor(106); let points = 0; if (SkillTreesSystem.singlePointsPool) { for (let tree of actor.skillTrees.trees) points += SkillTreesSystem.resetSkillTree(actor, tree); actor.addTreesPoints(points, 0); } else { for (let tree of actor.skillTrees.trees) { points = SkillTreesSystem.resetSkillTree(actor, tree); if (tree._actorId > 0) actor.addTreesPoints(points, 0); else if (tree._classId > 0) actor.addTreesPoints(points, tree._classId); else actor.addTreesPoints(points, tree.symbol); } } -
There is an actor, which is actor itself, and actor id, which is number in database.
resetSkillTreetakes actor and skill tree and resets only 1 tree. To reset all trees you can get actor like$gameActors.actor(106)and insert into code snippet in my previous message.
codeCode:let actor = $gameActors.actor(106); let points = 0; if (SkillTreesSystem.singlePointsPool) { for (let tree of actor.skillTrees.trees) points += SkillTreesSystem.resetSkillTree(actor, tree); actor.addTreesPoints(points, 0); } else { for (let tree of actor.skillTrees.trees) { points = SkillTreesSystem.resetSkillTree(actor, tree); if (tree._actorId > 0) actor.addTreesPoints(points, 0); else if (tree._classId > 0) actor.addTreesPoints(points, tree._classId); else actor.addTreesPoints(points, tree.symbol); } }
Ahh, you misunderstand, I'm lost on the basics. I was wondering what I put in the scriptcall box.
Also, not sure how to find the skill tree "symbol" -
You should place code under spoiler in my previous message. For symbol see tutorial.
-
You should place code under spoiler in my previous message. For symbol see tutorial.
Ah thanks. Another stupid question, your code exceeds the limit for the script box, is there a way to get around that? -
Do you use
SkillTreesSystem.singlePointsPool? True or false? You can cut off one branch and keep the one you need. Remove empty line.
Or use Flow Control Event Commands instead of code. "Conditional Branch..." to replaceifstatement, game variables instead of local variables, etc. -
So I haven't done anything yet with any of the plugin code and just trying to check the look of the screen and I got this error
-
Do you use demo or just copy-pasted js files? What RPGMV version do you use?
-
I just copied the js files to my plugin folder, I'm on version 1.6.2
-
Ok, that means you don't have some skills in database. Download demo - it is RPGMV project, so you can open it in Maker and see all insides.
-
Okay, thank you! I will check out the demo, thanks again!Ok, that means you don't have some skills in database. Download demo - it is RPGMV project, so you can open it in Maker and see all insides.