Lightfoot8 wrote...
Off topic to your question, But doing this:
CreateItemOnObject(sclothes_resref, OBJECT_SELF,1 ,"my_clothes");
object oClothes = GetItemPossessedBy(OBJECT_SELF, "my_clothes");
is pointless. It is not only pointless but there is no garrentee that it is retrieving the correct item. Use:
object oClothes = CreateItemOnObject(sclothes_resref, OBJECT_SELF,1 ,"my_clothes");
Or even get rid of the var all together and Just equip the Item created:
ActionEquipItem(CreateItemOnObject(sclothes_resref, OBJECT_SELF,1 ,"my_clothes") , INVENTORY_SLOT_CHEST);
Thanks for the guidance Lightfoot8, Just getting my head back around NWscript. It has been a few years. Relearning and guidance like this is a huge help!
Thanks!
Now...if I can only figure out how not to have to goto work each day so I can do nothing else but dink with NWN.....
Modifié par Sydious, 13 juillet 2011 - 09:58 .