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

Equipment system

Status
Not open for further replies.

Chaosy

Tutorial Reviewer
Level 41
Joined
Jun 9, 2011
Messages
13,239
There are two ways to make such a system.

1. Simply use a hashtable (or use item data) to save the item type, this needs to be done manually with every single item. Easier, but it takes time and it's boring.

2. Make a certain armor type be of a certain item class. Helmets are "permanent", shoulders are "Charged" etc.
 
Last edited:
Level 24
Joined
Aug 1, 2013
Messages
4,658
As soon as you have anything to classify them as a certain type of item (helmet/shield/boots/etc) you can then limit units to only wear a certain amount of them by checking if they already wear any of those.
If they do, you then either replace them or cancel the equip order.
 

Ardenian

A

Ardenian

IDS does that, at least the check. It should be easy to modify though, so you could also replace the item.
 
Status
Not open for further replies.
Top