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

[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