• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Equipment system

Status
Not open for further replies.

Chaosy

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