Senior Member
Join Date: Oct 2010
Location: Cincinnati, OH
Posts: 328
|
The Tome of Secrets Swashbuckler has an ability called find the mark, which increases the threat range of a weapon finessable weapon by 1. It currently does not show up, is it possible to customly implement this? I see the Keen quality just uses a tag and so does Improved Critical..So I cannot see how the actual coding works.
|
#1 |
Senior Member
Join Date: Oct 2010
Location: Cincinnati, OH
Posts: 328
|
this is the existing code...
Code:
~Post-levels 10,000 ~if we're not shown, just get out now doneif (tagis[Helper.ShowSpec] = 0) foreach thing in BaseWep where "wClass.Light | Helper.Finesse" perform eachthing.amendthing[description,eachthing.field[descript].text & "{br}{br}{b}Addition from Find the Mark{/b}: Threat Range Increased by 1"] nexteach ~foreach pick in hero where "wClass.Light | Helper.Finesse" ~ each.field[wCrit].value -= 5 ~perform eachpick.assign[Broadcast.ImpCrit] ~ nexteach |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Its not currently possible to implement a only 1 improvement to the threat range. Or if it is I have no idea how to get it to work.
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. |
#3 |
Senior Member
Join Date: Oct 2010
Location: Cincinnati, OH
Posts: 328
|
Ah ok, was starting to think that was the case. I know some of my other custom classes have features that currently can not be implemented on HL!
|
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jun 2010
Posts: 623
|
Quote:
You will need to modify timing to go after Keen/IC fire off. Something like: Code:
<thing id="ipwCritMin" name="wCritMin change" compset="ItemPower" uniqueness=" unique"> <tag group="PowerType" tag="Weapon" name="Weapon" abbrev="Weapon"/> <eval phase="Final" priority="50000"><![CDATA[var critmin as number critmin = container.parent.tagnames[wCritMin.?,""] -1 if (critmin = 18) then perform container.parent.assign[wCritMin.18] perform container.parent.delete[wCritMin.19] endif]]></eval> </thing> Last edited by risner; December 9th, 2010 at 01:55 PM. |
|
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Code:
~ If we're not enabled, get out now doneif (field[pIsOn].value = 0) ~if nothing's been chosen, get out now doneif (field[pChosen].ischosen = 0) var sCrit as String var nCrit as number ~ Remove all crit tags perform field[pChosen].chosen.delete[wCritMin.?] ~ Calc numeric crit by taking 20 and subtracking the counter nCrit = 20 - field[pAdjust].value ~ Create the Crit string value sCrit = "wCritMin." & nCrit ~ Assign the string to the weapon perform field[pChosen].chosen.assignstr[sCrit] Code:
<thing id="pS2wCritRa" name="Weapon: Crit Range" compset="InPlay"> <fieldval field="pMaximum" value="19"/> <fieldval field="pMinimum" value="1"/> <tag group="Adjustment" tag="YourWep"/> <eval phase="Final" priority="50000"><![CDATA[~ If we're not enabled, get out now doneif (field[pIsOn].value = 0) ~if nothing's been chosen, get out now doneif (field[pChosen].ischosen = 0) var sCrit as String var nCrit as number ~ Remove all crit tags perform field[pChosen].chosen.delete[wCritMin.?] ~ Calc numeric crit by taking 20 and subtracking the counter nCrit = 20 - field[pAdjust].value ~ Create the Crit string value sCrit = "wCritMin." & nCrit ~ Assign the string to the weapon perform field[pChosen].chosen.assignstr[sCrit]]]></eval> </thing> 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. Last edited by ShadowChemosh; December 9th, 2010 at 02:40 PM. |
|
#6 |
Senior Member
Join Date: Oct 2010
Location: Cincinnati, OH
Posts: 328
|
Not really sure how you guys are getting this to work (I'm not that familiar with XML)...mind posting a datafile with that code in an ability?
|
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
I have an adjustments file with this and other stuff I have plans to release to the community soon.
Otherwise the first bit of code is what goes into an Eval Scripts for a Adjustment in the editor. In the editor go to Adjustment tab and do a New(Blank). Give it a name and unique ID. Then do the following: * Show Menu = "Current Weapons" * Minimum adjustment = "1" * Maximum adjustment = "19" For the Eval Scripts enter the following at Phase: Final Phase; Priority: 50000 Code:
~ If we're not enabled, get out now doneif (field[pIsOn].value = 0) ~if nothing's been chosen, get out now doneif (field[pChosen].ischosen = 0) var sCrit as String var nCrit as number ~ Remove all crit tags perform field[pChosen].chosen.delete[wCritMin.?] ~ Calc numeric crit by taking 20 and subtracking the counter nCrit = 20 - field[pAdjust].value ~ Create the Crit string value sCrit = "wCritMin." & nCrit ~ Assign the string to the weapon perform field[pChosen].chosen.assignstr[sCrit] 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. |
#8 |
Senior Member
Join Date: Oct 2010
Location: Cincinnati, OH
Posts: 328
|
Quote:
Either way thanks though! At least it will print out correctly now edit: Just realized when modifying a rapier and then adding keen, it doesnt play nice. It wants to double this value too. not sure if you can do much about that. Last edited by Pezmerga; December 9th, 2010 at 04:29 PM. |
|
#9 |
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. |
|
#10 |
|
|