• 🏆 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!

Custom Item Class?

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,190
Hash tables let you store values to 2 integers. Itemtypes are integers. Thus from the item type you can attach and retreive a value, which I would call class.

In the pick up trigger, you check if a player has 2 or more of the same class item by getting all the item classes from the item types and if there is a match then drop or switch items.
 
Level 2
Joined
Jul 10, 2009
Messages
10
Agreed, I need such a system for my ORPG, and the tutorials on this site do not explain it enough (the hashtables one)
 
Status
Not open for further replies.
Top