• 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.

[Solved] Custom value of item

Status
Not open for further replies.
Level 6
Joined
Feb 7, 2009
Messages
162
I'm sure there are other uses for it. But how I use it; is sometimes I need to categorize certain items, and I want to change the category in game several times over the course of the game. I'll use custom value to do this. To my knowledge and someone correct me if I am wrong, but custom values are the only integer of an item that can be changed through triggers.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
It can be used to set Ownership, saving the ownerst unit handle as the custom value of the item, or saving the player number of the owner as the custom value.
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
Why use a custom value as one particulair property if you can link any property by using the custom value as an index of a item array?

With this I mean that you can index all your items in an array and assign a unique custom value to each item.
Which in return means each custom value is different for each item, so any property can be assigned to each item by using the custom value as an index.
 
Status
Not open for further replies.
Top