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

[Trigger] item class system

Status
Not open for further replies.
Level 2
Joined
Mar 27, 2009
Messages
7
I have a lot of problems for example with declaring a AXE as item type weapon and declaring a sword as a weapon too, so that the second item of the type that is already inside the inventory will drop. so u can only wield one weapon and i.e. one shield.

a good comprehansion is the item system of defiance orpg....

PLZ NEED HELP ^^:fp:
 
Level 9
Joined
Oct 17, 2007
Messages
547
The basic idea is to have all "weapons" classify as ONE of these:

Permanent
Charged
Power Up
Artifact
Purchasable
Campaign
Miscellaneous

For example if you set all "weapons" as classification "Artifact" then write a trigger for everytime a unit picks up an item of that type checks the unit's inventory for another item with the classification "Artifact," if it has one of that type already then make it drop the item that it just picked up and display an error msg.
 
Status
Not open for further replies.
Top