Closed shadows-eye closed 6 months ago
skills: this.skills,
is in get actorData() while you try to access it with {{#each this.actor.skillsWithRating}}
the correct term would be {{#each this.data.skills}}
I am still not able to pull the name or the value, I have tried {{this.data.skills.active.skill}}
, {{this.data.name}}
, {{this.name}}
, {{this.data.skill}}
None work, they will only provide empty divs, at least all are pulled but the name and values are not populated. Does this need to go into a seprate each?
When I change the actor.Data.js to this it works just fine.
get skills() { let allSkills = { ...this.actor.system.skills.active, ...this.actor.system.skills.knowledge, ...this.actor.system.skills.language, } let skillsWithRating = []; for (let skillName in allSkills) { let skill = allSkills[skillName]; if (skill.value > 0) { skillsWithRating.push({ name: skillName, value: skill.value }); } } return skillsWithRating; }
I have the issue that this is now showing, but I can´t get the Localize to work as some skills are written with underscores. Any help on writing the correct localize would be great.
Also the skill does not seem to have a uuid, it stays blank...
Add a console.log or debug for the returned object and look into the data structure that is returned
The Skills of a Character will not import with the current handelbar, need support to get this to function.