+- +-

+-User

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

+-Stats ezBlock

Members
Total Members: 129
Latest: Drath3n
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 675
Total Topics: 333
Most Online Today: 4
Most Online Ever: 20
(June 30, 2017, 12:18:50 AM)
Users Online
Members: 0
Guests: 4
Total: 4

Author Topic: Change Attack Ability  (Read 499 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: 14
    • 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

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

Making Utility Powers? by dmayhew469
July 07, 2017, 02:11:16 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

Add the INit modifier for Battle Harness by dmayhew469
June 15, 2017, 08:27:12 PM

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

How to allow resistance show up by dmayhew469
June 12, 2017, 04:05:57 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

Spy by Mckinley
May 25, 2017, 02:06:57 AM

Is there a guide out for how to build a race by SAbel
May 05, 2017, 11:59:46 PM

Please read this and weigh in - Issue/Source/Document Version Control System by Charlie
April 27, 2017, 09:54:40 PM

Request Access to the CodePlex System by Charlie
March 03, 2017, 10:47:03 PM

Vampire class by Fox Lee
February 26, 2017, 05:29:29 AM

As we look at Making Card Headers correct colors by dracusmage
February 23, 2017, 03:24:01 PM

Question Involving Twofold Pact for Warlock by dracusmage
February 16, 2017, 02:52:32 AM

Daily Powers by Charlie
February 15, 2017, 06:31:00 PM

Missing Fighter? by dracusmage
February 13, 2017, 10:41:45 PM

Armor at Paragon and above by dracusmage
February 13, 2017, 06:52:16 PM

Help applying bonus damage (x + modifier) to class powers by Fox Lee
January 18, 2017, 06:16:49 AM

Cavalier Summon Steed Patch by Fox Lee
January 15, 2017, 01:00:56 AM

Fey Beast Companions (HotF) by Fox Lee
January 12, 2017, 07:49:08 PM

Has anyone worked with the Warlock (Binder) by SAbel
December 29, 2016, 11:43:17 PM

I will be posting an update soon by SAbel
December 24, 2016, 01:32:41 AM

Powered by EzPortal