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

Item Locking

Status
Not open for further replies.
Level 3
Joined
Apr 14, 2007
Messages
40
How do you get items to only be used by a unit like getting a warrior type unit to use swords and getting a magic type unit to use wands:confused:
 
Level 4
Joined
Jun 5, 2007
Messages
65
Best way I can think to do this is to assign each hero as its created a custom value (1 for strength, 2 for intell, 3 for agi) and then when a unit acquires an item of type (whatever item), if the hero's custom value matches what its supposed to be, then give the hero X abilities.
 
Status
Not open for further replies.
Top