• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[JASS] Item Type Variable in JASS?

Status
Not open for further replies.
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.
 
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.
Back
Top