CrazyWolf
New Member
- Reaction score
- 4
Hi everyone
I found somewhere this system for combining items.It works fine but whenever i pick up an item or create one for the first time i lag.Is there a problem with the trigger or i just have to make a unit pick up all the items on the beggining of the game?
Note that there are 45 same triggers as the one below and the reason i am asking if i should create a unit in the beggining and order him to pick them up is that there are about 90 items in my map and that could cause my problems(picking all of them at map initialization).
Ty in advance.
I found somewhere this system for combining items.It works fine but whenever i pick up an item or create one for the first time i lag.Is there a problem with the trigger or i just have to make a unit pick up all the items on the beggining of the game?
Note that there are 45 same triggers as the one below and the reason i am asking if i should create a unit in the beggining and order him to pick them up is that there are about 90 items in my map and that could cause my problems(picking all of them at map initialization).
Code:
Agility Bracer re
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item carried by (Triggering unit) of type Agility Bracer Recipe)) Equal to Agility Bracer Recipe
(Item-type of (Item carried by (Triggering unit) of type Cardinal's Ring)) Equal to Cardinal's Ring
(Item-type of (Item carried by (Triggering unit) of type Medallion Of Courage)) Equal to Medallion Of Courage
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
Set ItemCreatePos[1] = (Position of (Triggering unit))
Item - Remove (Item carried by (Triggering unit) of type Agility Bracer Recipe)
Item - Remove (Item carried by (Triggering unit) of type Cardinal's Ring)
Item - Remove (Item carried by (Triggering unit) of type Medallion Of Courage)
Item - Create Agility Bracer at ItemCreatePos[1]
Hero - Give (Last created item) to (Triggering unit)
Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Items\AIem\AIemTarget.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation( udg_ItemCreatePos[1] )
Else - Actions
Ty in advance.