I try to make a Dota's Blink Dagger
or something of that sort that get disable when the holder of the item get attack in the last 3 seconds
I create two item, The Useable dagger and the Disable dagger
and co operate with the Damage Detection System I create a system where The Blink is replace by the disable one when attacked
It worked fine until I test it out and found that if the holder of the Blink Dagger die, the Dagger is drop. So I tell him to try give me a Dagger and then I go and die, The Blink dagger doesn't drop, So there is some flaw in my trigger that is specifically on that player that make the blink dagger drop when he died
I really can't detect any, so can somebody help me check?
This is my trigger
The registered each Hero as KelenUnit[Player Number] when they are attack and then remove the dagger, It also check if the Unit is [Alive] individually so I don't know why the dagger still drop when the carrier die
I also suspect that the Dagger didn't drop but when the hero die and the Kelen Countdown integer reach zero, the dagger is "created" at the place where the hero die.
Can somebody help me look for any mistake in the trigger? many thanks
or something of that sort that get disable when the holder of the item get attack in the last 3 seconds
I create two item, The Useable dagger and the Disable dagger
and co operate with the Damage Detection System I create a system where The Blink is replace by the disable one when attacked
It worked fine until I test it out and found that if the holder of the Blink Dagger die, the Dagger is drop. So I tell him to try give me a Dagger and then I go and die, The Blink dagger doesn't drop, So there is some flaw in my trigger that is specifically on that player that make the blink dagger drop when he died
I really can't detect any, so can somebody help me check?
This is my trigger
Trigger:
- Kelen Disable
- Events
- Game - GDD_Event becomes Equal to 0.00
- Conditions
- And - All (Conditions) are true
- Conditions
- (GDD_DamagedUnit has an item of type Kelen's Dagger of Escape) Equal to True
- (GDD_DamageSource is A Hero) Equal to True
- Conditions
- And - All (Conditions) are true
- Actions
- Item - Remove (Item carried by GDD_DamagedUnit of type Kelen's Dagger of Escape)
- Hero - Create Kelen's Dagger of Escape (Disable) and give it to GDD_DamagedUnit
- Set KelenUnit[(Player number of (Owner of GDD_DamagedUnit))] = GDD_DamagedUnit
- Set KelenCountdown[(Player number of (Owner of GDD_DamagedUnit))] = 3
- Events
Trigger:
- Kelen Disable2
- Events
- Game - GDD_Event becomes Equal to 0.00
- Conditions
- And - All (Conditions) are true
- Conditions
- (GDD_DamagedUnit has an item of type Kelen's Dagger of Escape (Disable)) Equal to True
- (GDD_DamageSource is A Hero) Equal to True
- Conditions
- And - All (Conditions) are true
- Actions
- Set KelenUnit[(Player number of (Owner of GDD_DamagedUnit))] = GDD_DamagedUnit
- Set KelenCountdown[(Player number of (Owner of GDD_DamagedUnit))] = 3
- Events
Trigger:
- Kelen Countdown
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- Actions
- -------- SENTINEL --------
- -------- Player 1 --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- KelenCountdown[2] Greater than 0
- Then - Actions
- Set KelenCountdown[2] = (KelenCountdown[2] - 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- KelenCountdown[2] Equal to 0
- (KelenUnit[2] is alive) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[2] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[2]
- Else - Actions
- If - Conditions
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- (KelenUnit[2] is alive) Equal to True
- (KelenUnit[2] has an item of type Kelen's Dagger of Escape (Disable)) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[2] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[2]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- -------- Player 2 --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- KelenCountdown[3] Greater than 0
- Then - Actions
- Set KelenCountdown[3] = (KelenCountdown[3] - 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- KelenCountdown[3] Equal to 0
- (KelenUnit[3] is alive) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[3] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[3]
- Else - Actions
- If - Conditions
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- (KelenUnit[3] is alive) Equal to True
- (KelenUnit[3] has an item of type Kelen's Dagger of Escape (Disable)) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[3] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[3]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- -------- Player 3 --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- KelenCountdown[4] Greater than 0
- Then - Actions
- Set KelenCountdown[4] = (KelenCountdown[4] - 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- KelenCountdown[4] Equal to 0
- (KelenUnit[4] is alive) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[4] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[4]
- Else - Actions
- If - Conditions
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- (KelenUnit[4] is alive) Equal to True
- (KelenUnit[4] has an item of type Kelen's Dagger of Escape (Disable)) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[4] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[4]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- -------- Player 4 --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- KelenCountdown[5] Greater than 0
- Then - Actions
- Set KelenCountdown[5] = (KelenCountdown[5] - 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- KelenCountdown[5] Equal to 0
- (KelenUnit[5] is alive) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[5] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[5]
- Else - Actions
- If - Conditions
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- (KelenUnit[5] is alive) Equal to True
- (KelenUnit[5] has an item of type Kelen's Dagger of Escape (Disable)) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[5] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[5]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- -------- Player 5 --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- KelenCountdown[6] Greater than 0
- Then - Actions
- Set KelenCountdown[6] = (KelenCountdown[6] - 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- KelenCountdown[6] Equal to 0
- (KelenUnit[6] is alive) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[6] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[6]
- Else - Actions
- If - Conditions
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- (KelenUnit[6] is alive) Equal to True
- (KelenUnit[6] has an item of type Kelen's Dagger of Escape (Disable)) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[6] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[6]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- -------- SCOURGE --------
- -------- Player 6 --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- KelenCountdown[8] Greater than 0
- Then - Actions
- Set KelenCountdown[8] = (KelenCountdown[8] - 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- KelenCountdown[8] Equal to 0
- (KelenUnit[8] is alive) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[8] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[8]
- Else - Actions
- If - Conditions
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- (KelenUnit[8] is alive) Equal to True
- (KelenUnit[8] has an item of type Kelen's Dagger of Escape (Disable)) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[8] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[8]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- -------- Player 7 --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- KelenCountdown[9] Greater than 0
- Then - Actions
- Set KelenCountdown[9] = (KelenCountdown[9] - 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- KelenCountdown[9] Equal to 0
- (KelenUnit[9] is alive) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[9] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[9]
- Else - Actions
- If - Conditions
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- (KelenUnit[9] is alive) Equal to True
- (KelenUnit[9] has an item of type Kelen's Dagger of Escape (Disable)) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[9] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[9]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- -------- Player 8 --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- KelenCountdown[10] Greater than 0
- Then - Actions
- Set KelenCountdown[10] = (KelenCountdown[10] - 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- KelenCountdown[10] Equal to 0
- (KelenUnit[10] is alive) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[10] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[10]
- Else - Actions
- If - Conditions
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- (KelenUnit[10] is alive) Equal to True
- (KelenUnit[10] has an item of type Kelen's Dagger of Escape (Disable)) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[10] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[10]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- -------- Player 9 --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- KelenCountdown[11] Greater than 0
- Then - Actions
- Set KelenCountdown[11] = (KelenCountdown[11] - 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- KelenCountdown[11] Equal to 0
- (KelenUnit[11] is alive) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[11] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[11]
- Else - Actions
- If - Conditions
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- (KelenUnit[11] is alive) Equal to True
- (KelenUnit[11] has an item of type Kelen's Dagger of Escape (Disable)) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[11] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[11]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- -------- Player 10 --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- KelenCountdown[12] Greater than 0
- Then - Actions
- Set KelenCountdown[12] = (KelenCountdown[12] - 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- KelenCountdown[12] Equal to 0
- (KelenUnit[12] is alive) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[12] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[12]
- Else - Actions
- If - Conditions
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- (KelenUnit[12] is alive) Equal to True
- (KelenUnit[12] has an item of type Kelen's Dagger of Escape (Disable)) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Item - Remove (Item carried by KelenUnit[12] of type Kelen's Dagger of Escape (Disable))
- Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[12]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Events
The registered each Hero as KelenUnit[Player Number] when they are attack and then remove the dagger, It also check if the Unit is [Alive] individually so I don't know why the dagger still drop when the carrier die
I also suspect that the Dagger didn't drop but when the hero die and the Kelen Countdown integer reach zero, the dagger is "created" at the place where the hero die.
Can somebody help me look for any mistake in the trigger? many thanks