shatterjack
Active member
I'm working on a feat (Discipline Mastery, from Path of War) that allows a character to take 10 on a number of skills.
I figure the best way to show that is to append a brief explanation to the skill description. But I'm having trouble doing that in a context where I don't know the skill's thingid beforehand, specifically in a "foreach pick" loop.
Relevant code snippet:
#appenddesc isn't working for me since it requires the skill's thingid (and I've already tried grabbing it and passing it as a string). I tried appending to the 'descript' field, but then HL give me the error "Only derived fields can generally be modified by scripts".
I tried looking at a skill's tags and fields after using #appenddesc on it, thinking there might be some kind of "extra description text" field that I could use, but if there is I haven't found it.
So how do you guys do it? I'm sure I'm not the first person to have this problem.
EDIT: Okay, I don't know why it only just now occurred to me to look at the Skill Mastery ability since it does almost exactly the same thing. But I was surprised to find out that Skill Mastery has no scripts at all. Maybe this just isn't done?
I figure the best way to show that is to append a brief explanation to the skill description. But I'm having trouble doing that in a context where I don't know the skill's thingid beforehand, specifically in a "foreach pick" loop.
Relevant code snippet:
Code:
foreach pick in hero from BaseSkill where sTags
~ Make sure the skill has 8+ ranks
if (eachpick.field[skRanks].value >= field[abValue].value) then
~Append a "you can always take 10 on this skill" explanation to the skill description
~what to do here...?
endif
nexteach
#appenddesc isn't working for me since it requires the skill's thingid (and I've already tried grabbing it and passing it as a string). I tried appending to the 'descript' field, but then HL give me the error "Only derived fields can generally be modified by scripts".
I tried looking at a skill's tags and fields after using #appenddesc on it, thinking there might be some kind of "extra description text" field that I could use, but if there is I haven't found it.
So how do you guys do it? I'm sure I'm not the first person to have this problem.
EDIT: Okay, I don't know why it only just now occurred to me to look at the Skill Mastery ability since it does almost exactly the same thing. But I was surprised to find out that Skill Mastery has no scripts at all. Maybe this just isn't done?
Last edited: