Senior Member
Join Date: Feb 2010
Posts: 874
|
I'm trying to address two problems I'm working on in the 4e files, one of which will help me fix the other.
The first is that the the various Implement Expertise feats (which are supposed to add a bonus to those powers that use a given implement) don't actually work. I suspect that's because they don't actually apply the value they've derived to anything. A parallel sort of thing is an ability that adds to powers that use various weapons. That seems to work. However in trying to use it as a model, I have the problem that I can't tell what sort of, well, component a reference in it might be (and thus what the parallel to implements might be.) For reference here's a chunk of code applying to weapons: Code:
foreach pick in hero from WeaponBase where "WepGroup.wgStaff" perform eachpick.field[wpAtkFeat].modify[+,bonus,""] |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
WeaponBase would be the component that is used to build all weapons. In Pathfinder its BaseWep.
You can see components that make something up by looking at the tags on the Pick. At the bottom will be all the components that make up the Pick. (ie component.WeaponBase) 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. |
#2 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
Thanks. I'll give it a look later today and see if I can work it out, then.
|
#3 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
Okay, I'm looking at samples of the longsword, and it does not seem to actually list anything called "WeaponBase" amidst its tags. It distinctly is a component because I can find it in the TimingReport in the data directory for 4e (as component.WeaponBase), but the individual weapons entries don't actually seem to have any reference to it...and thus any way to find the implement's parallel.
As an example, here's the longsword entry: Code:
<thing id="wpLongswor" name="Longsword" compset="Melee"> <fieldval field="grCost" value="15"/> <fieldval field="gearWeight" value="4"/> <fieldval field="wpProf" value="3"/> <tag group="WepDamage" tag="1d8"/> <tag group="WepCat" tag="wcMilitary"/> <tag group="WepProp" tag="Versatile"/> <tag group="WepGroup" tag="wgHeavyBl"/> </thing> |
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
The confusion here is words. I mentioned look on the "Pick" actually not the "Thing". The XML above is considered a 'Thing' because its in the HL database but its not live on the hero yet. Once you add a longsword to your character (ie you picked it) it becomes live and is a 'Pick'.
Add a longsword to your character. Go to "Develop->Enable Data File Debugging" and make sure this is on. Then RIGHT click on the little "?" next to your weapon to see new options display. Click on "Show Debug Tags for Longsword" which opens a new window displaying all the tags that exist on that weapon when its "live" and on the character. At the bottom of that list are the components. In addition you can type in to the text box to "search" if you wish for specific tags. 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. |
#5 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
Ah, yes. My lack of proper terminology confused me. I suspect it's component.Equipment from looking at that. I'll give it a try.
|
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
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. |
|
#7 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
Thanks for all your help. It ended up opening up a deeper and more complicated problem, but it might be useful to know farther down.
|
#8 |
|
|