Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD

Notices

Reply
 
Thread Tools Display Modes
Enforcer84
Senior Member
 
Join Date: Oct 2011
Location: Portland
Posts: 313

Old September 20th, 2023, 12:39 PM
So I'm looking at placing this in, and it would be easy enough to just leave this as text and do an adjustment for the AC bonus, but what's the fun in that?

The torso of this glimmering ring mail is guarded by hundreds of golden, interlocked signet rings. It's always magically clean. While wearing it, you gain a bonus to AC equal to your Charisma modifier (maximum 5). When you make an ability check, saving throw, or attack roll and roll a 20 on the d20, you're bolstered by a wave of confidence: you have advantage on the next Charisma check or Charisma saving throw you make within the next minute.

The armor grants an enchantment bonus to AC based on Charisma Modifier, Max +5.

doneif (field[gIsEquip].value = 0)
doneif (field[gIsAttuned].value = 0)

hero.child[ArmorClass].field[Bonus].value += maximum(#attrmod[aCHA],5]

I found the maximum(1,#attrmod[aCHA]) argument on a class ability.
I got an error with my cludged attempt at maximum. I can add it as #attrmod and it compiles but it doesn't actually change the AC.


edit: Timing is Pre-Attributes 10000

Last edited by Enforcer84; September 20th, 2023 at 12:42 PM.
Enforcer84 is offline   #1 Reply With Quote
Lord Magus
Senior Member
 
Join Date: Jan 2011
Location: Quebec, QC, Canada
Posts: 464

Old September 20th, 2023, 06:51 PM
Should be Post-Attributes. Before that, #attrmod[aCHA] will be 0.
Lord Magus is offline   #2 Reply With Quote
Enforcer84
Senior Member
 
Join Date: Oct 2011
Location: Portland
Posts: 313

Old September 21st, 2023, 10:57 AM
Quote:
Originally Posted by Lord Magus View Post
Should be Post-Attributes. Before that, #attrmod[aCHA] will be 0.
Cool. I'll give that a try.
Enforcer84 is offline   #3 Reply With Quote
Enforcer84
Senior Member
 
Join Date: Oct 2011
Location: Portland
Posts: 313

Old September 21st, 2023, 10:58 AM
That absolutely worked! Thanks, Lord Magus!

Last edited by Enforcer84; September 21st, 2023 at 11:19 AM.
Enforcer84 is offline   #4 Reply With Quote
Reply

Thread Tools
Display Modes

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 12:28 PM.


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