• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Equipment system

Status
Not open for further replies.

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,182
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,657
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