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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old April 24th, 2017, 10:31 AM
Moving this discussion out of the Community Pack thread.

Quote:
Originally Posted by Quintain View Post
Code:
~ add competence bonus to Altered Defense ability equaul to tier

    field[abValue].value += #tiereffect[]
    #competencebonus[hero.child[cPUAltDef2], field[abValue].value]
This gives a Competence Bonus to the field BonComp which only exists on a Class Ability because all Weapon Fields where added to them. So you are trying to affect the "Weapon" stats for a Class Ability with the above script.

If we look at the scripts on Thingid.cPUAltDef2 we see:
Code:
    <eval phase="PostAttr" priority="11000"><![CDATA[
      ~NOTE:
      ~ abValue is bonus

      ~ If we're not shown, just get out now
      doneif (tagis[Helper.ShowSpec] <> 1)
      ~ if we've been disabled, get out now
      doneif (tagis[Helper.SpcDisable] <> 0)

      field[abValue].value += #value[cPUAltDef]
      field[livename].text = field[thingname].text & " " & signed(field[abValue].value)
      field[abSumm].text = "The cryptic gains a " & signed(field[abValue].value) & " dodge bonus to her AC."

      ~ If we're not active, just get out now!
      doneif (field[abilActive].value = 0)

      perform hero.assign[Cryptic.AltDefAct]
      hero.child[ArmorClass].field[tACDodge].value += field[abValue].value]]></eval>
I don't see the field BonComp being referenced at all. I only see "abValue" being referenced in the above fields.

Change your script to run at Post-Level/10000:
Code:
~ add competence bonus to Altered Defense ability equaul to tier
field[abValue].value += #tiereffect[]
hero.child[cPUAltDef2].field[abValue].value += field[abValue].value]

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


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 05:48 PM.


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