Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
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 11:42 AM. |
#1 |
Senior Member
Join Date: Jan 2011
Location: Quebec, QC, Canada
Posts: 475
|
Should be Post-Attributes. Before that, #attrmod[aCHA] will be 0.
|
#2 |
Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
|
#3 |
Senior Member
Join Date: Oct 2011
Location: Portland
Posts: 313
|
That absolutely worked! Thanks, Lord Magus!
Last edited by Enforcer84; September 21st, 2023 at 10:19 AM. |
#4 |
Thread Tools | |
Display Modes | |
|
|