- Joined
- Aug 1, 2008
- Messages
- 453
I'm am trying to make a system that makes it so you can only have 2 of 1 item. And it works just fine, just it causes MAJOR lag. And i have no clue why. Will +rep if you can help me. Heres the trigger
-
Only have 2 of 1 item
-

Events
-


Unit - A unit Acquires an item
-
-

Conditions
-


(Item-type of (Item being manipulated)) Equal to Claws of Attack +15
-
-

Actions
-


Wait 0.05 seconds
-


Item - Remove (Item carried by (Hero manipulating item) of type Claws of Attack +15)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




((Hero manipulating item) has an item of type Claws of Attack +15) Equal to True
-
-



Then - Actions
-




Item - Remove (Item carried by (Hero manipulating item) of type Claws of Attack +15)
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






((Hero manipulating item) has an item of type Claws of Attack +15) Equal to True
-
-





Then - Actions
-






Item - Remove (Item carried by (Hero manipulating item) of type Claws of Attack +15)
-






Game - Display to (All players) the text: WARNING: YOU MAY ON...
-






Set Points[22] = (Center of (Playable map area))
-






Item - Create Claws of Attack +15 at Points[22]
-






Hero - Give (Last created item) to (Hero manipulating item)
-






Item - Create Claws of Attack +15 at Points[22]
-






Hero - Give (Last created item) to (Hero manipulating item)
-






Custom script: call RemoveLocation (udg_Points[22])
-
-





Else - Actions
-






Set Points[22] = (Center of (Playable map area))
-






Item - Create Claws of Attack +15 at Points[22]
-






Hero - Give (Last created item) to (Hero manipulating item)
-






Item - Create Claws of Attack +15 at Points[22]
-






Hero - Give (Last created item) to (Hero manipulating item)
-






Custom script: call RemoveLocation (udg_Points[22])
-
-
-
-



Else - Actions
-




Set Points[22] = (Center of (Playable map area))
-




Item - Create Claws of Attack +15 at Points[22]
-




Hero - Give (Last created item) to (Hero manipulating item)
-




Custom script: call RemoveLocation (udg_Points[22])
-
-
-


Trigger - Turn off (This trigger)
-


Trigger - Turn on (This trigger)
-
-









