• 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

Coding for Magic Item that improves Armor Class (AC)

Hi,

I wish to create a custom Light Armor Proficiency feat (call it Light Armor Proficiecy x2) that has the "Light Armor Proficiency" feat as pre-requisite. The new feat would negate the armor check penalty to the following skills: balance, climb, escape artist, hide, jump, move silently, sleight of hand, tumble, and swim. The new feat also would not have a maximum dexterity limit.

How would I do this? (Specifically, what coding is needed for the "Eval Scripts" and "Pre-reqs").

Thanks
 
The pre-req is easy - you want the same pre-req as medium armor, so cut and paste.

The actual coding I can't figure out. You'll probably have to use a for...each loop to cycle through all the owned armor and change the armor check penalty and max dex. You'll have to wait for Colen (one of the authors) to give you that.
 
mgehl wrote:
>
>
> The pre-req is easy - you want the same pre-req as medium armor, so cut
> and paste.


Yep, this is the easiest way to do this. For the actual code, you'd do
the following:

perform hero.child[kBalance].delete[Helper.ArmorChk?]
perform hero.child[kClimb].delete[Helper.ArmorChk?]
... etc etc, for each skill.

(You can find a list of skill ids in the editor documentation.)

You should set the script to run any time before PostAttr / 10000 and
you should be fine.


> The new feat also would not have a maximum dexterity limit.

I'm not sure what this means? You mean taking the feat would remove the
maximum dexterity bonus that was applied to your armor class?


Hope this helps,


--
Colen McAlister, colen@wolflair.com
Chief Engineer, Lone Wolf Development
 
I think all his feat is doing is to say that light armors no longer have their max dex or armor check penalty stats.

mMaxDex and mArmorChk = 0
 
Back
Top