Malice-
Endlessly Known
- Reaction score
- 34
So, I have a recipe to combine boots of speed to make "Boots of speed 2" when two of them are acquired, but it only works if i have NO OTHER items in my inventory. I can't really figure out why, either
Here is my faulty trigger:
Any suggestions?
Here is my faulty trigger:
Code:
Boots of Speed Upgrade
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to Boots of Speed
Actions
Set Boots_Count[(Player number of (Owner of (Triggering unit)))] = 0
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Boots_Count[(Player number of (Owner of (Triggering unit)))] Equal to 0
(Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to Boots of Speed
Then - Actions
Set Boots_Count[(Player number of (Owner of (Triggering unit)))] = (Boots_Count[(Player number of (Owner of (Triggering unit)))] + 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Boots_Count[(Player number of (Owner of (Triggering unit)))] Equal to 1
(Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to Boots of Speed
Then - Actions
Set Boots_Count[(Player number of (Owner of (Triggering unit)))] = -1
Item - Remove (Item carried by (Triggering unit) of type Boots of Speed)
Wait 0.00 seconds
Item - Remove (Item carried by (Triggering unit) of type Boots of Speed)
Special Effect - Create a special effect at (Position of (Hero manipulating item)) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
Item - Create Boots of Speed 2 at (Position of (Triggering unit))
Hero - Give (Last created item) to (Triggering unit)
Wait 2.00 seconds
Special Effect - Destroy (Last created special effect)
Else - Actions
Trigger - Run Boots of Speed Upgrade 2 <gen> (checking conditions)
Any suggestions?