Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit

Notices

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

Old December 1st, 2022, 10:30 AM
I thought I would add a thread which will serve, I hope, as a useful reference going forward.

What can you do with a Thing when trying to reference it from a pick with an “foreach thing” loop? I’ve tried assigning and deleting tags, and even adjusting a field on the thing with no luck. I’m trying to set up so a list of things in a table_dynamic get sorted with particular ones at the top, followed by all others. The ones at the top should be determined by another pick that will have already been made…

Any suggestions?
Thanks!
TC

Working on -
  • (SWADE) WIP Savage Rifts
  • Savage Rifts (Deluxe): Update link in This post
  • Star Trek Adventures: Update link in This post
TCArknight is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,076

Old December 1st, 2022, 10:51 AM
A thing is just an entry in the database of potential options for the game - it's just what you entered in the editor, converted into end-use form. In effect, foreach thing is read-only.

What you are asking for is not an option as far as I know, because the tags and fields on the things are fixed, and each table has a fixed sort set.

The closest I can come up with would be to have three (if it's more than that, then skip this) nearly identical tables, differing only in the sort set, and the one that becomes visible is determined by your base pick.

If you're flagging "options X and Y are highly recommended based on your other choice", what we've done in the past is to make use of the thing template for that table - find a way of highlighting those recommended options, with colors, badging icons, or a column that doesn't have any entries, except for those recommended options. An example of this would be the blue color on class skills in d20/PF1.

Last edited by Mathias; December 1st, 2022 at 11:04 AM.
Mathias is offline   #2 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,301

Old December 1st, 2022, 12:31 PM
After all this time, I think it really did finally click. Thank you very much Mathias for that complete explanation.

I took a closer look at the Thing Context and Target References on the wiki, and that plus the bit about "foreach thing as read-only" makes a lot more sense. all of the targets of eachthing would be for reading the tags or field values already present on the "DB definition". The only exeption to this would be the thing.amendthing[target,string] target which can only affect the name or description field, and it makes the change for ALL of the copies of that thing.

Am I understanding correctly?

And I agree that I think the simplest way to handle the "Recommended Selection" would be to change the color of the text in the table as it's being presented.

Working on -
  • (SWADE) WIP Savage Rifts
  • Savage Rifts (Deluxe): Update link in This post
  • Star Trek Adventures: Update link in This post

Last edited by TCArknight; December 1st, 2022 at 12:33 PM.
TCArknight is offline   #3 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,076

Old December 1st, 2022, 12:59 PM
Yes, amendthing is capable of papering over the name or description. And there's only a single copy of each thing in the database, so if you amend the name or description, any time anything looks up that info, they'll get the amended version, so no matter how many picks are created from that one thing, they'll all share that name or description.
Mathias 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 06:32 AM.


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