Senior Member
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150
|
Anyone?
Help? |
#21 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
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. |
|
#22 |
Senior Member
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150
|
Only thing I can find on the tags that might be it is Helper.Finesse
|
#23 |
Senior Member
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150
|
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'? |
#24 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Quote:
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. |
||
#25 |
Senior Member
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150
|
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 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 |
#26 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
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 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. |
|
#27 |
Senior Member
Join Date: Nov 2008
Location: Jonesboro, Arkansas
Posts: 150
|
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 |
#28 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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. |
#29 |
Thread Tools | |
Display Modes | |
|
|