View Single Post
TalMeta
Member
 
Join Date: Oct 2011
Location: Browns Mills, NJ
Posts: 75

Old August 27th, 2012, 02:57 PM
I'm trying to code a legacy weapon, and want to control the dex bonus it grants as the wielder increases in level.

I tried using

if (#totallevelcount[] >= 17) & (#hasfeat[fToBGLDW]) then
#enhancementbonus[hero.child[aDEX], 6]
elseif (#totallevelcount[] >= 14) & (#hasfeat[fToBL2DW]) then
#enhancementbonus[hero.child[aDEX], 4]
elseif (#totallevelcount[] >= 7) & (#hasfeat[fToBLLDW]) then
#enhancementbonus[hero.child[aDEX], 2]
endif

but it seems to be crapping out on my use of "& (#hasfeat[xxxx]") as it was working fine before I added that bit. Suggestions?
TalMeta is offline   #1 Reply With Quote