• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Stacking Custom Abilities

AndrewD2

Well-known member
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) 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?
 
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.
 
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
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    335.4 KB · Views: 3
Last edited:
Back
Top