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
EightBitz
Senior Member
 
Join Date: May 2013
Posts: 1,458

Old September 27th, 2017, 08:49 PM
First of all, scratch my previous question about the labeltext script. I'm doing that whole thing a different way, which I think will still work out the way I want it, but I'm having another odd issue now.

I have the following portal:
Code:
<portal
   id="skill"
   style="outNormal">
   <output_label>
      <labeltext><![CDATA[
         var attrname as string
         var skillname as string
         var linkname as string
         var debugstr as string
         
         attrname = field[name].text
         foreach pick in hero from Skill where "component.Skill & !Helper.Maximum & !Hide.Skill"
            skillname = eachpick.field[name].text
            linkname = eachpick.linkage[attribute].field[name].text
            if (compare(attrname,linkname) = 0) then
               debugstr = "attrname: " & attrname & ", skillname: " & sklname & ", linkname: " & linkname
               debug debugstr
               done
               endif
            nexteach
         ]]></labeltext>
      </output_label>
   </portal>
The debug output for that portal is:
Code:
**********  Start Evaluation Cycle  **********

attrname: Agility, sklname: Movement, linkname: Agility
attrname: Agility, sklname: Movement, linkname: Agility
attrname: Agility, sklname: Movement, linkname: Agility
attrname: Strength, sklname: Prowess, linkname: Strength
attrname: Stamina, sklname: Close Quarters Combat, linkname: Stamina
attrname: Focus, sklname: Research, linkname: Focus
attrname: Personality, sklname: Communication, linkname: Personality
attrname: Willpower, sklname: Interview, linkname: Willpower
attrname: Dexterity, sklname: Fieldcraft, linkname: Dexterity
attrname: Perception, sklname: Investigation, linkname: Perception
attrname: Reflexes, sklname: Ranged Weapons, linkname: Reflexes
Notice that the movement skill, which is linked to the Agility attribute is showing up three times instead of just once. I am stumped again.
EightBitz is offline   #1 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 06:53 AM.


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