Detect Reincarnation?

PandaBear

New Member
Reaction score
3
Is it possible to detect the Reincarnation ability? (I mean the unit dies, not when it learns the Reincarnation ability)
 

Shura

New Member
Reaction score
45
I tried, and I couldn't figure out a way to detect it. So would you not be able to trigger the reincarnation so that you can detect when it fires?
 

jig7c

Stop reading me...-statement
Reaction score
123
you could:
Trigger:
  • Trigger 1
    • Events
      • A unit learns an ability
    • conditions
      • Learned ability equal to Reincarnation
    • Actions
      • Set ReincarnationUnitVariable = Triggering Unit
      • Turn on Checker <gen>


Trigger:
  • Checker
    • Events
      • Every 5 seconds of the game...
    • Conditions
      • Level of Ability for Reincarnation equal to or greater than 1
      • ReicarnationUnitVariable HP less than 1....
    • Actions
      • ...


did you try the Event - A unit dies...
 

Shura

New Member
Reaction score
45
When a unit dies that is going to be reincarnated, the event A Unit Dies does not fire.
 

Shura

New Member
Reaction score
45
Jig's idea will work, but it will run whenever the unit dies, whether or not reincarnation is going to revive the unit. You can fix that by making a trigger that turns off the checking trigger when the unit dies.
 

PandaBear

New Member
Reaction score
3
Yea. I was doing something very wrong :banghead: :banghead: :banghead:

I was using my old trigger, and it was referring to the "Triggering Unit" but since the event is "Every 1 second of game time" it wasn't working...

I created a spell that when the unit dies, the ground explodes, dealing damage to enemy units nearby and after 7 seconds it comes back to life. To solve the Reincarnation cooldown problem i just added a timer (the trigger starts the timer and turns itself off, when the timer expire the trigger will turn on again) :D

@Edit
Almost forgot to thank you guys for your help... Thanks!
 

Bogrim

y hello thar
Reaction score
154
It would be a lot smoother to use a damage detection event and then simply detect when the unit is dealt a killing blow. You can create an artificial cooldown in many ways to match the cooldown of Reincarnation, the complexity depending on the need for MUI.
 

canons200

New Member
Reaction score
50
i have some idea, but i don't whether it will work or not. any spell also need to cast, may also include reincarnation? so try to use a unit start the effect, ability being cast equal to reincarnation???
 

Bogrim

y hello thar
Reaction score
154
Ok, let me try and say this again:

This is trivial if you use the damage detection system linked above. For instance,

Trigger:
  • Reincarnation with damage
    • Events
      • Game - GDD_Event becomes Equal to 0.00
    • Conditions
      • (Life of GDD_DamagedUnit) Less than or equal to GDD_Damage
      • (Level of Reincarnation for GDD_DamagedUnit) Greater Than 0
      • (Level of Reincarnation Cooldown for GDD_DamagedUnit) Equal to 0
    • Actions
      • local unit u = udg_GDD_DamagedUnit
      • Set Temp_Point = Position of GDD_DamagedUnit
      • Set Temp_Group = Units in (Add Range of Ability) range of Temp_Point matching conditions (Add Conditions)
      • Unit Group - Pick every unit in Temp_Group and do Actions
        • Unit - Cause GDD_DamagedUnit to damage (Picked Unit), dealing (Damage Amount) damage of attack type Spells and damage type Normal
      • Unit - Add Reincarnation Cooldown to GDD_DamagedUnit
      • Custom Script: call DestroyGroup( udg_Temp_Group )
      • Custom Script: call RemoveLocation( udg_Temp_Point )
      • Wait (Your Spell's Cooldown) seconds
      • Custom Script: set Temp_Unit = u
      • Unit - Remove Reincarnation Cooldown from Temp_Unit
      • Custom Script: set u = null

"Reincarnation Cooldown" is a dummy ability which does nothing and shows no icon but prevents the trigger from firing again until the spell has cooled down. This is also MUI.
 

canons200

New Member
Reaction score
50
the ability on dummy is dummy, on hero is hero. So if dummy have reincarnation, that is on dummy only, some skill on dummy can't use on hero

example just like you want a passive mirrar image, you can't use mirrar image on dummy to do action because that in on dummy, what you can do is to make staff of illusion into unit ability and then add to dummy next order dummy to create illusion.

besides, reincarnation by default has cooldown. so why want to remove it and then add back later using wait (your spell cooldown) second?
 

Bogrim

y hello thar
Reaction score
154
besides, reincarnation by default has cooldown. so why want to remove it and then add back later using wait (your spell cooldown) second?
Because there's no condition that will check if a spell is on cooldown, so the trigger will fire every time the unit dies, even when Reincarnation isn't active.

To prevent that, you have to create a "fake cooldown", meaning a period of time which the trigger will not activate to get an effect identical to that of the real ability's cooldown. While there are other alternatives, like storing variables or using custom values, I prefer adding an ability as as a classification for the spell's cooldown status: While the unit has the "dummy ability", said ability will yield an integer value different from units that don't have the ability, therefore you can check if the timer (the wait action) is done and actually create a cooldown on the ability.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • 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

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top