View Single Post
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old February 3rd, 2016, 02:17 PM
What I'd try for this is needtag elements on the table where the links are added - each link will have an identity tag, and the descriptors will get the tags for all the links that allow them.

The link will forward that identity tag to the hero when added, and then the needtag expression on the portal can compare the tags on the items to the tags on the hero, and will only show the ones that have a matching tag.

Alternatively, if you'd like to show the entire list of descriptors, in case the user thinks that this link over there is perfect for their character, even if it's not a normal option, I'd set up the identity tag the same way as for the needtag - the link forwards it to the hero, and the descriptors have the same tag on them. Then, your prereq will be on the descriptor, and tests

validif (altthing.intersect[ThatTag,ThatTag] <> 0)
Mathias is offline   #2 Reply With Quote