Senior Member
Join Date: Nov 2007
Location: Des Moines, IA
Posts: 349
|
Okay, I got it to work.
I was thinking that I could use my component in the table, i.e. Code:
<table_dynamic component="Cybertech" showtemplate="abCyber" choosetemplate="grGrThing" buytemplate="BuyCash" selltemplate="SellCash"> Code:
<table_dynamic component="Gear" showtemplate="abCyber" choosetemplate="grGrThing" buytemplate="BuyCash" selltemplate="SellCash"> Thanks! edg |
#121 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
Oh right - the component="" on a table must be set to whichever component in the compset has isgear="yes" in order to trigger all the mechanisms that isgear="yes" turns on. Sorry I forgot about that one - I ran into the same thing on the Augment tab in Shadowrun.
|
#122 |
Senior Member
Join Date: Nov 2007
Location: Des Moines, IA
Posts: 349
|
I'm back!
Actually, things have clicked for me quite well these last few weeks. I have added new tabs in minutes instead of hours. I have written tag expressions to narrow down selections as needed. I have grokked several aspects of the data files and made corrections or updates as needed! I have been really excited with how well things have been going! But I still have questions, mainly in terms of best practice. How do I implement optional rules? Rather, how do I implement the user interface? For example, there is an optional rule in Alternity for a different skill cost. So, I assume I would add a tag to the hero that they are using this rule. And then if I see this tag, I use the optional skill cost formulas. But where do I set this up? Do I create a source for it and then in an eval section under that source, add a tag? Is that what you would do? I am working on the editor and have found a weird situation. In adding new skills, I have found that it's doubling the tags listed? In tags.1st: Code:
<group id="PsiGroup" dynamic="yes"> <value id="Bkinesis"/> <value id="ESP"/> <value id="Tkinesis"/> <value id="Tpathy"/> </group> <group id="Profession" dynamic="yes"> <value id="FreeAgent"/> <value id="Diplomat"/> <value id="CombatSpec"/> <value id="Mindwalker"/> <value id="TechOp"/> <value id="Adept"/> </group> Code:
<inputthing name="Profession skill?" helptext="Pick the associated profession, if applicable."> <it_tagpick group="Profession" tag="?"/> </inputthing> <inputthing name="Psionic Group?" helptext="Pick the psionic group, if applicable."> <it_tagpick group="PsiGroup" tag="?"/> </inputthing> What else can I show you for these issues? Thanks! edg |
#123 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
Actually, you can test for the source directly - no need to create a tag to serve as an intermediary:
Code:
if (hero.tagis[source.XXXXX] <> 0) then SKILLCOST *= 2 endif |
#124 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
For your tag issue, are you absolutely certain that you don't have any misspelled versions of those tags lying around anywhere? Perhaps cases where you didn't use exactly the same capitalization as the official versions?
One thing you could do to test for that is to remove the dynamic="yes" line. Then, users may only use the tags that are there - any other tags in that tag group will be errors. The other thing to check - is the Profession tag group defined anywhere else? For example, is it an identity tag anywhere? |
#125 |
Senior Member
Join Date: Nov 2007
Location: Des Moines, IA
Posts: 349
|
Okay, thanks! Makes sense.
On my other item, I have more information. In my thing_profession.dat file, I have: Code:
<thing id="prMind" name="Mindwalker" compset="Profession" isunique="yes" description="Default Mindwalker"> <tag group="Profession" tag="Mindwalker"/> <bootstrap thing="abMACB"/> <bootstrap thing="abMSit"/> <bootstrap thing="abMMin"/> </thing> edit: Is it because I named the compset the same thing? Thanks again! edg Last edited by evildmguy; April 4th, 2013 at 07:37 AM. |
#126 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
Look in the profession component - do you have this:
<identity group="Profession"/> If so, delete the <tag group="Profession" lines from each profession thing, and delete the Profession group from tags.1st. You've set up an identity group, so Hero Lab will create a tag in that group automatically, each time you create a new profession thing. There's no need to also manually create those tags. |
#127 |
Senior Member
Join Date: Nov 2007
Location: Des Moines, IA
Posts: 349
|
That was it!
Thanks! edg |
#128 |
Senior Member
Join Date: Nov 2007
Location: Des Moines, IA
Posts: 349
|
Okay, another question.
I created a user file and in it, I replaced a skill with a new version of it. If I have that source selected, it works great! I see the new version as I expect. However, if I deselect that source, the original doesn't appear as a choice. Neither does the replaced version, though, so at least that's not happening. It's taking me off guard because I am expecting the main skill to show if that source isn't being used. Is that wrong? Or is what I'm expecting not how it works? Thanks! edg |
#129 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
Replacing a thing and adding a source to the replacement does not mean "While we have this source checked, it works this way, and it works the old way when the source isn't checked". It means "It now works this way, which includes only being available while this source is checked."
Last edited by Mathias; April 8th, 2013 at 01:38 PM. |
#130 |
|
|