Hero Lab 4e

Herolab D&D 4e - Downloads Tracker => Modifications => Topic started by: Yamitsu on March 14, 2017, 05:48:39 AM

Title: Change Attack Ability
Post by: Yamitsu on March 14, 2017, 05:48:39 AM
Hello folks

I'm trying to adapt the unnoficial Modern Player's Guide to herolab, but of course having some trouble.

In the Exploit Weakness feature from Smart Hero, the character gets the option of trough an encounter change the melee or ranged attribute to int (he must choose only one). I'm trying to create an In-play adjustment in which he only clicks and the ability is changed throughout the sheet.
Is that possible? If not, there are alternatives?

EDIT: remove typo
Title: Re: Change Attack Ability
Post by: dracusmage on March 20, 2017, 01:26:21 PM
It should be possible to get the right numbers. I am not confident of the timing of the program at that point so you may not be able to change the underlying stat for the power at that stage, but you should be able to do some simple math to have it add a modifier - just have two variables, one for Int modifier minus the melee attribute modifier, and one for Int modifier minus the ranged attribute modifier, which could then be applied as a bonus to the specified powers. I'd look at coding the power as a drop-down instead of checkbox though, since you need to pick between two options.

I've not spent that much time dealing with the in-play adjustments because my games have always drawn the line just after mechanical pencils as far as technology on the table. I don't think I've ever even looked at what it takes to make something happen in the in-game tab, so my help may be completely useless.

For a paper version, I would look at doing maybe a doubled line for power cards, with one line for without and one line for with; or possibly just a second set of all powers. Neither sounds like it will be a great choice, and both would require a lot of management from the user side.
Title: Re: Change Attack Ability
Post by: dmayhew469 on June 15, 2017, 07:57:20 PM
This is the script from 4e to change the primary attribute of a power.

foreach pick in hero from Attack where "PowerClass.clsWarlord"
    if (eachpick.tagis[Attack.attrStr] <> 0) then
      perform eachpick.deletestr["DamageAttr.attrStr"]
      perform eachpick.deletestr["Attack.attrStr"]
      perform eachpick.assignstr["DamageAttr.attrWis"]
      perform eachpick.assignstr["Attack.attrWis"]
    endif
nexteach

This is for Warlord powers but you should be able to extrapolate.