Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
|
#11 |
Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
Knocked off 12 out of 18 bugs, almost done!
Number 3 involves a class special that, when activated, grants DR 2/-. First, I bootstrapped xDamRed to the ability, made a bootstrap field abSumm with an 'assign' value of "DR " & DamRed & " /-". I also added the bootstrap tags HasAbility.xDamRd, Ability.xDamRd, ActiveList.xDamRd, DescInfo.xDamRd, Activated.xDamRd, SpecType.DR and thingid.xDamRd. My eval script was next: (Post Attributes, 10000) Code:
~ if we're not activated, just get out now doneif (field[abilActive].value = 0) var DamRed as number DamRed = round(field[xTotalLev].value / 4, 0, -1) -1 ~Grant damage reduction #applydr[xDamRd,DamRed] ~Change description to reflect scaling field[CustDesc].text = "Gain DR " & DamRed & " /-" field[abSumm].text = "Gain DR " & DamRed & " /-" field[alistName].text = "Gain DR " & DamRed & " /-" |
#12 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Well, I am a little unclear on the issue. Are you saying:
A) I want this special which can be activated to show up on the specials tab always, but it isn't showing. or B) I activated this special, and I expected to see Damage Reduction to appear on the specials tab, but it didn't show. If A), what sort of ability is this, class special or custom special ability? Check that they don't have the Helper.SpecUp tag and that they have Helper.ShowSpec (if a class special). If B), add a debug to make sure that your script is getting past the activation stop and check the value of your variable is calculated as higher than 1. |
#13 |
Senior Member
Join Date: Jul 2014
Posts: 412
|
Maybe add field[livename].text = "Gain DR " & DamRed & " /-"
Forum link for my content work: Pathfinder Thread Forum link for SU 5e content work: 5e Steven Universe Thread This link is for my group, but feel free to play it with: DMM 5e | "https://www.dropbox.com/s/vsd9w1eodlnwjq0/updatesDMM.xml?dl=1" Copy this link to your update manager to get updates when available. This adds the Pisky subrace to elves from Berserk! and additional subraces for the Gem Race. Please post comments in the provided threads above. |
#14 |
Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
|
#15 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Wait, do you have damage resistance showing up as a separate ability on the special tab, along with this change in the name of this ability?
All DeltaMasterMind's suggestion is doing is changing the display of this ability - it has nothing to do with really adding damage reduction. |
#16 |
Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
Bug #4 involves an ability that grants Fast Healing, but only if the hero's current hit points are lower than 50% of his total hit points.
I believe that the 'tagis[Helper.SpcDisable]' should be applied if the test condition is false, so at least I have something figured out. What I can't seem to find are where current hit points are located. I think I found total hit points in container.child[Totals].field[tHP].value, but I'm not sure if that's the right field or not. Where do I find the fields for current and total hit points so I can write my test condition? |
#17 |
Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
Hopefully this is a simple one. I want a class ability to change the action economy of a previous class ability from a standard action to a swift action.
I can see that the ability to be modified has a tag of abAction.Standard. I'm guessing I want to disable this tag and add a new tag of abAction.Swift. I'm just not sure how to do it. I looked through the tutorials, but couldn't locate anything. Thanks! |
#18 |
Senior Member
Join Date: Mar 2013
Location: Greater London, UK
Posts: 2,623
|
I'm sure there are feats or another class's ability which will do this.
Farling Author of the Realm Works Import tool, Realm Works Output tool and Realm Works to Foundry module Donations gratefully received via Patreon, Ko-Fi or Paypal |
#19 |
Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
I found the "tagreplace" command, but I'm still getting the syntax wrong. The pick is cBLoMedic1, and I want to replace the tag "abAction.Standard" with "abAction.Swift"
Code:
hero.child[cBLoMedic1].tagreplace[abAction.Standard,abAction.Swift] |
#20 |
|
|