Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - User Projects (http://forums.wolflair.com/forumdisplay.php?f=55)
-   -   problem with [menu_things] not defaulting (http://forums.wolflair.com/showthread.php?t=60673)

ShadowWalker May 16th, 2018 05:25 PM

problem with [menu_things] not defaulting
 
So I have a component.
Code:

<component
    id="SkillGen"
        name="Skill Generation"
        autocompset="no">
        <field
          id="sgSP"
          name="Skill Points"
          type="static">
          </field>
        </component>

and a compset
Code:

  <compset
    id="SkillGen">
        <compref component="SkillGen"/>
        </compset>

Those are both in the same .str file.

Now I also have some things.
Code:

  <thing
    id="sgRoll"
        compset="SkillGen"
        name="Roll"
        description="The character gets 3 rolls on the Growth and Learning tables for the choosen Background.">
        <fieldval field="sgSP" value="3"/>
        </thing>
       
  <thing
    id="sgChoose"
        compset="SkillGen"
        name="Choose"
        description="The character gets 2 choices on the learning table only.">
        <fieldval field="sgSP" value="2"/>
        </thing>

They are in a .dat file.

I have modifed form_config.dat to include the following in the cnfStart template.
Code:

<portal
          id="skillgen"
          style="menuNormal">
          <menu_things
                field="acSkillGen"
            component="SkillGen"
                defthing="sgRoll">
                </menu_things>
          </portal>

When I load hero lab and select the game system the menu is not defaulting. It has no selection.
I have tried bootstrapping the things and using picks but that hasn't worked either. Is there may be something related to the file extensions being used?

ShadowWalker May 16th, 2018 08:29 PM

Figured it out.
I had to set the defthing on the field.


All times are GMT -8. The time now is 12:31 PM.

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