Hopefully I ask this clearly. So I have a custom Wizard's Staff as equipment. The damage starts at Str+d4 and increases with each Rank of the wizard. My code for that works just fine:
Traits/5000
For the code above to work, no Weapon Die is selected in the editor for this Wizard Staff, it remains blank and the above code replaces damage value.
But it is confusing my players when they look on the weapons list to purchase. The display for damage is blank. The damage displays correctly in HeroLab after purchasing and on character sheet.
Is there some code that ensures the "base damage" displays on the pop-up menu when looking over Hand Weapons to purchase? Not a big deal, just a cosmetic thing and wondering if it possible.
Traits/5000
Code:
minDam = herofield[acRank].value
if (minDam = 0) then
damage = "Str + 1d4"
elseif (minDam = 1) then
damage = "Str + 1d6"
elseif (minDam = 2) then
damage = "Str + 1d8"
else
damage = "Str + 1d10"
endif
this.field[wpDamage].text = damage
For the code above to work, no Weapon Die is selected in the editor for this Wizard Staff, it remains blank and the above code replaces damage value.
But it is confusing my players when they look on the weapons list to purchase. The display for damage is blank. The damage displays correctly in HeroLab after purchasing and on character sheet.
Is there some code that ensures the "base damage" displays on the pop-up menu when looking over Hand Weapons to purchase? Not a big deal, just a cosmetic thing and wondering if it possible.