Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Raegar
Junior Member
 
Join Date: May 2013
Posts: 11

Old February 26th, 2019, 11:45 PM
This is perfect! Thank you so much!
Raegar is offline   #11 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old February 27th, 2019, 07:43 AM
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.
Aaron is offline   #12 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old February 27th, 2019, 10:40 AM
Quote:
Originally Posted by Aaron View Post
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.
I was not sure with a newer person if using a black box call would be good. I figured I could more easily explain the transition process than explain what the foctoclass was doing.

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.
ShadowChemosh is offline   #13 Reply With Quote
Minous
Senior Member
 
Join Date: May 2015
Posts: 830

Old February 27th, 2019, 11:05 AM
I would also further adjust that to look for just rogue levels. Otherwise it will treat your total levels for advancement.
Minous is offline   #14 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old February 27th, 2019, 11:56 AM
Quote:
Originally Posted by Minous View Post
I would also further adjust that to look for just rogue levels. Otherwise it will treat your total levels for advancement.
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.
ShadowChemosh is offline   #15 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:10 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.