Hero Lab 4e

Herolab D&D 4e Development => Herolab 4e Development => Topic started by: MagicSN on February 09, 2013, 03:12:25 PM

Title: Heroes of the Forgotten Lands Armor rules
Post by: MagicSN on February 09, 2013, 03:12:25 PM
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
Title: Re: Heroes of the Forgotten Lands Armor rules
Post by: MagicSN on February 09, 2013, 03:27:54 PM
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