kallieblakie
New Member
- Reaction score
- 5
I have a simple item system which follows:
This trigger works perfectly, except that I have about 40 other triggers like this one. So when a Hero buys and item, it lags for a short while, which I think is because of the triggers. Is there anyway to make it not lag with GUI, or a system in JASS that would make it not laggy at all? If there is, can someone post the trigger for me?
Thanks in advance
Code:
Medallion of Courage
Events
Unit - A unit Acquires an item
Conditions
And - All (Conditions) are true
Conditions
((Hero manipulating item) has an item of type Gauntlets of Ogre Strength) Equal to True
((Hero manipulating item) has an item of type Slippers of Agility) Equal to True
((Hero manipulating item) has an item of type Mantle of Intelligence) Equal to True
Actions
Item - Remove (Item carried by (Hero manipulating item) of type Gauntlets of Ogre Strength)
Item - Remove (Item carried by (Hero manipulating item) of type Slippers of Agility)
Item - Remove (Item carried by (Hero manipulating item) of type Mantle of Intelligence)
Hero - Create Medallion of Courage and give it to (Hero manipulating item)
Special Effect - Create a special effect attached to the origin of (Hero manipulating item) using Abilities\Spells\Items\AIlm\AIlmTarget.mdl
Special Effect - Destroy (Last created special effect)
This trigger works perfectly, except that I have about 40 other triggers like this one. So when a Hero buys and item, it lags for a short while, which I think is because of the triggers. Is there anyway to make it not lag with GUI, or a system in JASS that would make it not laggy at all? If there is, can someone post the trigger for me?
Thanks in advance