• 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

Incrementally making a Racial Trait replaced?

TCArknight

Well-known member
I have a racial ability Z which has 3 uses per day. I have Alternate Racial Traits X and Y which remove 1 and 2 uses of Z respectively. I have the script below on X and Y
Code:
@ Levels/1001

field[abValue].value += 1

~Subtract uses from trkMax for Burst
hero.child[Z].field[trkMax].value -= field[abValue].value

if (hero.child[Z].field[trkMax].value <= 0) then
  perform hero.assign[AbReplace.Z]
  perform hero.child[Z].assign[AbModify.Z]
  perform hero.child[Z].assign[AbReplace.Z]
  perform hero.child[Z].assign[RaReplace.Z]
  perform hero.child[Z].assign[Helper.Exhausted]
  perform hero.child[Z].assign[Helper.SpcDisable]
  perform hero.child[Z].assign[Helper.SpcReplace]
  endif
and I have a prereq on each
Code:
tagcount[AbReplace.raXeBurst] = 0
to account for other traits completely replacing Z. If I add both X and Y to the hero, Z does show as disabled/replaced, but then X and Y show the pre-req error.

Is there a better way to handle this situation?
 
Back
Top