Modified Spells

Scripted ALFA systems & related tech discussions (ACR)

Moderators: ALFA Administrators, Staff - Technical

User avatar
Blindhamsterman
Haste Bear
Posts: 2396
Joined: Fri Jun 04, 2004 11:13 am
Location: GMT

Re: Modified Spells

Post by Blindhamsterman »

Further to my above, rather lacking statement...

currently the spell gives an AC_ARMOUR_ENCHANTMENT_BONUS which means it doesn't
stack with say.... magic robes +1 armour enchantment, while it does stack with average joes full plate mail.

Looking at the script and the available constants, Obsidian removed the AC_ARMOR_BONUS constant, which would make the spell stack with enchantments but not with the basic armour itself. With this constant missing, best way to fix it I can think of is a check for Armour value of the chest slot, have the eAC variable set to either 4 or that armour value, whichever is higher. This wont fix it not stacking with the +1 value of enchanted armour however, it'd be an improvement and likely not make a difference overall anyway.
User avatar
NESchampion
Staff Head - Documentation
Posts: 884
Joined: Thu Jul 13, 2006 12:46 am

Re: Modified Spells

Post by NESchampion »

Blindhamsterman wrote:Further to my above, rather lacking statement...

currently the spell gives an AC_ARMOUR_ENCHANTMENT_BONUS which means it doesn't
stack with say.... magic robes +1 armour enchantment, while it does stack with average joes full plate mail.

Looking at the script and the available constants, Obsidian removed the AC_ARMOR_BONUS constant, which would make the spell stack with enchantments but not with the basic armour itself. With this constant missing, best way to fix it I can think of is a check for Armour value of the chest slot, have the eAC variable set to either 4 or that armour value, whichever is higher. This wont fix it not stacking with the +1 value of enchanted armour however, it'd be an improvement and likely not make a difference overall anyway.
Does Mage Armor appropriately defend against incorporeal attacks in NWN2? If so, ensuring that Mage Armor still bestows the +4 AC vs. Incorporeal targets even if they characters armor value is higher than what mage armor normally gives would be good, if possible.
Current PC: Olaf - The Silver Marches
User avatar
Blindhamsterman
Haste Bear
Posts: 2396
Joined: Fri Jun 04, 2004 11:13 am
Location: GMT

Re: Modified Spells

Post by Blindhamsterman »

there's a constant for AC VS ALL DAMAGE TYPES, I've not tested it, but I would guess that if used would ensure you always get the bonus...
Locked