• 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

How do I fix this stacking feat to count correctly

Senko

Well-known member
I'm trying to edit the feat "Component Freedom" to change the value of material component ignored. However I can't seem to get it to work as I'm having to make a new copy since the original can't be edited and resaved.

The scripts in it are . . .

Eval Scripts
Phase: Render Priority: 10,000 Index: 2

if (field[abValue].value <> 0) then
field[abValue].value = minimum(field[abValue].value,4)
field[livename].text = field[thingname].text & " (" & field[abValue].value & " components)"
endif

Phase: Post Levels Priority: 10,000 Index: 1
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)

~ If we're disabled, just get out now
doneif (tagis[Helper.SpcDisable] <> 0)

~see if a quickfind has been created by another copy of this ability
perform quickfind.setfocus

~if we didn't find a redirection, we're the first copy of this ability to run this script, so we'll make ourselves the FirstCopy.
if (state.isfocus = 0) then
perform quickadd
perform assign[Helper.FirstCopy]
field[abValue].value += 1

~otherwise, redirect hero.child[] to the FirstCopy, and make us an upgrade
else
perform focus.redirect
perform assign[Helper.SpecUp]
~At this point, we add 1 to the level of the first copy
focus.field[abValue].value += 1
endif

Pre-Reqs

if (@ispick <> 0) then
validif (hero.tagcount[HasAbility.cMArCompF] <= 4)
else
validif (hero.tagcount[HasAbility.cMArCompF] < 4)
endif


I've changed the pre-req to my ability name but I can only take it once rather than 3 times. I can't see any references in the earlier scripts to the ability so I'm not sure what I'm missing that allows the original component freedom to work and my altered one not too.
 

Attachments

In the Editor, I noticed in the upper right corner, the "Uniqueness" drop-down is set to "Unique". This should be set to "No." After making that adjustment you should be able to add it multiple times.
 
Back
Top