Kendall-DM
Spy
I have an ability for Rogue's to gain access to an extra skill point, but the extra skill point only applies to Rogue levels, and only the current level and and further levels in Rogue gained. So, this has been an issue I've tried resolving a number of ways in HeroLab, without success. I decided to try a different approach today, and I feel I'm close, but I'm not sure I understand what is happening with the timing here.
The idea I have, is I make a user tag, which is called User.RogSkPt, which indicates that an extra skill point should be assigned to the Rogue. I have a custom ability that is chosen as a special ability for the Rogue called Extra Skill Point, whose script follows.
With this additional code I placed either in Extra Skill Point, or in my variant Rogue class cvRogue.
And this works fine on the first level I take it at. However, at each additional level, this script is not run, or is ignored, as I keep getting the old skill point total without the added extra skill point. Is this because I need to place this piece of code in cHelpRog?
Also, I can't seem to count tags until Post-Levels, which could be a timing issue. So are the skill points derived before I can count the tags and add the skill points, i.e. a timing issue?
I feel like I'm close, and I'm just missing some vital step. Thanks.
The idea I have, is I make a user tag, which is called User.RogSkPt, which indicates that an extra skill point should be assigned to the Rogue. I have a custom ability that is chosen as a special ability for the Rogue called Extra Skill Point, whose script follows.
Code:
<Post-Levels 1000>
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)
~ Assign skill point tag to rogue.
perform hero.assign[User.RgeSkPt]
With this additional code I placed either in Extra Skill Point, or in my variant Rogue class cvRogue.
Code:
<Post-Levels 1000>
~ For each new level, if we have extra skill points because we
~ selected it as a special ability, assign them.
var index as number
var extra as number
index = hero.child[cHelpRog].field[cClsIndex].value
extra = hero.tagcount[User.RgeSkPt]
notify extra
herofield[tSkTotals].arrayvalue[index] += extra
And this works fine on the first level I take it at. However, at each additional level, this script is not run, or is ignored, as I keep getting the old skill point total without the added extra skill point. Is this because I need to place this piece of code in cHelpRog?
Also, I can't seem to count tags until Post-Levels, which could be a timing issue. So are the skill points derived before I can count the tags and add the skill points, i.e. a timing issue?
I feel like I'm close, and I'm just missing some vital step. Thanks.
Last edited: