Answer me this PLEASE!!!

MeTr01DPr1M3

New Member
Reaction score
5
Okay, hello all of ya once again. I'll just say it...I am desperate. Look, I've been asking for about 3 days now and seriously no one gives the right answer.

Here's the question. I want to make an ability called "Cheat Death". What this ability does (it's passive and activates on a certain condition) is that when the unit's life is 15% or less then for the next 5 seconds it has 99.9% damage reduction. LOOK CAREFULLY "%" not with the Hardened Skin ability. Now, can somebody please tell me if it is possible to do that? (For those who have played DotA) Like the Ultimate of Abaddon in DotA Allstars "Borrowed Time". The only difference is that in DotA the unit does not become invulnerable or have a +3000 armor. It just has a 100% damage reduction (I think) for a period of time. The difference with "Borrowed Time" and my ability would be that when the unit reaches a certain "%" of life then he will have a "%"!! damage reduction. Seriously guys, I appreciate all the help but if you don't have an answer for this don't bother to reply.

Thanks in advance.
 

Manix

Well-Known Member
Reaction score
29
Add 100% evasion without icon 'n shit... Very simple

EDIT: or save his current HP in a variable and event - every 0.1 sec unit - set hp to << variable >>
 

Curo

Why am I still playing this game...?
Reaction score
109
And just to clarify, you DON'T want to give a temporary armour boost?

I believe you could make a trigger that activates when your unit takes damage. Calculate your desired percentage of the damage taken (using real arithmetic), and add an appropriate amount of health to the unit. The game mechanics will add the health before the unit actually takes the damage, then the damage is taken. Example:

Code:
Events
   [I]Your unit[/I] takes damage
Conditions
   Current health of [I]Your unit[/I] Less than 15% of [I]Your unit[/I] maximum health
Actions
   Set [I]Temp_Real[/I] = Damage Taken x 0.9990
   Set [I]Your unit[/I] current health = [I]Your unit[/I] current health + [I]Temp_Real[/I]
 

MeTr01DPr1M3

New Member
Reaction score
5
So "0.9990" is 99.9% reversed? I mean that does damage reduction? And really thanks for the trigger. That will certainly help. And another thing. Could you help me cause I would like a unit that has the "Cheat Death" ability. Is there a way that I can make this via trigger? Cause I mean let's just say that my unit is lvl 3 but hasn't researched "Cheat Death". I wouldn't like to have the damage reduction if haven't learned the Cheat Death Ability first.

Thanks for replying and thanks for helping. :)

Btw: Happy Holidays
 

Curo

Why am I still playing this game...?
Reaction score
109
You are very welcome (so is rep). Ya, multiplying by 0.9990 should give you 99.9%. For your question, add a condition (integer comparison) that checks if the level of Cheat Death for your unit is greater than 0, or whatever you would like.

Lol happy holidays to you too! Are we talking about summer holidays or what?
 

MeTr01DPr1M3

New Member
Reaction score
5
Well, thank you very much for actually saving me :)

Umm, but I didn't quite understood the part where you will get damage reduction? Could you explain that again please? Thank you :)

And hell yeah, summer holidays for ever.!!!!!!!!!!! I am a bit :nuts: don't mind me :)

See you. Don't forget to reply.:)
 

Tyman2007

Ya Rly >.
Reaction score
74
MeTr01DPr1M3 Basically when you get hit at below 15% you get healed 99.9% of the damage that was dealt.
 

MeTr01DPr1M3

New Member
Reaction score
5
Okay, I got it :D But how am I supposed to give a "percentage" to the condition? I mean Curo wrote that "My unit's health less than or equal to 15% of Max Health". How can I make it in "%"? Thanks for all the answers. +rep of course to all of ya :D

Once again thank you.
 

Kazuga

Let the game begin...
Reaction score
110
Code:
Untitled Trigger 005
    Events
        Unit - A unit Is attacked
    Conditions
        (Percentage life of (Triggering unit)) Less than or equal to 15.00
    Actions
        Unit - Set life of (Triggering unit) to 100.00%
 

MeTr01DPr1M3

New Member
Reaction score
5
Guys many many thanks, but I still don't get the point where you set the "%". I mean how the hell can you add "%" that's what I'd like to know. Thanks again:D

Ohh, and Curo, I can't add in an arithmetic value the numbers "0.9990" it gives me 1.00 all the time. Please help with that too. Much appreciated. Bye bye. :)
 

MeTr01DPr1M3

New Member
Reaction score
5
Mmm, still no answer. Umm, please guys I could really use the help. Answer me how can I make a percentage via trigger? How am I supposed to make it?

Thank you.
 

MeTr01DPr1M3

New Member
Reaction score
5
You mean that if I got to "Real Comparison" I will be able to add something like: "50%"? That's what I'd like to know. How to add to a trigger the percentage. This little but very important thingy: "%". Please help me.

Thanks.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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
  • 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

      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