Ok, I need help. Here is my feat. It's broken atm but I need help with some scripting I've never used before.
What I need to do is check if an ability like the Goliath's Powerful Build ability is present. If it is I need add +1 to iCount. This allows abilities like Powerful Build to stack with the Brawny feat. (I've highlighted the sample script in red).
I tried using the #hasability macro but it wasn't detecting the presence of the
'ra5CEEMoBo' for some reason.
I think I should be using findchild but am unsure how to go about it.
I am shamelessly asking ShadowChemost for advice.
Phase: Post-attributes, Priority: 11000
What I need to do is check if an ability like the Goliath's Powerful Build ability is present. If it is I need add +1 to iCount. This allows abilities like Powerful Build to stack with the Brawny feat. (I've highlighted the sample script in red).
I tried using the #hasability macro but it wasn't detecting the presence of the
'ra5CEEMoBo' for some reason.
I think I should be using findchild but am unsure how to go about it.
I am shamelessly asking ShadowChemost for advice.

Phase: Post-attributes, Priority: 11000
doneif (tagis[Helper.ShowSpec] = 0)
doneif (tagis[Helper.Disable] <> 0)
var iCount as number
iCount = 2
debug "Count = " & iCount
~ Goliath's Powerful Build ability
if (hero.child[ra5CEEMoBo].tagis[HasAbility.ra5CEEMoBo] <> 0) then
iCount += 1
debug "Count = " & iCount
endif
~ Firbolg's Powerful Build ability
~ Bear Totem Barbarian's 6th level ability
if (hero.child[c5CBbnABBe].tagis[HasAbility.c5CBbnABBe] > 0) then
iCount += 1
debug "Count = " & iCount
endif
var iLgt as number
var iHvy as number
var iMax as number
var iStr as number
iStr = hero.child[aSTR].field[aFinalVal].value
var iTemp as number
iTemp = (15*iStr*iCount)/3
iLgt = round(iTemp,0,-1)
iTemp = (15*iStr*iCount)/2
iHvy = round(iTemp,0,-1)
iTemp = (15*iStr*iCount)/1
iMax = round(iTemp,0,-1)
~herofield[tEncumLgt].value = herofield[tEncumLgt].value * iCount
~herofield[tEncumHvy].value = herofield[tEncumHvy].value * iCount
~herofield[tEncumMax].value = herofield[tEncumMax].value * iCount
herofield[tEncumLgt].value = iLgt
herofield[tEncumHvy].value = iHvy
herofield[tEncumMax].value = iMax