O.o mind if I say hello again?

MeTr01DPr1M3

New Member
Reaction score
5
Well, greetings to you all. Umm, is there a way to answer me this?

I already asked this many times before...mmm I have an ability called: "Cheat Death".

Now I want this spell to activate on a certain condition which is when the life of the unit having learned the ability reaches 15% or less of it's MAX LIFE POINTS then for a brief amount of time (5 seconds in this case) it will have 99.9% damage reduction. Now I would like any one of you to answer me this please:

1. Which event should I begin with?
2. If the ability is activated how can I stop it after the time of my desire?
3. How can I be sure that my unit's life is 15% of it's max life?
4. And is there a way any one of you to give me an example in a code?
5. Notice: The ability will have 4 levels.
6. Thanks for answering.
 

Furberg

Ultra Cool Member
Reaction score
45
Well, greetings to you all. Umm, is there a way to answer me this?

I already asked this many times before...mmm I have an ability called: "Cheat Death".

Now I want this spell to activate on a certain condition which is when the life of the unit having learned the ability reaches 15% or less of it's MAX LIFE POINTS then for a brief amount of time (5 seconds in this case) it will have 99.9% damage reduction. Now I would like any one of you to answer me this please:

1. Which event should I begin with?
2. If the ability is activated how can I stop it after the time of my desire?
3. How can I be sure that my unit's life is 15% of it's max life?
4. And is there a way any one of you to give me an example in a code?
5. Notice: The ability will have 4 levels.
6. Thanks for answering.

1. Unit HP is lower than 15%
2. wait 5 seconds or make a custom timer.
3. The World editor will do that for you ^^
4. Can't atm sorry :(
5. could be modified.
6. no problem mate :thup:
 

MeTr01DPr1M3

New Member
Reaction score
5
Thanks for the help mate. :D

Umm, didn't quite understand the part of the event. And is there a way for me to be more specific in the condition for the Max Unit's Life?

Thanks in advance.

P.S. : +rep mate. Thanks.:thup:
 

Don

Rise with the Fallens!
Reaction score
52
1st:
Code:
pick
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Triggering unit) is A Hero) Equal to True) and ((Level of Acid Bomb for (Picked unit)) Greater than 0))) and do (Trigger - Add to The ability <gen> the event (Unit - (Picked unit)'s life becomes Less than or equal to ((Life of (Picked unit)) / 7.00)))

2nd:
Code:
The ability
    Events
    Conditions
    Actions
        Unit - Add Animate Dead to (Triggering unit)
        Unit - Set level of Animate Dead for (Triggering unit) to (Level of Acid Bomb for (Triggering unit))
        Wait 5.00 seconds
        Unit - Remove Animate Dead from (Triggering unit)

Replace acid bomb with your researched ability (for the hero)
Replace animate dead with your damage reuction skill.
 

Furberg

Ultra Cool Member
Reaction score
45
Thanks for the help mate. :D

Umm, didn't quite understand the part of the event. And is there a way for me to be more specific in the condition for the Max Unit's Life?

Thanks in advance.

P.S. : +rep mate. Thanks.:thup:

Okay, i will post a trigger for you at like.. 00:00-01:00 Copenhagen time, is that alright?=
 

MeTr01DPr1M3

New Member
Reaction score
5
Yeah mate no prob. :D Thanks.

Don, many thanks mate for replying, but this is not what I , umm, want. Look, the ability I am having is passive so I guess I could use "Evasion". All I want is the trigger and how to make it work in certain conditions for a certain period of time. Anyway I am glad that you answered. :) Many thanks to you too. :D
 

Don

Rise with the Fallens!
Reaction score
52
Ok, basically what it does it checks, every seconds of the gme time if your unit is a hero, has an ability of kind **your ability** and give the event to another trigger, which cehcks if its life points are 14.72 (arround 15) or less, and order the game to give this unit an ability of kind **the ability that reduce the damage to 99.9**. Set the level of this ability = the level of the ability the hero have learned (from 1 to 4, you can choose, i took 1 as an exemple) and it waits 5 seconds until it remove it. Checks again if the unit have 15 or less hp and reactivate it.. continuous, isnt that what u want?
 

MeTr01DPr1M3

New Member
Reaction score
5
Hmm, I guess you have reached my desires a bit:D Well yeah something like that, but is there a way to do it in a code? Someone post an example?

I don't fully understand how to make a percentage via trigger (except life).

I mean in "Real Comparison" you can the set the percentage of the unit but I'd like to make a percentage wherever I like, so is there a way?

Thank you.
 

Dmshu

New Member
Reaction score
9
Code:
Untitled Trigger 001
    Events
        Unit - A unit Is attacked
    Conditions
        And - All (Conditions) are true
            Conditions
                Integer_Variable Equal to 1
                (Level of Acid Bomb for (Attacked unit)) Greater than 0
                (Life of (Attacked unit)) Less than or equal to ((Max life of (Attacked unit)) / 15.00)
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Random integer number between 1 and 100) Less than or equal to 10
            Then - Actions
                Set Integer_Variable = 2
                Unit - Add Acid Bomb to (Attacked unit)
                Wait 5.00 seconds
