Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
ErinRigh
Senior Member
 
Join Date: Oct 2016
Posts: 622

Old December 2nd, 2019, 10:24 AM
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?
ErinRigh is offline   #1 Reply With Quote
TobyFox2002
Senior Member
 
Join Date: Nov 2013
Location: Andover, Ma
Posts: 617

Old December 2nd, 2019, 11:00 AM
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?
TobyFox2002 is offline   #2 Reply With Quote
ErinRigh
Senior Member
 
Join Date: Oct 2016
Posts: 622

Old December 2nd, 2019, 11:54 AM
ok I'll check that out thanks
ErinRigh is offline   #3 Reply With Quote
ErinRigh
Senior Member
 
Join Date: Oct 2016
Posts: 622

Old December 2nd, 2019, 11:54 AM
code is on the special
ErinRigh is offline   #4 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,725

Old December 2nd, 2019, 12:23 PM
Quote:
Originally Posted by TobyFox2002 View Post
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.

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #5 Reply With Quote
ErinRigh
Senior Member
 
Join Date: Oct 2016
Posts: 622

Old December 2nd, 2019, 02:51 PM
Thanks guys
ErinRigh is offline   #6 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 04:14 AM.


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