How to make a unit not die by an attack more than its max HP?

Wummi

Just Relax and Smile!
Reaction score
58
I have a Fortress in my map, and I want it so that when its HP becomes less than or equal to 10000 (of 50000 maximum HP), another trigger turns on.
However, some of the enemy creeps have damage above 25000 and they can practically 2 shot the Fortress, and the second trigger never gets a chance to turn on since the Fortress never reached between 0 and 10000. Any way to make it happen so its HP won't drop below 1 and the 2nd trigger gets a chance to activate?
 

canons200

New Member
Reaction score
50
i think can't, it is very basic problem, try do another way round, like increase the HP of fortress, or lower the damage.

OR try something alternative, use GDD by weep, when the fortress is attacked, use condition to check whether the damage dealt is higher than the HP of fortress, if so then do yoru action.
 

Wummi

Just Relax and Smile!
Reaction score
58
I remember seeing this system in Twilight's Eve ORPG where when 2 players PVP, the loser cannot "die". The duel ends when one person's HP "attempts" to drop below 1% of maximum HP.
For example, if you have 5% of Max HP (say, 500) and someone uses a 5000 dmg nuke on you, the duel will automatically end and the you won't die.
Did they use Weep's GDD?
 

mapguy

New Member
Reaction score
46
just use the item ability +100 HP. and changee to +999999 HP.
then you give this ability to the unit when damage is DETECTED and starts a countdown timer that will expire in 0.00 seconds. when timer expires you remove the ability from the unit.

no need for WEPP.

only use the basic:

a unit takes damage
 

Ayanami

칼리
Reaction score
288
I remember seeing this system in Twilight's Eve ORPG where when 2 players PVP, the loser cannot "die". The duel ends when one person's HP "attempts" to drop below 1% of maximum HP.
For example, if you have 5% of Max HP (say, 500) and someone uses a 5000 dmg nuke on you, the duel will automatically end and the you won't die.
Did they use Weep's GDD?

Any damage detection would work fine. If it's a pre-placed unit, you won't need any damage detection system.
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
[...]
no need for WEPP.

only use the basic:

a unit takes damage
you do know what you are talking about? what do you think Weeps damage detection system does? there is no "A unit takes damage" event in GUI.
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
there is no generic damage detection event. what purpose would it serve to create an own damage detection system from scratch for this small issue when there is a perfectly fine open source system download-able from this site?
there just is no need to spent much and even more time re-creating time consuming systems while he could rather focus on balance and gameplay.
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
if you add the event "specific units takes damage" for a custom GUI only damage detection system you leak as well, what you leak is an event cause when the unit is gone, and so is the use of that specific unit event, the event itself is still there and there are more to come, one for each unit exactly.
 

mapguy

New Member
Reaction score
46
if you add the event "specific units takes damage" for a custom GUI only damage detection system you leak as well, what you leak is an event cause when the unit is gone, and so is the use of that specific unit event, the event itself is still there and there are more to come, one for each unit exactly.

your talking that a lot of event with no function will acumulate?
this will cause lag?

If I revive the creeps instead of respawning them I solve my problems?
 

Ayanami

칼리
Reaction score
288
your talking that a lot of event with no function will acumulate?
this will cause lag?

If I revive the creeps instead of respawning them I solve my problems?

Why not just use Weep's GDD? It's very simple and efficient.
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
of course, what do you think? if you create stuff it needs to be stored somewhere, and where is it stored? yes on your computer. each event you create takes it amount of memory and 1000+ events take, well, i would say about 1000 times as much as one or more.

you cannot revive normal units, at least not without making alot more trouble then just using weeps dds.
 

mapguy

New Member
Reaction score
46
Why not just use Weep's GDD? It's very simple and efficient.

why not to answer my question?

I have to download something to use GDD system or it's just using custom script and copy + paste?

I'M FUCKED!
all my map uses GUI damage detection system! FUCK IT!

I hate those stupid leaks!

this is the 3th leak I discover in the middle of a map. I Hope this time I don't need to restart my map instead of fixing a lot of shit.
 

Ayanami

칼리
Reaction score
288
why not to answer my question?

I have to download something to use GDD system or it's just using custom script and copy + paste?

Why don't you actually go find Weep's GDD system and see how it works before questioning others? It's a GUI-Friendly snippet that uses GUI Global Variables for events, damaged unit, damage source and damage taken. It's very simple. Only reason I'm telling you to use this is because it's much more efficient and simple than reviving every single creeps.
 

mapguy

New Member
Reaction score
46
so there is a way to revive creeps?

If I add reincarnation to my creeps.
when they revive by this ability.
it counts as they entered playable map area again?
can I detect when a creep is revived by reincarnation?

the reason I'm not using GDD is because i want a 100% GUI made map.
I'm trying to show that it's possible to make a good map only using the tools the editor provides me.
 

Ayanami

칼리
Reaction score
288
so there is a way to revive creeps?

If I add reincarnation to my creeps.
when they revive by this ability.
it counts as they entered playable map area again?
can I detect when a creep is revived by reincarnation?

the reason I'm not using GDD is because i want a 100% GUI made map.
I'm trying to show that it's possible to make a good map only using the tools the editor provides me.

By using custom script for leak removal, it proves that you're not using 100% GUI.
 

mapguy

New Member
Reaction score
46
do you have any idea how to recycle units?
or how to use custom script to remove an action from a trigger?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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
  • 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 Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top