[b]Unit - Remove Acid Bomb from (Attacked unit) [/b]

                Set Integer_Variable = 1
            Else - Actions
                Do nothing

Where the Acid Bomb is your Cheat Death ability, and the second Acid Bomb is your ability that blocks 99.99% damage (you could modify hardened skin to that as an example)
 

MeTr01DPr1M3

New Member
Reaction score
5
So umm, where you write that my unit's life is ... / 15.00) that means that my Unit's Max Life is somehting like 100% and by dividing 15.00 it's 15% right? But how do I know that it is 15%?
And mate please don't mention the Hardened Skin ability. :D I would have usen it if it could be modified in "%".

I'd like a cold one right now...:cool:

Many thanks mate, I'll try it out. :D

Oh and um, if any one else has any other idea don't even consider not to post it. POST IT!

:D

And another thing, bro, when you say to add ability Acid Bomb it will actually appear in my researched area? Cause that's something that I wouldn't want. I mean I will already have the ability learned. The thing is to have a trigger based off of each level of the ability already reserached not the ability that the unit got in the certain condition.

:)
 

Don

Rise with the Fallens!
Reaction score
52
1- in my past post, i dscribed what the first trigger i gave was dong, meaning it wasreaching our desire.

2- for the icon, only put none, that way, it wont display anything but will give the ablity to the unit.

3- I am shacking heavily now, sorry i cannot write much o i'm going to loose my arm :3

4- Cya!

EdIT:

5- You need to diveide it by 7 for it to equals 15%... not by 15 (dumass)
 

emootootoo

Top Banana
Reaction score
51
Just do:
Code:
Have some trigger that adds unit is damaged event for heroes with the spell that enter the map for the below trigger.

when the unit is damaged

if its hp is greater than 15% of max hp [B]and[/B] (units current hp - damage taken) is less than 15% of max hp [B]and[/B] doesn't have the buff cheat death then
    cast some ability on it to give it a buff called "cheat death" that lasts 5 sec

if unit has the buff "cheat death" then
    do a damage fix (add hp ability, 0 second timer and store dmg/unit in vars, when timer expires add 99.9% of the dmg back as hp and remove hp ability)

That's all you really need to do.

The unit will not be damaged before your actions take place after a unit is damaged event but will be after a 0 sec timer, just to clarify the logic behind it.
 

Dmshu

New Member
Reaction score
9
Here is a map i just made that has your ability and triggers for it.

Test it out and see if that is what you want.

I currently have the cheat death as:

Level 1: 50% chance to happen if life is 50% or lower

Level 2: 75% chance to happen if life is under 75%

Level 3: 100% chance to not suffer damage

Obviously you will want to change the percentages but I made them high just for testing.
 

MeTr01DPr1M3

New Member
Reaction score
5
Wow mate, I've got to say it's pretty neat, one question though. (I love this part), since I want to put an end to this ability after let's say 5 seconds. Should I start my own custom timer? Basically some help would be much appreciated. :D

Many thanks mate for answering at about 86% of my question. :D

+rep to all those who replied with their ideas. :)

Thank you again.
 

MeTr01DPr1M3

New Member
Reaction score
5
Mate, 1.000.000 thanks for your help and of course to all the other member that helped out. Now two more questions. :)

1. What about if I want the trigger only to be activated for 5 seconds?
2. And If i need it in cooldown how to make that happen?Cause it must have a cooldown, it can't just activate each time the unit is below 50% or 75% of it's health. I tried putting a cooldown in the custom ability itself but it didn't darken the icon nor it made a cooldown circle.

Any suggestions? :)

Thank you very much guys. You are all very helpful, except of the guys that tell other people they are dumasses :p Anyway, many thanks and goodbye. :)

+rep to all
 

Dmshu

New Member
Reaction score
9
Changed to an activated ability that lasts 5 seconds and heals him for the damage taken.

Cooldowns are: 15s, 10s, 5s
 

MeTr01DPr1M3

New Member
Reaction score
5
Mate, you do realise that this particular trigger that you've made heals the unit for I don't know how much life?

The heal is tremendous, but it's not what I want. :eek:

So could you see if you can add cooldown to the previou one?

Thank you.
 

Dmshu

New Member
Reaction score
9
It's been fixed. The heal trigger was fine but the one that added him to it was adding him to every time he was attacked so that the heals were stacking up.
 
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