MV Help, SomeFire SkillTree Adding name of Skill Type

Hi there, I'm trying to add the name of Skill Type beside Skill name like on this picture
c.png

b.png

a.png


Here for the Plugin

I think it's on line 1144
1658390076307.png

but I don't know exactly the code for it. I already tried to add this.drawText(skill.id) and nothing happened.
ok, i might have an answer for you.

To get the skill Type you need it's Id which you were correct on but not exactly that way.
i'm not sure how your system works but you either go for skill.stypeId or this._skill.stypeId, but try the first one first.


JavaScript:
var stId = skill.stypeId;
var stName = $dataSystem.skillTypes[stId];

this.drawText(stName, x, y, textWidth, align);

//put this drawText under the first one and adjust the x, y, textWidth, align values as you see fit.
//for align you can use 'left' or 'center'
//don't forget the ''
ok, i might have an answer for you.

To get the skill Type you need it's Id which you were correct on but not exactly that way.
i'm not sure how your system works but you either go for skill.stypeId or this._skill.stypeId, but try the first one first.


JavaScript:
var stId = skill.stypeId;
var stName = $dataSystem.skillTypes[stId];

this.drawText(stName, x, y, textWidth, align);

//put this drawText under the first one and adjust the x, y, textWidth, align values as you see fit.
//for align you can use 'left' or 'center'
//don't forget the ''
Thanks!! its working 🙂
1658404031477.png

1658404045393.png
glad i could help you! 😉

Original thread: https://forums.rpgmakerweb.com/threads/help-somefire-skilltree-adding-name-of-skill-type.149673/