• 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

Scaling Item issue

Enforcer84

Well-known member
Working on a home brewed off the cuff scaling item...

I have this attempt at an eval script:

if (#totallevelcount[] >= 10) & (field[gIsEquip].value <> 0) then
#enhancementbonus[hero.child[Initiative], 2]
endif


but I keep getting an Invalid use of reserved word in script. ie my end statement...how did I screw this up? :)
 
You're trying to combine two different checks on the same line in an invalid manner. Try putting each requirement on its own line.
 
Gah!
Thank thanks for trying to help a poor foolish man, Aaron.
Turns out I didn't need the second one at all...that's implied because the item requires that anyway...


But in the future if I need two prereqs, how should I set that up?
 
Last edited:
I'm not sure what you mean.

Oftentimes equipment starts with a doneif for it's equipment states. Alternately, you could keep two different if/thens, but you'd need to nest them within each other.
 
Back
Top