Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
tekknowkub
Junior Member
 
Join Date: Mar 2014
Location: Milwaukee, WI
Posts: 20

Old November 1st, 2022, 12:23 PM
This is what I have now but I'm not sure how to write the if statement for has levels in Draconic Exemplar & also has a specific feat so I keep getting errors at the moment.


~ determine dracomorphosis increment
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~if we've been disabled, get out now
doneif (tagis[Helper.SpcDisable] <> 0)

~ size bump every 4 levels for Draconic Exemplar
~ size bump every 5 levels for Draconic Hero
~ whichever one is higher takes effect, no stacking
var ExLev as number
var HeroLev as number
var ExIncr as number
var HeroIncr as number

ExLev = #levelcount[DraconicE]
call DracHero

ExIncr = round(ExLev/4,0,-1)
HeroIncr = round(HeroLev/5,0,-1)

~ Legendary Size feat, adjust Draconic Exemplar & Draconic Hero levels by +2 for size increase

if (ExLev >= 1, hero.childlives[fCITTanLegSize] = 1) then
ExIncr = round(ExLev+2/4,0,-1)
hero.childfound[cRPDraDra4].field[xExtraLev].value += 2
elseif (ExLev >= 20, hero.childlives[fCITTanLegSize] = 1) then
hero.child[aSTR].field[aNormMod].value += 2
hero.child[aCON].field[aNormMod].value += 2
elseif (HeroLev >= 1, hero.childlives[fCITTanLegSize] = 1) then
hero.childfound[cRPDraDra5].field[xExtraLev].value += 2
elseif (HeroLev <= 19, hero.childlives[fCITTanLegSize] = 1) then
HeroIncr = round(HeroLev+2/5,0,-1)
elseif (HeroLev >= 20, hero.childlives[fCITTanLegSize] = 1) then
HeroIncr = 5
perform hero.childfound[abCITDraHGrtWyrm].assign[Helper.ShowSpec]
endif

~debug "ExLev = " & ExLev
~debug "HeroLev = " & HeroLev

~ store for later script use
field[abValue5].value = maximum(ExIncr,HeroIncr)

~debug "incr = " & field[abValue5].value
tekknowkub is offline   #11 Reply With Quote
 


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 09:31 PM.


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