• 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

Scripting for Armor Magical Ability

CSDeeds

Member
I'm trying to add a magical enhancement that can be added to armors that reduces the Spell Failure penalty by 10%. So far I'm having no luck. Does anyone know the scripting line I'd have to use to do this?
 
I did something like this before, but it was for a class special. Maybe this will give you a starting point:

Code:
foreach pick in hero from BaseArmor where "ArmorClass.Light | ArmorClass.Medium | ArmorClass.Shield"
       each.field[arArcFail].value = 0
    nexteach

Instead of = 0 you would probably want -= 10
 
Look at mithril, that does almost the same thing, although it is a material rather than an item power.
 
I've been playing with various combinations and pulling bits of scripting from various places - including Mithral - but can't get it to work correctly. Driving me nuts!
 
I made an item power and tested this eval script on it. It's working for me, tell me if it gives you problems, it's more or less pulled directly from the Mithril material.

Pre-Levels 2500
container.parent.field[arArcFail].value -= 10
 
*facepalm* I'd actually gotten that exact scripting input and couldn't figure out why it wouldn't work...I forgot to set the Phase to Pre-Levels. I feel like an idiot. Thanks for all your help!
 
Back
Top