• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

hiding and showing skills

barrelv

Well-known member
in the game system I'm working on, there are 3 types of skills: General, Occupation, and Military. Everyone has access to all General skills, but your options for Occupation and Military come from your class.

I've hidden these groups of skills by tagging their components with

<tag group="Hide" tag="Skill"/>

and then having their related portal use

<candidate>!Hide.Skill</candidate>


but I'm at a complete loss on how to have the class things interact with the skill things to let the skills show again. Some guidance?
 
Can the class have a separate portal to add the occupation and military skills?

Then, that portal can have a different candidate expression, so that it does show those skills.

And on your main skills table, set up the list expression so that the occupation and military skills added elsewhere will show up on that table.
 
I don't know much for the authoring kit, but could having the class thing delete the Hide.Skill tag from the appropriate skills work?
 
This is for the candidate expression - he's using that tag to determine whether something is shown or not for selection, so you're showing a list of things, and you can't add or delete tags from them while they're things - only once they're picks.
 
yes, there are three portals at work right now: one for each General, Military, and Occupation. I'm just not sure how to have skills show/not show in the Military and Occupational sections, or to at least grey out their selections based on a class section elsewhere.

so here's an example. There's a military skill called Rifle. If your class is Soldier, you can possibly select the Rifle skill. If you class is Spy, you can't. So I need a way to handle enable/disable or adding/removing a number of skills based on some other selection
 
Last edited:
Can you create a ClassAllow tag group, and set it as an identity tag for your Class component.

Then, on the Rifle skill, you place ClassAllow.clsSoldier

Or, reverse that logic - create ClassAllow as an identity tag on the skills, and then place ClassAllow.skRifle on the Soldier class.

Whichever of those ways you select, you forward the ClassAllow tags to the hero, and then use needtag to restrict the selection to only the matching items.
 
Probably the reverse version of that - you'll probably add more new classes in new books than you'll add new skills, so its easier to add a list of skills allowed to each new class than it is to add to the list of classes allowed to each existing skill when a new class is added.
 
getting further, but when I try to implement the NeedTag portion, I'm getting this error message:

One or more required attribute(s) ('container','thing') are not specified

I'm using
Code:
<portal
  id="skMil"
  style="tblNormal">
  <table_dynamic
    component="milSkill"
    showtemplate="skPick"
    choosetemplate="SimpleItem"
    addpick="resAbility">
    <needtag> container="Skill" thing="Skill" usehero="yes" </needtag>
    <titlebar><![CDATA[
      @text = "Add a Special Skill - " & hero.child[resAbility].field[resSummary].text
      ]]></titlebar>
    <headertitle><![CDATA[
      @text = "Military Skills: " & hero.child[resAbility].field[resSummary].text
      ]]></headertitle>
    <additem><![CDATA[
      ~if we're in advancement mode, we've been frozen, so display accordingly
      if (state.iscreate = 0) then
        @text = "{text a0a0a0}Add/Increase Skills Via Advances Tab"
        done
        endif

      ~get the color-highlighted "add" text
      @text = field[resAddItem].text
      ]]></additem>
    </table_dynamic>
  </portal>

with
Code:
<component
    id="Skill"
    name="Skill"
    autocompset="no"

....

<!-- Each skill needs its own identity tag so existing skills can be identified during advancement -->
    <identity group="Skill"/>

<!-- Track the skill on the actor -->
    <eval index="1" phase="Initialize" priority="4000"><![CDATA[
      perform forward[Skill.?]
      ]]></eval>

</component>

  <component
    id="milSkill"
    name="Military Skills"
    autocompset="no">
    <tag group="Hide" tag="Skill"/>
    </component>

  <compset
    id="milSkill">
	<compref component="milSkill"/>
    <compref component="Skill"/>
    <compref component="Trait"/>
    <compref component="Domain"/>
    <compref component="CanAdvance"/>
    </compset>

ideas?
 
Back
Top