- Joined
- Jan 16, 2008
- Messages
- 156
Currently I use lots of triggers like this for my item system (47 to be exact):
Now that I have lots of items, should I combine all of those triggers under a single event or just leave them as seperate triggers?
Basically this boils down to: Does the WC3 engine process events or conditions faster?
Code:
Runed Gautlets
Events
Unit - A unit Acquires an item
Conditions
((Triggering unit) has an item of type Gauntlets of Ogre Strength) Equal to True
((Triggering unit) has an item of type Circlet of Nobility) Equal to True
((Triggering unit) has an item of type Rare Scroll) Equal to True
Actions
Item - Remove (Item carried by (Triggering unit) of type Gauntlets of Ogre Strength)
Item - Remove (Item carried by (Triggering unit) of type Circlet of Nobility)
Item - Remove (Item carried by (Triggering unit) of type Rare Scroll)
Hero - Create |cffffcc00Runed Gauntlets|r|n and give it to (Triggering unit)
Now that I have lots of items, should I combine all of those triggers under a single event or just leave them as seperate triggers?
Basically this boils down to: Does the WC3 engine process events or conditions faster?