• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Solved] Getting the name of an Item-Type

Status
Not open for further replies.
Hello! Is there a Jass script that can return the name of an Item-Type as a string? I mean, i have the Item-Type inside the.. Item-Type variable :hohum: and i just wanna display it's name.
Or i have to create the certain type of item, show it's name and then remove it?

Thanks in advance!

Wait.. What?

you want to display the rawcode itself? or the name of the item?

  • Custom Script: call BJDebugMsg(I2S(udg_Your_Item_Type))
or to display the name of the rawcode

  • Custom Script: local item i = CreateItem(udg_your_ITEM_type,0,0)
  • Custom Script: local string s = GetItemName(i)
  • Custom Script: call RemoveItem(i)
  • Custom Script: call BJDebugMsg(s)
note that the first trigger will display an integer (193430293, etc)

if u want the ascii code (i043), than you have to use the ASCII lib, which isnt GUI.
 
Last edited:
Status
Not open for further replies.
Back
Top