- Joined
- Jun 2, 2009
- Messages
- 1,233
Description of my item: When your hero takes damage from enemy heroes, it cannot be used for 3 seconds.
Trigger: I am removing X item and giving the useless Y item to attacked unit for 3 seconds. Then replacing Y with X
Issue: When you die if you have the Y (useless version of X) and when you revive, no more you will get the X item (real one)
Dagger of Teleportation and Disabled Dagger of Teleportation
Windblade and Disabled Windblade
If you have the Teleportation Dagger or Windblade and if you die when it is disabled, i cannot replace it with real one when the hero revives.
Trigger: I am removing X item and giving the useless Y item to attacked unit for 3 seconds. Then replacing Y with X
Issue: When you die if you have the Y (useless version of X) and when you revive, no more you will get the X item (real one)
-
Dagger Event Takes Damage
-
Events
-
Game - DamageModifierEvent becomes Equal to 1.00
-
-
Conditions
-
(DamageEventSource is A Hero) Equal to True
-
(DamageEventSource is an illusion) Equal to False
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(DamageEventTarget has an item of type Dagger of Teleportation) Equal to True
-
-
Then - Actions
-
Item - Remove (Item carried by DamageEventTarget of type Dagger of Teleportation)
-
Hero - Create Disabled Dagger of Teleportation and give it to DamageEventTarget
-
Countdown Timer - Pause Dagger[(Player number of (Owner of DamageEventTarget))]
-
Countdown Timer - Start Dagger[(Player number of (Owner of DamageEventTarget))] as a One-shot timer that will expire in 3.00 seconds
-
Set DaggerUnit[(Player number of (Owner of DamageEventTarget))] = (Triggering unit)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(DamageEventTarget has an item of type Disabled Dagger of Teleportation) Equal to True
-
-
Then - Actions
-
Countdown Timer - Start Dagger[(Player number of (Owner of DamageEventTarget))] as a One-shot timer that will expire in 3.00 seconds
-
-
Else - Actions
-
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(DamageEventTarget has an item of type Windblade |cffffff00(Agility Unique)|r) Equal to True
-
-
Then - Actions
-
Item - Remove (Item carried by DamageEventTarget of type Windblade |cffffff00(Agility Unique)|r)
-
Hero - Create Disabled Windblade and give it to DamageEventTarget
-
Countdown Timer - Pause Dagger[(Player number of (Owner of DamageEventTarget))]
-
Countdown Timer - Start Dagger[(Player number of (Owner of DamageEventTarget))] as a One-shot timer that will expire in 3.00 seconds
-
Set DaggerUnit[(Player number of (Owner of DamageEventTarget))] = (Triggering unit)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(DamageEventTarget has an item of type Disabled Windblade) Equal to True
-
-
Then - Actions
-
Countdown Timer - Start Dagger[(Player number of (Owner of DamageEventTarget))] as a One-shot timer that will expire in 3.00 seconds
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
-
-
-
Dagger Event User Revives
-
Events
-
Time - Dagger[2] expires
-
Time - Dagger[3] expires
-
Time - Dagger[4] expires
-
Time - Dagger[5] expires
-
Time - Dagger[6] expires
-
Time - Dagger[8] expires
-
Time - Dagger[9] expires
-
Time - Dagger[10] expires
-
Time - Dagger[11] expires
-
Time - Dagger[12] expires
-
-
Conditions
-
Actions
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
Custom script: if (GetExpiredTimer() == udg_Dagger[bj_forLoopAIndex]) then
-
Set TempIntegerDagger = (Integer A)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(DaggerUnit[TempIntegerDagger] is in Oluler_ug) Equal to False
-
(Life of HeroOyuncu[TempIntegerDagger]) Greater than or equal to 2.00
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(HeroOyuncu[TempInteger] has an item of type Disabled Dagger of Teleportation) Equal to True
-
-
Then - Actions
-
Item - Remove (Item carried by DaggerUnit[TempIntegerDagger] of type Disabled Dagger of Teleportation)
-
Hero - Create Dagger of Teleportation and give it to DaggerUnit[TempIntegerDagger]
-
Countdown Timer - Start Dagger[TempIntegerDagger] as a One-shot timer that will expire in 3.00 seconds
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(HeroOyuncu[TempInteger] has an item of type Disabled Windblade) Equal to True
-
-
Then - Actions
-
Item - Remove (Item carried by DaggerUnit[TempIntegerDagger] of type Disabled Windblade)
-
Hero - Create Windblade |cffffff00(Agility Unique)|r and give it to DaggerUnit[TempIntegerDagger]
-
-
Else - Actions
-
Countdown Timer - Start Dagger[TempIntegerDagger] as a One-shot timer that will expire in 3.00 seconds
-
-
-
-
-
-
Else - Actions
-
-
Custom script: exitwhen true
-
Custom script: endif
-
-
-
-
Dagger of Teleportation and Disabled Dagger of Teleportation
Windblade and Disabled Windblade
If you have the Teleportation Dagger or Windblade and if you die when it is disabled, i cannot replace it with real one when the hero revives.