Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old May 29th, 2017, 05:40 AM
Hi all!

I'm working on how to do advances for a new dataset, and have a dilemma.

During character creation the user selects a particular background from many. Each background does an Autoadd of a related 'Quirk' component. As an advance, one of the selections is to change one current quirk out for another.

Is this even possible for a script to do? Or will it have to rely on the user making the swap manually?

Thanks!
TC
TCArknight is offline   #1 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old May 30th, 2017, 05:02 PM
What about setting up a Helper tag that would disable and hide the current one, allowing the other to add. If the advance doesn't have a specific one connected to it, you could also have the autoadded version assign a tag that it is the Quirk from creation so you can target the Helper better.
AndrewD2 is offline   #2 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old May 31st, 2017, 02:40 PM
A script cannot create or delete a bootstrap (and why use auto-adds? Don't you get lots of quirks left over if the user changes their mind about which background they want for their character?). Andrew's suggestion of using tags to hide the selected item, and make it look as if it was deleted by controlling whether the list expression will find it.

However, don't use the Helper group. The skeleton files have a better tag organization, and can use tags in the Hide group for this purpose, instead of the "dump everything in Helper" tags that Pathfinder inherited from d20.
Mathias is offline   #3 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old June 14th, 2017, 10:36 AM
So, it seems like bootstrapping all backgrounds and quirks to the hero with Hide.Background and Hide.Quirk respectfully would be the key? Selecting the advance would allow deletion of one Hide tag, and assignment of the one being replaced.

I guess a key would be for any scripts on each component to have a doneif based on the presence of the Hide tag....
TCArknight is offline   #4 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old June 14th, 2017, 12:05 PM
Why add all of them to begin with? Have two selectors on your advancement - one to select the existing quirk that gets removed (and then in the code, assign a Hide tag to it), and another selector that adds the new quirk.

Yes, the doneif tests are very important once you start using tags to mean "we're not really here". But I'd use the standard activated mechanism that's already in use in the skeleton files, rather than testing only that tag.
Mathias is offline   #5 Reply With Quote
Reply


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:53 AM.


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