Page 1 of 1

Setting item name on creation

Posted: Wed Feb 18, 2009 4:12 pm
by itec
As I'm encouraged in the development's current direction, I bring this topic up as there are currently no right way to set name for custom items. I think this is one of the more essential missing features in Pol.

Setting item name on creation:

Code: Select all

var desc := GetItemDescriptor("bench");
desc.color := 250; // just like settings a color
desc.name := "new name"; // this should work too
CreateItemInContainer(who.backpack, desc);
This feature is espescially needed when you are creating complex item systems.

Re: Setting item name on creation

Posted: Sat Feb 21, 2009 7:28 am
by MuadDib
Will look into the methods that could be used (name and desc) and see what we can do. Spending today updating AOS Resistances with a touch more core support (dice roll ability from Itemdesc and GetItemDescriptor()) and also looking at adding initial Luck and such today (without the full followers support I have designed, as that will take a lot more work for my methods).

While I am working on the Descriptor for items, will look at the names and all. So that means, will be looking at this request probably tonight sometime, or later in the weekend.