Kelen Dagger Disable Dota?

DarkBELL

New Member
Reaction score
1
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

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
    • 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


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
    • Actions
      • Set KelenUnit[(Player number of (Owner of GDD_DamagedUnit))] = GDD_DamagedUnit
      • Set KelenCountdown[(Player number of (Owner of GDD_DamagedUnit))] = 3


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
            • 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
        • 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
            • 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
      • -------- 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
            • 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
        • 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
            • 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
      • -------- 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
            • 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
        • 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
            • 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
      • -------- 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
            • 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
        • 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
            • 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
      • -------- 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
            • 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
        • 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
            • 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
      • -------- 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
            • 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
        • 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
            • 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
      • -------- 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
            • 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
        • 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
            • 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
      • -------- 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
            • 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
        • 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
            • 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
      • -------- 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
            • 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
        • 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
            • 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
      • -------- 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
            • 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
        • 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
            • 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


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
 

Bloodcount

Starcraft II Moderator
Reaction score
297
Dude, there is such an item in the game by default. (if I recall correctly)
 

RangerX

I am justice!
Reaction score
69
use your trigger but instead of removing and adding a new item
put an unit[requirement] to the item spell named [You must be out of battle] then add that unit to player owning the hero then remove that dummy unit when the hero is attacked [this is only MPI so 2 heroes from the same team cant use this dagger ]
 

DarkBELL

New Member
Reaction score
1
But the Trigger work though, it just didn't work for players in Slot 11, or maybe some other slot, but it work perfectly for player in slot 2
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
Why don't you just use a For Each Integer from 1 to 12 loop? that way you don't have to do it once for each player.
 

DarkBELL

New Member
Reaction score
1
I change my trigger to this but the Dagger is still drop when the carrier dies, rather, the dagger is created at the position where the carrier dies

Trigger:
  • Kelen Countdown Test
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • KelenCountdown[(Integer A)] Greater than 0
            • Then - Actions
              • Set KelenCountdown[(Integer A)] = (KelenCountdown[(Integer A)] - 1)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • And - All (Conditions) are true
                    • Conditions
                      • KelenCountdown[(Integer A)] Equal to 0
                      • (KelenUnit[(Integer A)] is alive) Equal to True
                • Then - Actions
                  • Item - Remove (Item carried by KelenUnit[(Integer A)] of type Kelen's Dagger of Escape (Disable))
                  • Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[(Integer A)]
                • Else - Actions
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • And - All (Conditions) are true
                    • Conditions
                      • (KelenUnit[(Integer A)] is alive) Equal to True
                      • (KelenUnit[(Integer A)] has an item of type Kelen's Dagger of Escape (Disable)) Equal to True
                • Then - Actions
                  • Item - Remove (Item carried by KelenUnit[(Integer A)] of type Kelen's Dagger of Escape (Disable))
                  • Hero - Create Kelen's Dagger of Escape and give it to KelenUnit[(Integer A)]
                • Else - Actions


You think if I change the trigger to have it checks every 0.01 second will it work?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top