Setting item name on creation

Archive of the older Feature Request Forum Posts

Moderator: POL Developer

User avatar
Novice Poster
Posts: 42
Joined: Thu Feb 09, 2006 11:48 pm
Location: Finland

Setting item name on creation

Post by itec » Wed Feb 18, 2009 4:12 pm

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 := "new name"; // this should work too
CreateItemInContainer(who.backpack, desc);
This feature is espescially needed when you are creating complex item systems.

Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Re: Setting item name on creation

Post by MuadDib » Sat Feb 21, 2009 7:28 am

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.