:kaoswt: Whoops, there was a mistake in my example. I used => but that includes a >, causing the tag to terminate early. (This is why better plugin-writers than I close their code tags with /> instead. :kaoslp:)
Try this instead, it seems to work for me:
<subskills:
const s = subject.skills();
const r = [362];
for (const subskillId of [363, 364])
for (const o of s)
if (o.id === subskillId) {
r.push(subskillId);
break;
}
if (r.length === 1)
return []; // empty
return r;
>
Like in your screenshot, this tag goes in the Note box of the parent skill, i.e. Fire. You don't need any related tags on the subskills. I changed the numbers to match your screenshot, so you should just be able to copy+paste it this time. :kaohi:
First of all, thanks for bothering to help
:p I don't know much about plugin-writing but yours are very good when it comes to being compatible. VE has some really cool plugins but I have struggled to find plugins that work with them tbh
:p
The results becomes like this for me, both in a new test game and my own. Inserted the code in the notebox of Fire (362) and Strong Attack (Changed the numbers ofc)

I seem too get both the subskill menu and the additional skill at the same time
o_O
----------------------------------------------------------
I was just about to post this as I tried a last idea. I made the subskills have no skill type, this actually worked as a work around
:p
I think this will work, I don't think those skills will need a skill type for anything. I also tested this without your new code and that didn't work (I would have felt like an idiot if it was that simple all along xD)
Thank you for the help!
:p