Lone Wolf Development Forums  

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

Notices

Reply
 
Thread Tools Display Modes
Sphynx
Member
 
Join Date: Apr 2007
Posts: 60

Old December 30th, 2015, 06:40 AM
For my Zephyr class (Sylph Archetype), one of the rules is that they must start in the Air element, and can only expand into the Air element. I have the following checks in place:

Code:
validif (#hasability[cKinAir] <> 0)
Code:
validif (linkage[varies].field[cTotalLev].value < 7)
      validif (#hasability[cKinExpAir] <> 0)
Code:
validif (linkage[varies].field[cTotalLev].value < 15)
      validif (#hasability[cKinExpAir] > 1)
The last check isn't working though, and sure enough a "notify #hasability[cKinExpAir]" shows that that ability is a 1 when both expand elements are set to air. Does anyone know how to check if they expanded twice into the same element? "Find thing..." didn't reveal any other possible variable to check... Everything is setup in the Validation Phase at 10,000 and I've played with the 10,000 a bit in the off chance that the 2nd expand check happens later...
Sphynx is offline   #1 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old December 30th, 2015, 08:32 AM
Check for both abilities.

Code:
validif (#hasability[cKinExpAir] + #hasability[cKinAir] = 2)
Aaron is offline   #2 Reply With Quote
Sphynx
Member
 
Join Date: Apr 2007
Posts: 60

Old December 30th, 2015, 12:48 PM
This only shows if they've expanded 1-time into the element. I need to make sure they expand twice.

1st level: #hasability[cKinAir] <> 0
7th level: #hasability[cKinExpAir] <> 0
15th level: #hasability[ ??? ] <> 0

I thought #hasability[cKinExpAir] would equal 2 instead of 1 to accomplish this, but that is currently not the case (though it probably should be the case).
Sphynx is offline   #3 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old December 30th, 2015, 01:18 PM
Ah, I misunderstood. In that case, you can use tagcount for the expansion, instead of the macro.

Code:
validif (hero.tagcount[HasAbility.cKinExpAir] + #hasability[cKinAir] = 3)
Aaron is offline   #4 Reply With Quote
Sphynx
Member
 
Join Date: Apr 2007
Posts: 60

Old December 30th, 2015, 11:06 PM
Perfect! Again, thank you so much.

End script:
Code:
var level as number
var check as number

level = linkage[varies].field[cTotalLev].value
if (level >= 8) then
    level -= 1
endif

check = round(level/7, 0, -1) + 1

validif (hero.tagcount[HasAbility.cKinExpAir] + #hasability[cKinAir] >= check)

Last edited by Sphynx; December 30th, 2015 at 11:12 PM.
Sphynx is offline   #5 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 03:57 PM.


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