• 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

Error with enhancing speed.

So I've tried 2 different things.

if(#levelcount[Chrono]>= 3)then
#enhancementbonus[hero.child[Speed].field[svMisc]] + 10
endif

and

if(#levelcount[Chrono]>= 3)then
hero.child[Speed].field[BonEnhance].value = maximum(hero.child[Speed].field[BonEnhance].value, 10)
endif

Yet I keep getting an Error about Invalid use of a reserved word in script.

This is really confusing me. Any Help?
 
Perhaps it is because you are missing spaces in the first line of each of those?

try:

Code:
    if (#levelcount[Chrono] >= 3) then
      #enhancementbonus[hero.child[Speed], 10]
      endif
 
also when using the #enhancementbonus[] macro you don't add a field to the pick so it's just

#enhancementbonus[hero.child[Speed], 10]

EDIT: which is how Aaron typed it ...
 
Back
Top