• 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

Fortuned-Spurned template

I'm doing some fortune-spurned monsters from the Advanced Bestiary and have a couple script questions.

1.) How can I apply a -1 luck penalty on all attacks from the Cursed ability?

2.) Is there an easy way to apply the -2 penalty to all skills?
 
1.) How can I apply a -1 luck penalty on all attacks from the Cursed ability?
Usually penalties are not typed but the following script will work.
Code:
~Pre-Levels 10,000
~ Give a Penalty to all weapons
hero.child[Attack].field[BonLuck].value += -1

2.) Is there an easy way to apply the -2 penalty to all skills?

You can do the following:
Code:
~Pre-Levels 10,000
~ Give penalty to all skills
hero.child[AllSkills].field[Penalty].value += -2

The Pre-Levels 10,000 is info to tell you what Phase: and Priority: to set the script too.

Now I found this by looking for an existing thing in HL and looking at its script. So in this case Prayer: Foe adjustment is a good place to look as it gives a penalty to attack, damage, saves, and all skills. So just do a New(Copy) on it to view it scripts.
 
Actually, ShadowChamosh, there are separate PenXXXXX fields for every BonXXXXX field, so

hero.child[Attack].fied[PenLuck].value -= 1
 
hero.child[Attack].fied[PenLuck].value -= 1
Oh yea thanks. Was doing it from memory and forgot their are Penalty Typed fields also. :)

So with that in mind Typed Penalty should not actually stack then I am pretty sure. So you would actually want to use the following macro instead:
Code:
#applypenalty[PenLuck, hero.child[Attack], -1]

So up to you. If you want them to stack use what Mathias said if you don't want Luck Penalties to stack then use the above macro.
 
Last edited:
Back
Top