• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Parameters for exprreq

BoomerET

Well-known member
I did a search in the HL wiki, as well as here in the forums, and there is nothing that references 'ispanelhighlight' of any substance.

I've tried testing it to see what it does, but the results are not showing any change whether it's set to 'yes' or 'no'.

I believe the default is probably 'yes', as that's what I'm seeing in the DTD.

What led me to look at this parameter is as follows:

I have a resource, numberOfWizardSpells.

If #resleft is greater than 0, then everything is ok.
(Guess this doesn't need to be checked)
If #resleft is = 0, then everything is still ok, but no other spells of that level should be available, but the spells listed on the screen are okay.
If #resleft < 0, then Houston, we have a problem, spells should be listed in Red, and shouldn't appear in the list if we have valid items only.

I'm scratching my head, because this seems like it should be so easy.


BoomerET
 
I don't know what ispanelhighlight does - I can't remember ever using it.

I just use the panellink setting on the resources to control which panel goes red when you've under or over-spent a resource:
Code:
<thing
  id="resAttrBP"
  name="Attribute Karma"
  compset="Resource"
  panellink="basics">

resLeft > 0 being OK is handled by assigning that resource the Helper.NoMinimum tag. In the miscellaneous.str file, take a look at evalrule #2 in the Resource component, and you'll see that it starts off by testing for that tag - the Eval Rule is satisfied if it's present.
 
Thanks Mathias, that works a dream (and finally helps me understand what on earth that panellink is doing)


BoomerET
 
Back
Top