Senior Member
Join Date: Feb 2012
Posts: 546
|
From ultimate psionics, the cryptic has a magic item that boosts their enhanced disruption ability by 2d6 (1d6 is the enhanced disruption increment every 2 levels starting at 3rd).
I'm trying to create these in the editor, but something is off. The Eval script I'm putting in is simple: #value[cPUEnhDisr] += 2 It's being applied post attributes 10000. Any idea on why this would not work (I'm not seeing the additional 2d6 on the enhanced disruption ability on the console. |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Timing is very important. So most class specials are going to run at Post-Levels/10000. You are running your script at Post-Attributes/10000 "after" the class script runs.
You can always open up the .user files and look at the scripts in the community stuff to find such timing. 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 2012
Posts: 546
|
Ok, so I want to run it before the class script?
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Correct for your changes to have any effect you need to run "Before". For most magic items/feats Pre-Levels/10000 is a good timing to go with when trying to affect a "Class Special". Exceptions exist of course but they will be rare.
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. |
#4 |
Senior Member
Join Date: Feb 2012
Posts: 546
|
Ok, that's a bit counter-intuitive, but I'll try that.
Thanks Edit: No go. Even with the bracers equip'd, I'm not seeing any change in the console values, under the statblock or "specials". |
#5 |
Senior Member
Join Date: Feb 2012
Posts: 546
|
Here's the XML:
Code:
<thing id="ioBrDisrup" name="Bracers of Disruption" description="These black silk bands increase the base damage of the wielder’s disrupt pattern ability by 2d6 points of damage. If the character does not have the Disrupt Pattern class feature, he gains no benefit." compset="Wondrous"> <fieldval field="gCraftCost" value="10,000"/> <fieldval field="gCost" value="20,000"/> <fieldval field="gWeight" value="-"/> <fieldval field="iCL" value="12"/> <usesource source="pPsiUn"/> <tag group="Helper" tag="EquipMag"/> <tag group="gType" tag="Wonder"/> <tag group="Helper" tag="EquipAvail"/> <tag group="Hero" tag="EqpWrist"/> <eval phase="PreLevel" priority="10000">#value[cPUEnhDisr] += 2</eval> </thing> |
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Sigh. So the class ability is scripted to not use abValue. So it won't accept outside changes currently. I have that fixed for the next release.
If you want the latest fixed file you can get it from github using THIS link. Just do save as after it opens the file and save it as "COM_3PPPack_UltimatePsionics - Classes.user". Then place it in your "programData\HeroLab\data\Pathfinder" folder and let it overwrite the existing file. 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 2012
Posts: 546
|
Ah, so I'm not going insane.
Thanks. Edit: Fix confirmed as working now. Edit2: if you want to add the bracers of disruption to the next release, that'd be cool too. It's an official psionic item in ultimate psionics. Last edited by Quintain; February 27th, 2015 at 10:54 AM. |
#8 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Cool I added them for the next update. By the way when entering the price values don't use commas it causes display issues. For a zero weight or "-" just put in no weight.
Thanks I have those added! 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. |
#9 |
Senior Member
Join Date: Feb 2012
Posts: 546
|
Ok, continuing our saga:
I'm working on the One Pattern feat, and I have the basic code for it: Code:
field[abValue].value += (hero.child[cPUEnhDisr].field[xCount].value) + 1 hero.child[cPUEnhDisr].field[livename].text &= signed(field[abValue].value) Maybe my search fu is weak, but I can't seem to find out how to test to see if a specific item is equip'd. There are generic examples in the forums, but none that are fully qualified for a specific item. I will also need to add the +1 per die of damage that the Improved Disruption feat provides as well...which is cumulative with the damage that One Pattern gives. The final livename text should look like: Enhanced Disruption XdY +X (+X). Last edited by Quintain; February 27th, 2015 at 08:49 PM. |
#10 |
|
|