Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   At a loss, please help (http://forums.wolflair.com/showthread.php?t=63504)

ErinRigh December 2nd, 2019 11:24 AM

At a loss, please help
 
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?

TobyFox2002 December 2nd, 2019 12:00 PM

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?

ErinRigh December 2nd, 2019 12:54 PM

ok I'll check that out thanks

ErinRigh December 2nd, 2019 12:54 PM

code is on the special

ShadowChemosh December 2nd, 2019 01:23 PM

Quote:

Originally Posted by TobyFox2002 (Post 284138)
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.

ErinRigh December 2nd, 2019 03:51 PM

Thanks guys


All times are GMT -8. The time now is 07:30 PM.

Powered by vBulletin® - Copyright ©2000 - 2020, vBulletin Solutions, Inc.
wolflair.com copyright 1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.