Hi
I'm trying to make a custom magic item, that evolves, based on class level.
The idea is: If 1st lvl wizard, gets a bonus to knowledge skills of +1, if 5th lvl gets a bonus of +2.
I'm having problems with the class level part, and hope one of you can fix that
if (hero.tagis[cWizard] >= 5) then
#competencebonus[hero.childfound[AllKnow], 2]
else
if (hero.tagis[cWizard] <> 0) then
#competencebonus[hero.childfound[AllKnow], 1]
endif
endif
I'm trying to make a custom magic item, that evolves, based on class level.
The idea is: If 1st lvl wizard, gets a bonus to knowledge skills of +1, if 5th lvl gets a bonus of +2.
I'm having problems with the class level part, and hope one of you can fix that

if (hero.tagis[cWizard] >= 5) then
#competencebonus[hero.childfound[AllKnow], 2]
else
if (hero.tagis[cWizard] <> 0) then
#competencebonus[hero.childfound[AllKnow], 1]
endif
endif