Scriptname aaUCSoulgemStorageScript extends ObjectReference  
{Script for the sorting of soulgems}

FormList Property GemEmptyList  Auto 
{Points to the formlist of the ingredients to be stored} 

FormList Property GemFullList  Auto 
{Points to the formlist of the ingredients to be stored} 

ObjectReference Property GemEmptyContainer Auto  
{Points to the container to store the ingredients}

ObjectReference Property GemFullContainer Auto  
{Points to the container to store the ingredients}

EVENT OnActivate(ObjectReference akActionRef)

	if (akActionRef== Game.GetPlayer()) 
		int Count = akActionRef.GetItemCount(GemEmptyList)
		akActionRef.RemoveItem(GemEmptyList, Count, True, GemEmptyContainer)
	endif

	if (akActionRef== Game.GetPlayer()) 
		int Count = akActionRef.GetItemCount(GemFullList)
		akActionRef.RemoveItem(GemFullList, Count, True, GemFullContainer)
	endif

endEVENT