• 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

At a loss, please help

ErinRigh

Well-known member
Hi all, long time no talk!

I am making a custom archetype and one of the abilities has an activatable ability that raises his Con for a time. I figured out the ability but I can't get it to be only active when activated, for the life of me I can't remember how

please help

here is my code

Pre-attr/10000
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] <> 1)
~ if we've been disabled, get out now
doneif (tagis[Helper.SpcDisable] <> 0)

hero.child[aCON].field[aNormMod].value += 2

What am I doing wrong?
 
Is that code directly on the archetype or on a class/racial special?

From the looks of it that will just increase your mod all the time. You need to add:

if (field[abilActive].value <> 0) then
hero.child[aCON].field[aNormMod].value += 2
endif

Also, I think your doneif for showSpec is incorrect, shouldnt it be <> 0 not <> 1?
 
Also, I think your doneif for showSpec is incorrect, shouldnt it be <> 0 not <> 1?
Nope I think your thinking that it should be "= 0" to follow the LW standards but having it be "<> 1" works just fine. In both cases we are saying if the tag is NOT present then we are stopping.
 
Back
Top