Lone Wolf Development Forums  

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

Notices

Reply
 
Thread Tools Display Modes
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 135

Old November 18th, 2019, 03:36 PM
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?

Projects: Battle Lord (Liber Influxus Communis) 100%, Legendary Rogue (Legendary Games) 52%, Survivor (Liber Influxus Communis) 31.1%, Assassin (Interjection Games) 15.6%, Legendary Cavalier (Legendary Games) 8.2%, Adept Godling (Super Genius Games) 6.8%, Eldritch Godling (Super Genius Games) 5.1%, Binder (Grimoire of Lost Souls, Radiance House Publishing) 0.5%
Bob G is offline   #1 Reply With Quote
TheIronGolem
Senior Member
 
Join Date: Feb 2015
Posts: 572

Old 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.

Last edited by TheIronGolem; November 19th, 2019 at 06:51 AM.
TheIronGolem is offline   #2 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 12,637

Old 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.
Mathias is offline   #3 Reply With Quote
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 135

Old November 19th, 2019, 05:22 PM
Thanks to both of you! Gonna try both suggestions tonight to see what works!

Projects: Battle Lord (Liber Influxus Communis) 100%, Legendary Rogue (Legendary Games) 52%, Survivor (Liber Influxus Communis) 31.1%, Assassin (Interjection Games) 15.6%, Legendary Cavalier (Legendary Games) 8.2%, Adept Godling (Super Genius Games) 6.8%, Eldritch Godling (Super Genius Games) 5.1%, Binder (Grimoire of Lost Souls, Radiance House Publishing) 0.5%
Bob G is offline   #4 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 01:10 PM.


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