• 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

Editing a trait

Tarondor

Member
I want to edit the "Finding Haleen" trait from Legacy of Fire. It's too strong, in my opinion.

At present, it adds +1hp and +1skill point for every level in your favored class. I want it to add +1hp or +1 skill point.

The Eval Script reads:

var searchexpr as string
var classcount as number
doneif (field[usrChosen1].ischosen = 0)

searchexpr = "thingid." & field[usrChosen1].chosen.idstring
foreach pick in hero from BaseClLev where searchexpr
classcount +=1
nexteach
#resmax[resSkill] += classcount
herofield[tHP].value += classcount

How can I make this either/or, but not both?
 
I'm not sure I understand. Currently, don't you already get +1HP or +1 skill point for every level in your favored class?
 
I am doing the following with no access to HL so in theory this all works just fine. :)

Create two new Simple Things, on the Simple Tab in the editor named Hit Points (Unique ID: selHP) and Skill Points (Unique ID: selSP).

Create a 2nd Drop down box (ie Select Expression) with a custom expression as follows set to ALL THINGS. Note if you get any errors you may have to Bootstrap selHP and selSP to the trait. Not sure if you will have too...
Code:
thingid.selHP|thingid.selSP

Then

change the eval script to the following:
Code:
var searchexpr as string
var classcount as number
doneif (field[usrChosen1].ischosen = 0)
doneif (field[usrChosen2].ischosen = 0)

searchexpr = "thingid." & field[usrChosen1].chosen.idstring
foreach pick in hero from BaseClLev where searchexpr
classcount +=1
nexteach

~If skill points selected give skill point boost.
if (field[usrChosen2].chosen.pulltags[thingid.selSP] = 1) then
   #resmax[resSkill] += classcount
endif
~If hit points selected give HP boost.
if (field[usrChosen2].chosen.pulltags[thingid.selHP] = 1) then
   herofield[tHP].value += classcount 
endif

Now I know Mathias does not really *like* doing things this way but I find it very quick and easy to understand when first getting into the drop down selections.

Hope that helps.
 
I am doing the following with no access to HL so in theory this all works just fine. :)

Thanks! I really appreciate it. In fact, it didn't give me any error messages, but it didn't work, either. :)

When selected for a character, it opens two selection fields. The first is for the favored class (so far, so good). The second simply says "Nothing to Select".

Any ideas?
 
Create a 2nd Drop down box (ie Select Expression) with a custom expression as follows set to ALL THINGS.
This is the step your missing but I was not super clear as I couldn't remember the exact wording that it was called.

So in more detail under the "2nd Custom Expression" section is "Restrict Second List To..." which needs to be set to "All Things".

Make that change and try it out. :)
 
Awesome! Works as advertised, so thanks again!

BUT...

This allows you to select either hit points or skill points ONCE. The player needs to be able to select it at every level of this class, just as with regular favored class points. Is that possible/practicable?
 
Back
Top