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
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,217

Old May 6th, 2015, 08:07 AM
levelcount[#class] was

Code:
hero.tagcount[Classes.#class]
now it's
Code:
hero.tagcount[Classes.#class] + hero.tagcount[LvCountAs.#class]
Mathias is offline   #271 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old May 6th, 2015, 09:12 AM
Quote:
Originally Posted by Mathias View Post
levelcount[#class] was

Code:
hero.tagcount[Classes.#class]
now it's
Code:
hero.tagcount[Classes.#class] + hero.tagcount[LvCountAs.#class]
But the result of the macro is still just a number right? So why does that change its use?

Is a macro not like a method/function in that it has separate logic as its own object? I guess I am answering my own question because obviously its not. It must be more like a INCLUDE logic in PHP?

So that its just simply having the code above get spliced into the code at the point where the macro is referenced.

so that this:
Code:
field[abText].text = #levelcount[PWBtlTmpl] & " + 1d4/maneuver level HP"
becomes this at run/compile time:
Code:
field[abText].text = hero.tagcount[Classes.PWBtlTmpl] + hero.tagcount[LvCountAs.PWBtlTmpl] & " + 1d4/maneuver level HP"

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   #272 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old May 6th, 2015, 09:27 AM
Yeah that's what I'm assuming. Its just a shorthand for inserting as opposed to a something like a function call with a return value.
AndrewD2 is offline   #273 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,217

Old May 6th, 2015, 10:15 AM
ShadowChemosh's splicing example is the way macros in Hero Lab work.
Mathias is offline   #274 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old May 6th, 2015, 12:08 PM
Quote:
Originally Posted by Mathias View Post
ShadowChemosh's splicing example is the way macros in Hero Lab work.
Thanks! Yep sometimes I forget the scripting stuff is not a HLL. The macro just resembles simple functions so much that I sort of treat it that way.

Good to keep in mind for the future.

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   #275 Reply With Quote
Quintain
Senior Member
 
Join Date: Feb 2012
Posts: 546

Old May 6th, 2015, 01:26 PM
I am attempting to create a secondary class for variant multiclassing as presented in Psionics Unchained.

The CSCountAs Tag and the Aegis class id results in the following error:

Hero Lab was forced to stop compilation after the following errors were detected:

File: COM_3PPPack_PsionicsUnchained - Classes.user (line 28) - Thing 'csPU2Aegis' (dynamic tag) - Tag 'Aegis' not defined
Quintain is offline   #276 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old May 6th, 2015, 01:56 PM
Quote:
Originally Posted by Quintain View Post
I am attempting to create a secondary class for variant multiclassing as presented in Psionics Unchained.

The CSCountAs Tag and the Aegis class id results in the following error:

Hero Lab was forced to stop compilation after the following errors were detected:

File: COM_3PPPack_PsionicsUnchained - Classes.user (line 28) - Thing 'csPU2Aegis' (dynamic tag) - Tag 'Aegis' not defined
So If you are making "new" custom files. I would advise staying away from the community file naming convention. So especially the whole "COM_3PPPack" part of file names. I can't guarantee what file names in the future the community will use. I assume everything after "COM_3PPPack" is open for use so I would advise changing the file to be like "My_Stuff_PsionicsUnchained - Classes.user" instead or even "aMy_Stuff" so that your custom files sort above the Community files.

Otherwise as Aaron is helping you already I don't think having "two" people giving you advice will help at this point.

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   #277 Reply With Quote
Quintain
Senior Member
 
Join Date: Feb 2012
Posts: 546

Old May 6th, 2015, 09:15 PM
Naming is just for my own use, although the goal is to have these secondary classes go out to the community at large eventually.

Btw, in the community pack for ultimate psionics, you are missing the Coordinate class ability for the Tactician class.
Quintain is offline   #278 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old May 7th, 2015, 11:10 AM
Quote:
Originally Posted by Quintain View Post
Naming is just for my own use, although the goal is to have these secondary classes go out to the community at large eventually.

Btw, in the community pack for ultimate psionics, you are missing the Coordinate class ability for the Tactician class.
Ok thats fine. I am happy to add a new 'unchained' source. I will have to see if I can turn on Secondary Classes without needing Unchained itself. Will see.

Thanks for the bug report. Added to the issues list.

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   #279 Reply With Quote
Quintain
Senior Member
 
Join Date: Feb 2012
Posts: 546

Old May 7th, 2015, 12:08 PM
You were able to verify it (the bug)?
Quintain is offline   #280 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 04:22 AM.


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