» Sat Jan 29, 2011 5:44 pm
Your main problem is the "GetSelf" which refers to the object a script is attached to, and therefore you can only use it in an object script. Most times you don't need it anyway, as functions are assumed to operate on the object unless you use an explicit operand.
The quest script should be the one that adds the token to all the appropriate actors, and the script that uses the token to change the equipment needs to be an object script on the token probably using GetContainer instead of GetSelf, so it finds the actor holding the token, not the token itself.
But if you're attempting to have a proportion of female NPCs differ in size from the others, it would be much easier just to give them a selection of armor and clothes of that other size. NPC's don't pick up armor and clothing and wear it, they only use what's in their own inventory. If their inventory is all size zero, they're petite. If it's all size 20, they're fat.
The only time you'd need a script is if you want a change of clothing that's not covered by armored/unarmored. E.g. you want a smith to put on an apron to work, sleep without it, and wear a cuirass and greaves to fight. Three situations, and only two AI package settings.