+- +-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Stats ezBlock

Members
Total Members: 145
Latest: watahero
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 716
Total Topics: 346
Most Online Today: 4
Most Online Ever: 20
(June 30, 2017, 12:18:50 AM)
Users Online
Members: 0
Guests: 2
Total: 2

Author Topic: Change Attack Ability  (Read 1132 times)

Yamitsu

  • Newbie
  • *
  • Posts: 1
    • View Profile
Change Attack Ability
« 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

dracusmage

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • 4e Source Files and Documentation
Re: Change Attack Ability
« Reply #1 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.

dmayhew469

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Change Attack Ability
« Reply #2 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.

 

+-Recent Topics

Ring Slots by dmayhew469
November 13, 2018, 02:53:02 PM

Invoker Damage stats by Charlie
September 08, 2018, 07:55:52 PM

Max hit points by Charlie
September 05, 2018, 10:05:12 PM

I have run into a problem with Power class types by SAbel
August 18, 2018, 11:43:05 PM

Demon Spawn by Charlie
August 18, 2018, 06:51:37 PM

GenCon 2018 by SAbel
August 10, 2018, 01:10:30 AM

War Wizard's Expertise by SAbel
July 14, 2018, 09:26:27 AM

Rhythm Blade by SAbel
July 13, 2018, 11:07:16 PM

Critical hit damage by SAbel
July 05, 2018, 09:28:40 PM

Summoned and companion ect by SAbel
July 05, 2018, 09:26:46 PM

Druids by SAbel
July 05, 2018, 09:24:16 PM

Add the INit modifier for Battle Harness by SAbel
July 05, 2018, 09:19:35 PM

Making Utility Powers? by SAbel
July 01, 2018, 09:12:03 PM

Race Rebuild (All) by SAbel
July 01, 2018, 09:05:34 PM

Hero Lab v8.5 messed up 4e by Charlie
April 30, 2018, 11:03:57 PM

Color for Encounter Powers by Charlie
March 10, 2018, 10:57:11 PM

How to allow resistance show up by Charlie
December 06, 2017, 12:56:04 AM

Total Newb... but... by Johnny B Evil
November 26, 2017, 07:52:48 AM

Feat Valenar Weapon Training by Eldyn
October 13, 2017, 08:53:03 PM

4e license question by Cryptoknight
June 25, 2017, 09:28:29 PM

Remove/increase limit on Temporary Adjustment value? by Fox Lee
June 22, 2017, 07:30:45 PM

Change Attack Ability by dmayhew469
June 15, 2017, 07:57:20 PM

Would somebody like to take this over? by dmayhew469
June 09, 2017, 02:02:12 PM

Inherent Bonuses by dmayhew469
June 09, 2017, 01:59:28 PM

No Class or Race options by rkjanik
June 06, 2017, 01:57:21 AM

Powered by EzPortal