Member
Join Date: Aug 2012
Posts: 72
|
I have added via a script in an ability a Bonus to AC via the tACMisc Bonus, the value of AC is correct but the popup AC Class Breakdown doesn't show the bonus and said 17 = 10 + 4 (dexterity)
should be 17 = 10 + 4 (dexterity) + 4 (Misc) or something. Is there a way to change the text or is it a bug ? |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
What timing is your script? Can you post your full script? Looking at the monk class it adds its Wis bonus to tACMisc and it displays.
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 |
Member
Join Date: Aug 2012
Posts: 72
|
It's on the Cambion -> Fiendish Blessing in the community github
Post-attribute 10000 hero.child[ArmorClass].field[tACMisc].value += hero.child[aCHA].Field[aBonus].value |
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Looks like it really should go into the "Bonus" field which is the same place the Monk is doing it.
two things: 1) All scripts should have a "Stop" logic added to them so that if the get disabled by an outside script they stop. 2) You can use a macro to make this shorter and easier to read. Macros start with a # symbol: Code:
~ If we're disabled, do nothing & doneif (tagis[Helper.Disable] = 1) hero.child[ArmorClass].field[Bonus].value += #attrmod[aCHA] 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 |
Member
Join Date: Aug 2012
Posts: 72
|
The AC itself is correct, it was just the popup.
I'll integrate your script on the Cambion. I've made a lot of script and didn't put the disable. Should we really do that ? |
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Without a stop script the Racial Special ability will always apply its logic to the character. 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. |
|
#6 |
Member
Join Date: Aug 2012
Posts: 72
|
Understood.
|
#7 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Stops are important, I am pro-stop and anti-skub.
|
#8 |
|
|