| 05-23-2006, 01:33 PM | #1 |
What do you type in JASS to set an item-type? (Not item-class which is Purchasable, Permanent etc.) the script local itemtype = GetItemTypeId(GetManipulatedItem()) apparently doesn't work. It seems that in jass, itemtype = item-class in the world editor. Apparently itemcode (taken from the variable editor of the WE as well) doesn't work too. |
| 05-23-2006, 02:01 PM | #2 |
There are no embarassing questions... ok, unless you ask ...***...>_< Abilitycodes and itemcodes like 'I00I' are seen as Integers... |
| 05-23-2006, 02:01 PM | #3 |
There are two things you could be looking for here. Item type: JASS:local itemtype = GetItemType(GetManipulatedItem()) Item type ID: JASS:local integer = GetItemTypeId(GetManipulatedItem()) |
| 05-24-2006, 10:05 AM | #4 |
Rep up for blu_da_noob! I was looking for the latter, thanks alot! |
| 05-24-2006, 12:28 PM | #5 |
For the future, just check out the native and see what it returns. JASS:native GetItemType takes item whichItem returns itemtype native GetItemTypeId takes item i returns integer |
