• 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

Making my own feat

TheFated1

New member
I have an Alchemist in my group who I've OK'd to use the Arcane Strike Feat. I want to add a custom feat to HeroLab called "Alchemical Arcane Strike" which counts the levels of Alchemist instead of Arcane levels and adds the resulting damage increase to weapons AND bombs.

I know I need to modify:
foreach pick in hero from Class where "CasterSrc.Arcane"
to something that says "where class=alchemist"
but I don't know the programming language used.

I also need to change
field[abValue].value += each.field[cCasterLev].value
nexteach

to something that just says field[abValue] += "increase by 1"

That would take care of adding up the alchemist levels and calculating the correct damage bonus (+1 to +5)

I don't see where is this bonus sent afterwards, it doesn't seem like the feat is affecting the weapons directly, just passing a variable on to some other function. Can anyone help with the above and where to look next?

Thank you in advance,
Paul

P.S. Is there a wiki/pdf somewhere with the basics of how hero lab is programmed so I can get up to speed?
 
Alchemists have the "CasterSrc.Alchem" tag, so you can use that in your foreach. They also use the cCasterLev field, so you needn't change anything there.

The 2nd eval script applies the damage bonus, you can use the scrollbar to the right of the eval scripts to change from one to the next. Here is the script, in any case.

Pre-Attr 15000
Code:
      ~ If we're disabled, do nothing
      doneif (tagis[Helper.FtDisable] <> 0)

      doneif (field[abilActive].value = 0)

      hero.child[Damage].field[tDamBonus].value += field[abValue].value

There are tutorials you can access through the editor, the HLKitWiki (which is more for the authoring kit, but may have some useful info), there are some fan made videos on youtube, and the boards are full of examples and helpful folks.
 
Back
Top