• 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

Creating a pool

AndrewD2

Well-known member
I'm working on a scripting a feat tree that that gives you points in a pool (the first feat gives you access to the pool and then after that they each add one). It's kinda like the Ki Pool from the monk class, but I'm not exactly sure how to pull it off. I've looked through the Ki Pool ability and looked through the Tracker tab, but it's still not quite clear to me.

Thanks,
Andrew
 
I'm working on a scripting a feat tree that that gives you points in a pool (the first feat gives you access to the pool and then after that they each add one).
Do you mean the 1st feat gives you the pool of points to use and each feat after adds MORE points to it?

If so you make a new Tracker on the Tracker tab. Make sure its listed as Add Once. I think that is the default or Unique is. Both will work.

Then the first feat should bootstrap the tracker so that it gets added to the hero. Then have each feat simply add to the total on the tracker before final 10,000. I think that timing is write. I usually just go post attributes so that I can easily add in attribute modifiers if needed.

So lets say your new Pool has has a unique ID of a"trkPool".

Post-Attributes/10000
Code:
~ Assume each feat adds 2 points to the pool total
#trkmax[trkPool] += 2

Keeping to Hero Lab standards means I would do the following instead:
Code:
~ Add to abValue first so outside things can adjust us
field[abValue].value += 2
~ add to the pool total
#trkmax[trkPool] += field[abValue].value
 
Back
Top