Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
I'm building a tab right now for selecting a characters background.
The background determines their race (since no background has 2 races the race is bootstrapped to the background directly). Backgrounds then add tags to determine what it's starting Focus options are (usually 2) and the table is made using the <needtag> element to limit the selection on the table, same applies for class. Backgrounds also have 2-3 selections off a table which is a combination of Focuses and Attribute bonuses. Since attribute bonuses are not focuses I didn't want to include as such, but I can't seem to find a way to have a table show multiple components. I know it can do multiple <needtag> elements and if I change the component on the table whichever component is there is what comes up, but I'd like to be able to do them together instead of 2 tables. If not I can do like the Knowledge skills and Languages in Shadowrun that subtract from the same point pool, but are on separate tables. So ultimately, is there a way short of making another component combining the two and making copies bootstrapping the Focuses or do I just need to make 2 tables? |
#1 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Actually I think I'm going to go with the new component with the bootstrapped focuses ... although that leads me to needing a prereq that triggers if you've already got the item from a different source.
|
#2 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Add a component that's just an Id and a name to both the focuses and attribute bonuses - then, you can use that as the table's component, and your pick template can have an if...else, so that it shows entirely different things for each compset.
|
#3 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Alright. I got that to work. Next thing I would like to be able to do is not the Focuses from the 2 different tables here show up on each other's table on this tab.
I'll be making a focus tab where I want everything to show up, But its not necessary here nor does it look good. I tried having the layout set visibilty to 0 it if it was from a different portal, but that leaves gaps when things are shown alphabetically. I know pathfinder does this with class bonus feats as if you have multiple bonus feat tables they don't appear on both tables, but they do all appear on the feat tab, but I'm not sure how to accomplish this. |
#4 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Whether something is shown in a table is controlled by the list expression.
Autotags on the table are the easiest way to mark something that should only show up on the table it was added on - all things added through a table get the autotag, and then the list expression requires that autotag. On other tables where you want these to show up, you don't check for that autotag. |
#5 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Ah OK, so I have to make a showtemplate for those as opposed to using something like SimpleItem.
|
#6 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
The showtemplate is not related to whether something is shown - the showtemplate controls how it looks if it is shown. The <list> expression controls whether something shows up.
|
#7 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Got it, got it, thanks working beautifully.
|
#8 |
|
|