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.

      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