Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
Jobe00
Senior Member
 
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150

Old November 15th, 2011, 01:47 PM
Anyone?

Help?
Jobe00 is offline   #21 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 15th, 2011, 01:50 PM
Quote:
Originally Posted by Jobe00 View Post
I found the Brawler fighter archetype ability Close Combatant. It's close to what I want for the Panache ability, but it's for Close Weapons. Below is my modified code, but near the bottom on both are empty quotes where I need to have the identifier for weapons affected by Weapon Finesse.
Have you looked at the tags on a Weapon Finesse weapon to see what the tag is that tells HL that Weapon Finesse applies? That is where I would start to find the tag.

So add a rapier to a blank character. Then right click on the ? on the weapon and view the Tags for that Thing. See any that maybe what you are looking for?

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   #22 Reply With Quote
Jobe00
Senior Member
 
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150

Old November 18th, 2011, 08:55 AM
Only thing I can find on the tags that might be it is Helper.Finesse
Jobe00 is offline   #23 Reply With Quote
Jobe00
Senior Member
 
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150

Old November 18th, 2011, 09:06 AM
I tried the Helper.Finesse and ran a test. I used the first code block as Eval Script #1 and the second as #2. In the quotes at the bottom, I put in "Helper.Finesse".

When I ran the test, I got this error:

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

Syntax error in 'eval' script for thing 'cFtrBelPan' (Eval Script '#2') on line 21
-> Non-existent field 'manDisarm' used by script"

I copied and pasted that from another ability, so what's the field ID for the Disarm Maneuver if it's not 'manDisarm'?
Jobe00 is offline   #24 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 18th, 2011, 10:12 AM
Quote:
Originally Posted by Jobe00 View Post
I tried the Helper.Finesse and ran a test. I used the first code block as Eval Script #1 and the second as #2. In the quotes at the

bottom, I put in "Helper.Finesse".
That is one of the tags you need. The other one you will need is the Light Weapon Tag. This is because ALL light weapons are automatically finesseable but I am pretty sure don't use the Helper.Finesse tag.

Quote:
Originally Posted by Jobe00 View Post
When I ran the test, I got this error:

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

Syntax error in 'eval' script for thing 'cFtrBelPan' (Eval Script '#2') on line 21
-> Non-existent field 'manDisarm' used by script"

I copied and pasted that from another ability, so what's the field ID for the Disarm Maneuver if it's not 'manDisarm'?
Easier to help if you posted the code along with the error.

manDisarm I am pretty sure is the Thing or Child not a field of manDisarm. You can find the different fields on a Thing actually. Take a look at THIS video and about 4 minutes in I go over how to find fields on Things in HL. This way you will be able to find the fields yourself which makes scripting allot easier.

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   #25 Reply With Quote
Jobe00
Senior Member
 
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150

Old November 18th, 2011, 12:19 PM
Eval Script #1

Code:
field[listname].text = field[thingname].text & " +" & field[xIndex].value

~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)

~ If we're not the first copy, just get out now
doneif (tagis[Helper.FirstCopy] = 0)

field[abValue].value += field[xCount].value

field[abSumm].text = "+" & field[abValue].value & " to hit and damage with Finesse Weapons."
field[livename].text = field[thingname].text & " +" & field[abValue].value

~ If we're encumbered, we're disabled
if (herofield[tEncumLev].value > 0) then
perform assign[Helper.SpcDisable]
done
endif

foreach pick in hero from BaseWep where "Helper.Finesse"
eachpick.field[wAttBonus].value += field[abValue].value
eachpick.field[wDamBonus].value += field[abValue].value
nexteach
Eval Script #2
Code:
field[listname].text = field[thingname].text & " +" & field[xIndex].value

~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)

~ If we're not the first copy, just get out now
doneif (tagis[Helper.FirstCopy] = 0)

field[abValue].value += field[xCount].value

field[abSumm].text = "+" & field[abValue].value & " to hit and damage with Finesse Weapons."
field[livename].text = field[thingname].text & " +" & field[abValue].value

~ If we're encumbered, we're disabled
if (herofield[tEncumLev].value > 0) then
perform assign[Helper.SpcDisable]
done
endif

foreach pick in hero from BaseWep where "Helper.Finesse"
eachpick.field[manDisarm].field[manCMD].value += field[abValue].value
eachpick.field[manSunder].field[manCMD].value += field[abValue].value 
nexteach
Jobe00 is offline   #26 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 18th, 2011, 12:30 PM
Quote:
Originally Posted by Jobe00 View Post
foreach pick in hero from BaseWep where "Helper.Finesse"
eachpick.field[manDisarm].field[manCMD].value += field[abValue].value
eachpick.field[manSunder].field[manCMD].value += field[abValue].value
nexteach[/code]
Ah ok. manDisarm is a Total Level Thing. Sorry best I can think of to describe it. There is not a specific manDisarm for Each Weapon. Also you can never have a field of a field. You can have a field of a child but never a field of a field.

So it goes Hero_Character.Child_Thing.Child_Field.Value_of_ field Hope that makes sense.

So you have a Disarm Value on your Character or Hero not on each weapon.

So what you want is simply:
Code:
hero.child[manDisarm].field[manCMD].value += field[abValue].value
hero.child[manSunder].field[manCMD].value += field[abValue].value
And totally remove the whole "ForEach" loop you have around them. As there is never more than one manDisarm on a hero.

Hope that helps.

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   #27 Reply With Quote
Jobe00
Senior Member
 
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150

Old November 18th, 2011, 10:45 PM
So the code for Eval Script #2 will be:

Code:
field[listname].text = field[thingname].text & " +" & field[xIndex].value

~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)

~ If we're not the first copy, just get out now
doneif (tagis[Helper.FirstCopy] = 0)

field[abValue].value += field[xCount].value

field[abSumm].text = "+" & field[abValue].value & " to hit and damage with Finesse Weapons."
field[livename].text = field[thingname].text & " +" & field[abValue].value

~ If we're encumbered, we're disabled
if (herofield[tEncumLev].value > 0) then
perform assign[Helper.SpcDisable]
done
endif

hero.child[manDisarm].field[manCMD].value += field[abValue].value
hero.child[manSunder].field[manCMD].value += field[abValue].value
Correct?
Jobe00 is offline   #28 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 19th, 2011, 08:11 AM
Quote:
Originally Posted by Jobe00 View Post

Correct?
Correct it looks good to me.

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   #29 Reply With Quote
Reply

Thread Tools
Display Modes

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:59 PM.


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