• 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

Light Shields Question

Lawful_g

Well-known member
Is there a way to distinguish between light shields and heavy shields? I mentioned before that I was making a light shield proficiency for the Warmage class, but I have run into another problem related to this.

The Duskblade class gets to ignore spell failure from level 1-6 only from light shields, and after that medium shields as well.
 
So I suppose the question is:
result = hero.childfound[cHelpDsk].assign[CastArmor.Shield]
assigns no spell failure from all shields, how would I make it only light shields?
 
Ok. So, using what we talked about for the shield proficiency, I came up with this code:
Eval Script Final (Users)
foreach pick in hero where "ShldClass.Light"
each.field[mArcFail].value = 0
nexteach

This is not ideal, because it eliminates the spell failure chance for all classes, not just the duskblade. Also, it doesn't work. Even though light shields on the hero's weapons tab display a 0% spell failure, when equipped, on the Duskblade panel their 5% failure chance is still showing.
 
As a general note, by the time the final phase comes around, almost everything should have been calculated. During that phase, you should generally only be dealing with how things look (adjusting the way their text will look), not how they function.
 
Looking into the code, it looks like the arcane failure from each shield is added to a field that stores the total arcane failure from all shields at PreLevel, 10000, so unless your script changes the shield's arcane failure before then, the original value has already been incorporated into the total on the hero.
 
K. Got it fixed. Had to use PreLevel 9900.... my problem was that I was limiting myself to the (Users) phases, and they were not working. It works alright now. The only flaw is that it eliminates the Arcane failure chance for other arcane spellcasting classes from light shields as well (at least until Duskblade hits 7th level, which is when I told the script to stop running)
 
Back
Top