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)
-   -   Assistance with Feat: Legendary Size from In the Company of Dragons Expanded (http://forums.wolflair.com/showthread.php?t=67427)

tekknowkub 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 November 3rd, 2022 10:24 AM

Still needing some help... I need an if statement for if the character has a specific class and also has a specific feat then do stuff.

Can anyone assist?

~ Draconic Exemplar level +2 for Dracomorphosis
if ((hero.childlives[fCITTanLegSize] <> 0) + (hero.childlives[cHelpDra] <> 0) = 2) then
ExIncr = round(ExLev+2/4,0,-1)
hero.childfound[cRPDraDra4].field[xExtraLev].value += 2
endif

Mathias November 3rd, 2022 10:49 AM

#levelcount[DraconicE] > 0

#hasfeat[fCITTanLegSize] <> 0

Combining them:
if (#levelcount[DraconicE] > 0) then
if (#hasfeat[fCITTanLegSize] <> 0) then
~make your changes here
endif
endif

tekknowkub November 3rd, 2022 01:22 PM

Thank you. Is it possible to have an EvalScript that adjusts the value of an external ability?

For example, I have an evalScript that runs from the Ability [abCITDracExp] and I'd like it to update to the field.abValue5 on Ability [xRPDraDrac].

This doesn't seem to do the trick though.

hero.child[xRPDraDrac].field[abValue5].value = maximum(ExIncr1,HeroIncr1)

tekknowkub November 3rd, 2022 05:29 PM

I have this script running First/400 on an Alternate Racial Trait once I noticed Dracomorphosis was bootstrapped to the race and not the class.

Nothing happens when you add the feat though, it's very frustrating.

~ determine legendary size 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 HeroLev1 as number
var ExIncr as number
var HeroIncr as number
var LegSize as number

~ Legendary Feat +2 level variable
LegSize = 0
if (#hasfeat[fCITTanLegSize] <> 0) then
LegSize = 2
endif

call DracHeroExp
HeroLev1 = HeroLev+LegSize
ExLev = #levelcount[DraconicE]+LegSize

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

~ Begin Legendary Size adjustments
~~ Draconic Exemplar level +2 for Dracomorphosis
if (ExLev <> 0) then
if (#hasfeat[fCITTanLegSize] <> 0) then
hero.childfound[cRPDraDra4].field[xExtraLev].value += 2
endif
endif

~~ Draconic Exemplar level +2 Str & Con for Great Wyrm
if (ExLev >= 20) then
if (#hasfeat[fCITTanLegSize] <> 0) then
hero.child[aSTR].field[aNormMod].value += 2
hero.child[aCON].field[aNormMod].value += 2
endif
endif

~ Draconic Hero levels by +2 for Dracomorphosis
if (HeroLev >=1) then
if (#hasfeat[fCITTanLegSize] <> 0) then
hero.childfound[cRPDraDra5].field[xExtraLev].value += 2
endif
endif

~ Draconic Hero level 20 gets Great Wyrm ability
if (HeroLev >= 20) then
if (#hasfeat[fCITTanLegSize] <> 0) then
HeroIncr = 5
perform hero.childfound[abCITDraHGrtWyrm].assign[Helper.ShowSpec]
endif
endif
~ End of Legendary Size adjustments

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

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

~debug "incr = " & field[abValue5].value


All times are GMT -8. The time now is 05:45 PM.

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