I am working on a trait that would give a certain class a class skill. All works fine, but I have the restrict list set to "all things" so the knowledge, craft ect will show. Now I know normally you would get an error because craft (or whatever) skill isn't on the hero. So I tried the class ability script from the expert class (where it will show everything and work). But for some reason I still get the same error. Here is the script at pre-levels 500
if (hero.tagis[Custom.FGMPClInte] <> 0) then
if (field[usrChosen1].ischosen <> 0) then
var result as number
result = field[usrChosen1].chosen.shareidentity[ClassSkill,cHelpSpc]
endif
endif
Is there a reason why it will work as a class ability and not on a trait?
if (hero.tagis[Custom.FGMPClInte] <> 0) then
if (field[usrChosen1].ischosen <> 0) then
var result as number
result = field[usrChosen1].chosen.shareidentity[ClassSkill,cHelpSpc]
endif
endif
Is there a reason why it will work as a class ability and not on a trait?