Junior Member
Join Date: May 2013
Posts: 11
|
This is perfect! Thank you so much!
|
#11 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Instead of transitioning through the root, I would recommend calling the "foctoclass" procedure, which will set the focus to the class helper regardless of whether a class special is bootstrapped to an archetype, a custom ability, the class, or wherever.
|
#12 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
But you are correct Aaron as best practice it should be used. Here is the same code using foctoclass procedure instead. Code:
var iX as number ~ Focus To Class call foctoclass doneif (state.isfocus = 0) ~ Loop a 1 to class level and assign ~ Tags to the hero equal to our level for iX = 1 to focus.field[cTotalLev].value perform hero.assign[LvCountAs.Fighter] next Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#13 |
Senior Member
Join Date: May 2015
Posts: 830
|
I would also further adjust that to look for just rogue levels. Otherwise it will treat your total levels for advancement.
|
#14 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Actually that is what is happening. We are going from the ability to the archetype to the class (Rogue). Then we get the class level from field[cTotalLev].value. I can see where "Total Level" is confusing but it really means "Total Class Level" not "Total Hero Level".
Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#15 |
|
|