Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit
Register FAQ Community Today's Posts Search

Notices

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

Old November 19th, 2019, 01:54 AM
Minor follow-up, that's exactly what I needed to do, was to move it into an eval and do it earlier.

Code:
<!-- SkillBonus component -->
<component
  id="SkillBonus"
  name="Starting Skill Bonus"
  autocompset="no"
  panellink="basics">
  
  <field
    id="skbNamCst"
    name="Custom Name"
    type="user"
    maxlength="20"/>
    
  <field
    id="skbName"
    name="Name"
    type="derived"
    maxlength="20">
    </field>
  
  <eval index="1" phase="Initialize" priority="3005"><![CDATA[
    if (this.field[skbNamCst].isempty = 0) then
      field[skbName].text = field[skbNamCst].text
    elseif (this.isroot <> 0) then
      field[skbName].text = this.root.field[name].text
    else
      field[skbName].text = this.field[name].text
    endif
    ]]></eval>
  </component>

Last edited by Duggan; December 22nd, 2019 at 05:08 PM.
Duggan is offline   #8 Reply With Quote
 


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 12:52 PM.


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