Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Duggan
Senior Member
Volunteer Data File Contributor
 
Join Date: Nov 2009
Posts: 1,030

Old September 11th, 2017, 03:45 PM
This is one of those nice-to-have things because I'm doing a lot of fiddling to find the best approach, but currently I basically have the same code for editable fields for the Race, Background, and Command Package tabs because all three allow for addition of a set of choices for a bonus, automatic specialties, and individual skill bonuses (and eventually penalties). Currently, every time I fix one, as I learn a better way to handle it, I have to copy and paste that code to each location. It strikes me that there ought to be a better way.

Here is an example of one of the more complicated (such as they go) editor entries:
Code:
<inputthing
      name="Skill Bonus Choices"
      helptext="Add one or more skill bonus choices that the characters of this race can pick.">
      <it_bootcustom compset="cmpsetSB">
        <match>thingid.fRPlusSk</match>
        <inputthing
          name="Skills"
          helptext="Pick the skills that can be chosen for this bonus.">
          <it_taglist group="Skill" tag="?" dynamic="no"/>
          </inputthing>
          
        <inputthing
          name="Skill Types"
          helptext="Pick the skill types that can be chosen for this bonus.">
          <it_taglist group="Skills" tag="?" dynamic="no"/>
          </inputthing>
          
        <inputthing
          name="Bonus"
          helptext="Pick the bonus value.">
          <it_tagpick group="Bonus" tag="?" dynamic="no"/>
          </inputthing>
          
        </it_bootcustom>
      </inputthing>
    </editthing>
The only difference in the three times it appears in editor.dat is the helptext (and honestly, I could just make that less specific and use the same generic text for all three).
Duggan is offline   #1 Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:10 PM.


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