It is actorTree... Thanks. I will look into it 🙂
So i just have to change it to classTree and it should work?
regards Afaryz
EDIT:
It is working. Thank you alot. Maybe should be a comment for that in the description. (or did I overread it?)
: )
It is actorTree... Thanks. I will look into it 🙂
I ended up switching over to MOG's plugins instead of Luna Engine, which brings me to another small little issue, is there a way to disable the "X points earned" message after a battle?
SkillTreesSystem.gameActorDisplayLevelUp = Game_Actor.prototype.displayLevelUp;
Game_Actor.prototype.displayLevelUp = function(newSkills) {
SkillTreesSystem.gameActorDisplayLevelUp.call(this, newSkills);
if (SkillTreesSystem.pointsPerLevel > 0 && !SkillTreesSystem.useJP())
$gameMessage.add(SkillTreesSystem.pointsPerLevel + " " + SkillTreesSystem._earnPointsText);
};
Skills_Window.prototype.drawItem = function(treeObj, index) {
...
this.changePaintOpacity(treeObj.isEnabled(this._actor, this._tree));
this.drawIcon(treeObj.iconId(), x, y);
I'd like to make the unlearned skill icons darker as well. I looked for the code shown above, but I'm not sure what to change to make the icon more grayed out. Thx
Window_Base.prototype.translucentOpacity = function() {
return 170;
};
Window_Base.prototype.translucentOpacity = function() {
return 127;
};
Hi there!
Skills_Window.prototype.drawItem = function(treeObj, index) {
let x = this.itemWidth() * (index % SkillTreesSystem.skillWindowMaxCols) - this._scrollX;
let y = this.itemHeight() * Math.floor(index / SkillTreesSystem.skillWindowMaxCols) - this._scrollY;
this.changePaintOpacity(treeObj.isEnabled(this._actor, this._tree));
if(this._actor.isLearnedSkill(SKILL ID)){
this.drawIcon(treeObj.iconId(), x, y);
}else{
this.drawIconGray(treeObj.iconId(), x, y)
}
this.changePaintOpacity(1);
if (treeObj instanceof Skill) {
let size = this.contents.fontSize;
this.contents.fontSize = this.itemHeight() / 3;
if (treeObj.currentLevel() === treeObj.maxLevel())
var text = SkillTreesSystem._maxedSkillText;
else
text = treeObj.currentLevel() + "/" + treeObj.maxLevel();
this.drawText(
text,
x + 2,
y + this.itemHeight() / 4 + SkillTreesSystem._maxedSkillTextYPosition,
this.itemWidth() - 4,
'center'
);
this.contents.fontSize = size;
}
};
Skills_Window.prototype.drawIconGray = function(iconIndex, x, y) {
let bitmap = ImageManager.loadSystem('IconSet_gray'); // Name of the gray iconset
let pw = Window_Base._iconWidth;
let ph = Window_Base._iconHeight;
let sx = iconIndex % 16 * pw;
let sy = Math.floor(iconIndex / 16) * ph;
this.contents.blt(bitmap, sx, sy, pw, ph, x, y, pw * SkillTreesSystem.skillScale, ph * SkillTreesSystem.skillScale);
};
Original thread: https://forums.rpgmakerweb.com/threads/skill-trees-system.100429/