• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

AC Class Breakdown incorrect

panda

Well-known member
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 ?
 
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.
 
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
 
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. :(
 
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 ?
 
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.
 
Back
Top