• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[JASS] Item Type Variable in JASS?

Status
Not open for further replies.
Level 10
Joined
Sep 29, 2006
Messages
447
He is not an asshole, he is just advising you to check the functions before starting useless threads like this. Btw, flaming is really dangerous here, I give you a hint - care your expressions.

I'm not flaming, perhaps I don't know how to check functions? Also, last I checked, typing in all caps is equal to yelling and that's very unnecessary.
 
Level 4
Joined
Mar 23, 2008
Messages
87
JASS:
 local string ItemType
 set ItemType = GetItemName(GetManipulatedItem())

And guys, please grow up. This kind of behavior belongs in 4chan.
GetItemTypeId() returns an integer. You would have obviously known this if you would have LOOKED AT THE FREAKING FUNCTION.
All quite correct, of course, but very unhelpful.

EDIT:
As PurplePoot pointed out, i was completly wrong. I thought you wanted a string with the name of the item type.
After re-reading the first post I see that I've not answered the question at hand.
I hope this helps more:
JASS:
 local integer ItemType = GetUnitTypeId(GetManipulatedItem())
 
Last edited:
GetItemTypeId() returns an integer. You would have obviously known this if you would have LOOKED AT THE FREAKING FUNCTION.

Well if he doesn't have TESH than there's no other way to check the functions parameters without external programs.

Vanilla WE doesn't include a function-list.
 
Status
Not open for further replies.
Top