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

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top