Lone Wolf Development Forums  

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

Notices

Reply
 
Thread Tools Display Modes
RavenX
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,621

Old July 26th, 2022, 10:27 PM
Mathias,

I am having an issue with a script timing and I don't know why.

The total armor field is supposed to calculate the master's armor points.
Code:
      <eval index="1" phase="Final" priority="15000" name="Calculate Armor Total"><![CDATA[
        field[armTotal].value = field[armArmor].value + field[armShield].value + field[armType].value + field[armDesc].value
        field[armTotal].value += field[armFocus].value + field[armHelmet].value + field[armMutate].value + field[armVehicle].value
        field[armTotal].value += field[armArtifact].value 

        ]]></eval>
Here's the script giving me the issue:
HTML Code:
      <eval index="1" phase="Effects" priority="2000"><![CDATA[
  doneif (tagis[Helper.Disable] <> 0) 
  doneif (field[abilActive].value = 0)

  ~our rider gets +1 armor 
  if (field[abilActive].value <> 0) then
    hero.master.child[mscArmor].field[armVehicle].value += 1
    endif
        ]]></eval>
(I have used the master.child and hero.master.child on the script and it still does the same thing. So I've ruled out the scripting)

When I have the ability active, the script executes but the armor on the master is not picking up the +1, it's reading it as 0. I learned from this from running debug scripts on both abilities. I'm not sure why but the ability script is sending the +1 through, I can see it in the fields of the master, but the master's armor script is not picking it up when it calculates the armor points. In my summary panel info window and field list, however, the armor point is showing up. The total armor script is not adding in.

Did I do something incorrect in my source code or is hero lab giving me a hard time?

RavenX Pronouns: She/Her

Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you.

I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all.

Last edited by RavenX; July 26th, 2022 at 10:40 PM.
RavenX is offline   #1 Reply With Quote
RavenX
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,621

Old July 26th, 2022, 10:37 PM
For context, the ability (when activated) gives the rider +1 armor points.

RavenX Pronouns: She/Her

Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you.

I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all.
RavenX is offline   #2 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,039

Old July 26th, 2022, 11:38 PM
You said you see it in the fields on the master - which specific field values do you see? Does it show up in both armVehicle and armTotal, but then your displays of armTotal don't reflect it? If that's the case, it's a different issue than if armVehicle = 1, but armTotal = 0. In the first case, you're looking at the display elements. In the second case, you're double-checking the script order, and that there's not a hidden -1 in one of those other armor fields.
Mathias is offline   #3 Reply With Quote
RavenX
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,621

Old July 27th, 2022, 12:03 AM
Quote:
Originally Posted by Mathias View Post
You said you see it in the fields on the master - which specific field values do you see? Does it show up in both armVehicle and armTotal, but then your displays of armTotal don't reflect it? If that's the case, it's a different issue than if armVehicle = 1, but armTotal = 0. In the first case, you're looking at the display elements. In the second case, you're double-checking the script order, and that there's not a hidden -1 in one of those other armor fields.
I see it in field[armVehicle].value, but field[armTotal].value its not being included in the calculation at all.

RavenX Pronouns: She/Her

Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you.

I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all.
RavenX is offline   #4 Reply With Quote
RavenX
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,621

Old July 27th, 2022, 12:06 AM
I have attached a photo showing it. The script that runs in Final 15000 is supposed to pick it up and add it into the armor total but its not.
Attached Images
File Type: jpg Bug in Calculation.jpg (133.3 KB, 1 views)

RavenX Pronouns: She/Her

Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you.

I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all.
RavenX is offline   #5 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,039

Old July 27th, 2022, 07:16 AM
Here are the pages in the wiki that mention interleaving the master and minion scripts:

http://hlkitwiki.wolflair.com/index....terleave&go=Go


Double-check that you have interleaving turned on, probably as a global setting in the behavior element - it sounds like your game has a number of interactions between masters and minions.
Mathias is offline   #6 Reply With Quote
RavenX
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,621

Old July 27th, 2022, 06:17 PM
It was not turned on and I did not know about it until you mentioned it. This seems to have fixed the issue. Thank you for pointing me in the right direction.

RavenX Pronouns: She/Her

Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you.

I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all.
RavenX is offline   #7 Reply With Quote
Reply

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:32 PM.


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