Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Looking for help with bootstrapping (http://forums.wolflair.com/showthread.php?t=63450)

Bob G November 18th, 2019 03:36 PM

Looking for help with bootstrapping
Hi lonely wolves,

Here's the sitch: I have a custom ability, added at first level. That works fine. I want to add a rogue talent that allows the user to add one of the custom ability options. That's working fine as well. What's daunting me is how to bootstrap the user's selection to the hero. I tried using a field in the bootstrap field[usrChosen].chosen, but that didn't seem to work.

Could anyone provide an assist?

TheIronGolem November 18th, 2019 04:03 PM

First, if you haven't already, start by reading up on bootstrap conditions.

The important thing to remember here is that bootstraps cannot be done programatically. Gods, how I wish they could be. But nope. You have to spell out every possible thing that could be bootstrapped by a pick beforehand, and tell Hero Lab the conditions under which the bootstrap should happen.

So instead, you have to have the pick that does the bootstrapping either apply a tag to the container ("container" is usually synonymous with "hero" for these purposes), or set a field value on itself, and then the conditional bootstrap should look for that tag or field value. This means the bootstrap condition must run AFTER any scripts on the bootstrapping pick that set the tag/fieldvals, while still running BEFORE any scripts on the bootstrapped pick. First/500 is generally a pretty good timing for conditionals, but your mileage may vary.

Generally, if I want to bootstrap a pick from another pick that employs a dropdown to decide what to bootstrap, I do it one of two ways:

1. Use usrChosen1 and the ChooseSrc1.Thing tag. An early script on the bootstrapping pick pulls a tag from the chosen item and pushes it to the container. Any conditional bootstraps are predicated on a particular tag being on the container.

2. Use the usrArray and usrIndex fields. Populate usrArray from the editor with the "Array-based menu?" button, then have the conditional bootstraps be predicated on "fieldval:usrIndex = X", where X is the corresponding index of whatever text item corresponds to the bootstrapped pick.

EDIT: As Mathias points out below, a Configurable is the better solution to your problem. My suggestion is for when you need to bootstrap one of a small number of choices that isn't going to get larger as more sourcebooks come into play, which I initially misread your situation as being.

Mathias November 18th, 2019 05:10 PM

The better solution is to add a Configrable that shows a table where the user chooses the rogue talent. That way, you don't have a massive number of picks hanging around waiting to be added, and if the list of picks available changes with which books you own (like this rogue talent added in book X is on the list), that's a lot smoother to handle.

Bob G November 19th, 2019 05:22 PM

Thanks to both of you! Gonna try both suggestions tonight to see what works!

All times are GMT -8. The time now is 05:50 AM.

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