HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Converting a string to a item code?

11-30-2005, 11:25 PM#1
HomerTheDragoon
well since you are not able to use a string for creating an item.(which really sucks). i was wondering if there was a way to convert a string or an item to the item code name.(like the I00G thing.)
12-19-2005, 07:57 AM#2
Anitarf
I'm not sure what you mean? You can always get the four letter code of an item-type by viewing it in the object editor and pressing ctrl+D.
12-19-2005, 10:31 AM#3
Zoxc
You can use strings to create items... You just need to convert them to integer first -.-
12-19-2005, 10:34 AM#4
iNfraNe
Quote:
Originally Posted by Zoxc
You can use strings to create items... You just need to convert them to integer first -.-
Yes, but doing this directly on the ASCII ('I000') type doesnt work. You need to make it a real integer first, then you can do S2I and create the item.
12-19-2005, 03:42 PM#5
Zoxc
Creating items using 'I000' works.....
12-19-2005, 03:48 PM#6
iNfraNe
Quote:
Originally Posted by Zoxc
Creating items using 'I000' works.....
Converting the string "I000" doesnt
12-19-2005, 04:02 PM#7
Zoxc
nope :P " != '
12-19-2005, 04:13 PM#8
iNfraNe
Quote:
Originally Posted by HomerTheDragoon
well since you are not able to use a string for creating an item.(which really sucks). i was wondering if there was a way to convert a string or an item to the item code name.(like the I00G thing.)
so... ;) my point: first create a "normal" integer out of it else it wont work :)