• 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

Editor Scripting Question

Krothos

Well-known member
I was messing with the HL Editor last night, looking to add an ability to enable/disable under the Adjustments tab similar to the Ranger's Favored Enemy. My toon has the Gnoll Killer trait, which provides him with a +2 attack/damage vs gnolls (in addition to the Favored Enemy bonus). This trait current does nothing in HL (a bug I already reported to LW). I can't use the adjustment for FE since it also applies that bonus to other stats and skills. I just keep running into an error with the script itself. Would someone be able to write out the script:

When activated, provides a +2 trait bonus with all attack and damage rolls.

Many thanks for your assistance.
 
i'm assuming you are making this activate-able on the In-Play tab?
should be something like this you would put on your trait...

if (hero.child[yourtrait].field[abilActive].value <> 0) then
#applybonus[BonTrait,hero.child[Damage],2]
#applybonus[BonTrait,hero.child[Attack],2]
endif
 
Thank you for this. I will continue to work to try to get it to work until LW released an update that fixes the Gnoll Killer trait. :)
 
Back
Top