Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old October 6th, 2013, 08:51 AM
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
AndrewD2 is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old October 7th, 2013, 08:34 AM
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?
Mathias is offline   #2 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old October 7th, 2013, 09:09 AM
well when I used xCount I got error that said field xCount doesn't exist.
AndrewD2 is offline   #3 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old October 7th, 2013, 09:25 AM
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.
Mathias is offline   #4 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old October 7th, 2013, 09:41 AM
Yep, I got it figured out. Thanks!
AndrewD2 is offline   #5 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old June 29th, 2015, 04:07 PM
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
Attached Images
File Type: jpg Untitled.jpg (335.4 KB, 3 views)

Last edited by Frodie; June 29th, 2015 at 04:32 PM.
Frodie is offline   #6 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old June 29th, 2015, 04:39 PM
I dno't think you can hide it on the class page, but you can on the Specials tab
AndrewD2 is offline   #7 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old June 29th, 2015, 04:41 PM
Ah, ok Thank you!
Frodie is offline   #8 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:50 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.