Aller au contenu

Photo

Modifying the appearance of several item parts simultaneously


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
Kato -

Kato -
  • Members
  • 392 messages
Hi,

I'm looking for a way to change the appearance of items(according to material) created by a random loot generator(under MySQL), and although CopyItemAndModify() can do this, it implies calling it as many times as the item has different parts, on each creature drop, wich is too slow and creates lag, even though the loot system itself is very fast. Does anyone know a better solution than using the aforementioned function?

Thank you!

Kato

Modifié par Kato_Yang, 05 novembre 2011 - 07:34 .


#2
WhiZard

WhiZard
  • Members
  • 1 204 messages

Kato_Yang wrote...

Hi,

I'm looking for a way to change the appearance of items(according to material) created by a random loot generator(under MySQL), and although CopyItemAndModify() can do this, it implies calling it as many times as the item has different parts, on each creature drop, wich is too slow and creates lag, even though the loot system itself is very fast. Does anyone know a better solution than using the aforementioned function?

Thank you!

Kato


Do you care about the variables? If not, you could create from premade models and copy the item properties over.

#3
Kato -

Kato -
  • Members
  • 392 messages
No, the items have no variables set on them. I wanted to avoid creating one new item of each different material to keep the palettes clean, yet it seems I have no choice...

#4
Failed.Bard

Failed.Bard
  • Members
  • 774 messages
If you're using nwnx anyways, nwnx_resman might be an option for you. As I understand it, any item templates put in the directory it accesses can be created by script, but still won't appear in the DM or toolset palette.

#5
Kato -

Kato -
  • Members
  • 392 messages
True. Thank you all for the guidance :)

Kato