Choose some random clothes from a formlist and add to the person who was the target of my spell.
take a look at the script then
Scriptname MCSChangeClothEffect extends activemagiceffect
FormList Property MCSClothForChange Auto
Event OnEffectStart(Actor akTarget, Actor akCaster)
int FormListSize = MCSClothForChange.GetSize()
If akCaster == Game.GetPlayer()
akTarget.RemoveAllItems()
int nClothes = 0;
while(nClothes < 3)
ObjectReference newClothes= MCSClothForChange .GetAt( Utility.RandomInt(0, 41) ) As ObjectReference
akTarget.AddItem(newClothes, 1)
Game.GetPlayer().placeatme(newClothes)
nClothes+=1
endwhile
Debug.messagebox("come on!");
endif
EndEvent
the messagebox show the message and the target took off all her clothes

but no new clothes were add to them!!
question 1:I'v created a new formlist in ck.And was it enough to get it just by adding the property in the script like this.
question 2:The items which in the formlist is from another mod. so was it the reason it doesnt work.
question 3:I use the ' As ObjectReference' and 'additems' to any person in the game.Was it not right?
Thank you very much for help!