How did you add it? Via a plug-in? Or did you code it yourself? Either way this will be the wrong forum for this question, but once you answer that part we can move it to the appropriate place.
Sorry, I was thinking ACE. Though to get a typeerror that is usually a plug-in of some sorts interfering. Do you have any installed?
Hmmm...those should not affect this. Try to start a new game (as in, select new game when you are playtesting) and see if that fixes it. Odds are that is the issue, as an old save will not know what to do with the new category and will have strange things happen.
yes that worked. Thank you