Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Quintain
Senior Member
 
Join Date: Feb 2012
Posts: 546

Old February 27th, 2015, 07:51 AM
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.
Quintain is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old February 27th, 2015, 09:27 AM
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.
ShadowChemosh is offline   #2 Reply With Quote
Quintain
Senior Member
 
Join Date: Feb 2012
Posts: 546

Old February 27th, 2015, 09:38 AM
Ok, so I want to run it before the class script?
Quintain is offline   #3 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old February 27th, 2015, 09:46 AM
Quote:
Originally Posted by Quintain View Post
Ok, so I want to run it before the class script?
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.
ShadowChemosh is offline   #4 Reply With Quote
Quintain
Senior Member
 
Join Date: Feb 2012
Posts: 546

Old February 27th, 2015, 09:48 AM
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".
Quintain is offline   #5 Reply With Quote
Quintain
Senior Member
 
Join Date: Feb 2012
Posts: 546

Old February 27th, 2015, 09:51 AM
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>
Quintain is offline   #6 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old February 27th, 2015, 10:16 AM
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.
ShadowChemosh is offline   #7 Reply With Quote
Quintain
Senior Member
 
Join Date: Feb 2012
Posts: 546

Old February 27th, 2015, 10:45 AM
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.
Quintain is offline   #8 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old February 27th, 2015, 12:03 PM
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.
ShadowChemosh is offline   #9 Reply With Quote
Quintain
Senior Member
 
Join Date: Feb 2012
Posts: 546

Old February 27th, 2015, 08:45 PM
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)
The problem with this is that I need to add an additional + 2 to the field[abValue].value field if Bracers of Disruption are equip'd.

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.
Quintain is offline   #10 Reply With Quote
Reply


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 06:16 PM.


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