Aller au contenu

Photo

CopyItem makes the item loses its properties


  • Veuillez vous connecter pour répondre
Aucune réponse à ce sujet

#1
Wallack

Wallack
  • Members
  • 121 messages

Hi.

 

I have a random item generator.

 

I create an item, then I change its appearance via script and then I add some properties randomly to it.

 

I create those items directly in a vendor's inventory. The problem is that after changing the appearance of the items (weapons) they appear splitted in different pages, let's say I created 10 items, then the vendor might have 6 different pages, most of them with only one item.

 

No problem here, I create a new vendor object and copy the items from one vendor to another and then destroy the original one.

 

This way I can have the items sorted and looking like a normal merchant.

 

Problem is as the items were generated randomly they lose all the properties when using CopyItem.

 

Is there a way to prevent this? I'm not talking about the local vars or the flags I'm actually talking about magic items becoming vanilla items.

 

Thanks.