• 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

loosing eval script

Kraupaul

Active member
I’m trying to figure out if I’m doing something wrong or if the program just doesn’t allow what I want to do.
In the editor I’ve created a suit of Ink Black Leather Armor that has an eval script that adds +2 to Stealth… that was pretty easy. My problem occurs when, on the Character Armor Tab, I create a masterwork version of it, the +2 Stealth ceases to work. Any ideas what I might be doing wrong?
 
Custom/Masterwork items are actually kinda like a container that looks at the armor you picked inside it and pulls the info for that up to itself so it mimics that armor. My guess is you have given the +2 stealth a condition that the armor is equipped yes? Since the armor is inside the Custom/Masterwork container, the armor is never equipped (only the container is equipped), so you need to modify the script to detect if the container is on.

Try adding this to your eval script.
if (container.ishero = 0) then
if (container.parent.field[gIsEquip].value <> 0) then
#skillbonus[skStealth] += 2
endif
endif
 
Back
Top