- Joined
- Jan 27, 2017
- Messages
- 13
Hey Guys,
I am trying to create an item similar to Kelen's Dagger of Escape but requires a friendly unit to teleport to. I used the channel ability and created the triggers for the functionality but when the item is used it is not put on cooldown. If I use the event A Unit Finishes Casting an Ability the cooldown works but the unit is not teleported (though the special effects still work). Is there something I am missing behind how items go on cooldown?
Trigger
Item
I am trying to create an item similar to Kelen's Dagger of Escape but requires a friendly unit to teleport to. I used the channel ability and created the triggers for the functionality but when the item is used it is not put on cooldown. If I use the event A Unit Finishes Casting an Ability the cooldown works but the unit is not teleported (though the special effects still work). Is there something I am missing behind how items go on cooldown?
Trigger
-
Teleport
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Item Teleport
-
Actions
- Special Effect - Create a special effect attached to the origin of (Casting unit) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Set Item_TeleP = (Position of (Target unit of ability being cast))
- Unit - Move (Casting unit) instantly to Item_TeleP
- Custom script: call RemoveLocation(udg_Item_TeleP)
- Set Item_TeleP = (Position of (Triggering unit))
- Special Effect - Create a special effect at Item_TeleP using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_Item_TeleP)
-
Events
Item