Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
panda
Member
 
Join Date: Aug 2012
Posts: 72

Old March 4th, 2016, 01:50 PM
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 ?
panda 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 March 5th, 2016, 11:51 AM
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.
ShadowChemosh is offline   #2 Reply With Quote
panda
Member
 
Join Date: Aug 2012
Posts: 72

Old March 5th, 2016, 12:07 PM
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
panda 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 March 5th, 2016, 12:16 PM
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]
Seems to work and gets displayed. Misc bonuses logic may not be in 5e as looking I see the ArmorClass Pick does not have the Misc Bonus text matrix that is in Pathfinder.

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
panda
Member
 
Join Date: Aug 2012
Posts: 72

Old March 5th, 2016, 12:25 PM
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 ?
panda is offline   #5 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old March 5th, 2016, 01:11 PM
Quote:
Originally Posted by panda View Post
I've made a lot of script and didn't put the disable. Should we really do that ?
Only if you ever wish to disable a Racial Ability. For example if a creature becomes Undead or some type of alternate ability comes along that overrides the ability. Those are cases where I am pretty sure you will want to "stop" the scripts from running that give a Cha bonus to AC.

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.
ShadowChemosh is offline   #6 Reply With Quote
panda
Member
 
Join Date: Aug 2012
Posts: 72

Old March 5th, 2016, 01:22 PM
Understood.
panda is offline   #7 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old March 7th, 2016, 08:51 AM
Stops are important, I am pro-stop and anti-skub.
Aaron is offline   #8 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 07:33 AM.


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