News:

Welcome to the Herolab 4e user added support site.

Main Menu

Heroes of the Forgotten Lands Armor rules

Started by MagicSN, February 09, 2013, 03:12:25 PM

Previous topic - Next topic

MagicSN

Hello!

As I found out they changed the armour rules big time. All armour, not just Mastercraft armour, gets a Mastercraft bonus INCLUDED starting certain levels (for example base armour of plate armour +1 is 8, but of plate armour +2 is 9, magic bonus still added to this).

I tried working on a script. But seems I do it wrong, as the script gives an error:


      var isbonus as number
      isbonus = 0
      foreach pick in hero from Armor where "ArmorType.arPlateArm"
        if (eachpick.field[arAC].value==10) then
          if (eachpick.tagis[Equipped.Equipped] <> 0) then
            #traitmodify[defAC,trtItem,1,""]
            isbonus = 1
            endif
          endif
        nexteach

My idea was: "If this is a plate armor with a bonus of 10 this means it is a plate armor +2 -> add 1, after the table from Heroes of the Forgotten Lands, of course this script would include a BIIIIIG
if ... else part.

Any idea, what is wrong in

        if (eachpick.field[arAC].value==10) then

?

Steffen

MagicSN

#1
Forget my question ;-) I used == like in C++. Bugfix in works!

Bugfix posted (asked Hero Lab people if I can also post my .dat file, which will be a "better" bugfix, as it surely will work with all feats and stuff).

MagicSN