Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Working on some custom abilities that can be taken more than once and I've got a few questions about them.
1) Is there a way to make only the highest xIndex one show up in specials? One of these abilities uses xIndex to change the livename, but under the Specials tab I only want the highest one to show up. 2) Some of these have a stipulation "You can take this ability more than once, it's effects do not stack, instead it adds one to your uses per day." I know I could do a tagcount to trkMax, but it doesn't appear that the firstcopy shutdown script works with custom abilities, unless I did something wrong, but I made sure it was used after post levels so the tag should be there. Thanks for any help, Andrew |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
1) Are you sure you want to use xIndex, not xCount?
2) Can you think of any existing abilities that already work like this? The Deadly Range Ninja Trick, for example? |
#2 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
well when I used xCount I got error that said field xCount doesn't exist.
|
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Oh, sorry, you're working with custom abilities, not class specials.
The second answer also applies to the first question - look at what Deadly Range is doing with Helper.SpecUp. |
#4 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Yep, I got it figured out. Thanks!
|
#5 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Sorry for bringing up an old thread, but I having the same issue. Is there a custom ability that I can look at? I have a custom ability "Armor Training" that the script works fine, and it'll work. But it would be cool if they could just show as one.
This what I have so far Post Levels 10000 Code:
~ see if a quickfind has been created by another copy of this ability perform quickfind.setfocus ~ if we didn't find a redirection, we're the first copy of this ability to run this script, so we'll make ourselves the FirstCopy. if (state.isfocus = 0) then perform quickadd perform assign[Helper.FirstCopy] ~ add +1 to our value field[abValue].value += 1 ~ otherwise, redirect hero.child[] to the FirstCopy, and make us an upgrade else perform focus.redirect perform assign[Helper.SpecUp] ~ add +1 to the focus's value focus.field[abValue].value += 1 endif Last edited by Frodie; June 29th, 2015 at 04:32 PM. |
#6 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
I dno't think you can hide it on the class page, but you can on the Specials tab
|
#7 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Ah, ok Thank you!
|
#8 |
Thread Tools | |
Display Modes | |
|
|