Within Range of Unit = Kill (NO IMMOLATION)

Razed

New Member
Reaction score
44
Hi there, I'm creating an escape map and I'm in need of a good working trigger to kill the escapers when they get near creeps, and for those who want to give the immolation suggestion, please don't. I have my reasons for that... as I have a hero that has 30% chance to dodge an incoming enemy (and that doesn't work with immolation, does it?).

Of course there is this simple way by just doing it like this:
Code:
Holy Creeps Deadly
    Events
        Unit - A unit comes within 100.00 of Small Holy Creep 0067 <gen>
        Unit - A unit comes within 100.00 of Small Holy Creep 0068 <gen>
        Unit - A unit comes within 100.00 of Small Holy Creep 0069 <gen>
        Unit - A unit comes within 100.00 of Small Holy Creep 0070 <gen>
        Unit - A unit comes within 100.00 of Small Holy Creep 0071 <gen>
    Conditions
        ((Triggering unit) is A Hero) Equal to True
    Actions
        Unit - Kill (Triggering unit)

But I don't want that, it will cost way too much time and only works with pre-placed units.

For those who ever played Escape Builder, they know what I mean. I want some sort of trigger which checks if YOUR hero is within 100.00 of a Unit-Type (instead of making 1000 events for one unit-type).

I wonder if that is even possible. If it is, please help me out :)
 

Nerfpl

New Member
Reaction score
53
make it like

Map init
pick all units and
add event (A unit comes within 100.00 of picked unit)

another:
unit owned by x enter playable map area
add event (A unit comes within 100.00 of trrigering/entering unit)

something like that. just remove make it group in first and remove leak
 

vypur85

Hibernate
Reaction score
803
Code:
Event
 Map Init
Condition
Actions
 Set TempGroup = Units in Playable Map Area matching Owner of (Matching unit) Equal to Neutral Hostile
 Unit group - Pick every unit in TempGroup and do multiple actions
  Loop - Actions
   Trigger - Add to SecondTrigger <gen> the event A unit comes within 100.00 of (Picked unit)

Code:
SecondTrigger
 Event
 Condition
  (Triggering unit) is a Hero Equal to True
 Actions 
  Unit - Kill (Triggering unit)

Something like the above might work but may not be sufficient.
 

lindenkron

You can change this now in User CP
Reaction score
102
Code:
Holy Creeps Deadly
    Events
        Unit - A unit comes within 100.00 of Small Holy Creep 0067 <gen>
        Unit - A unit comes within 100.00 of Small Holy Creep 0068 <gen>
        Unit - A unit comes within 100.00 of Small Holy Creep 0069 <gen>
        Unit - A unit comes within 100.00 of Small Holy Creep 0070 <gen>
        Unit - A unit comes within 100.00 of Small Holy Creep 0071 <gen>
    Conditions
        ((Triggering unit) is A Hero) Equal to True
    Actions
        Unit - Kill (Triggering unit)

as I have a hero that has 30% chance to dodge an incoming enemy

You cant dodge that trigger... It will kill you regardless.

Here's alittle suggestion for you, take it or leave it :) -->

Make a unit, that cant move.
Give it 100 range attack that does 10000 mil damage.

That attack can now be dodged by Evasion (or anything else) and will kill you if not dodged.


Hope I helped :)
-Lindenkron
 

Razed

New Member
Reaction score
44
I got these two, as you mentioned...

Code:
Holy Creeps Deadly
    Events
    Conditions
    Actions
        Set Holy_Creeps = (Units in Holy Level 1 <gen> matching ((Owner of (Matching unit)) Equal to Player 12 (Brown)))
        Unit Group - Pick every unit in Holy_Creeps and do (Actions)
            Loop - Actions
                Trigger - Add to Holy Creeps Deadly Copy <gen> the event (Unit - A unit comes within 100.00 of (Picked unit))

And

Code:
Holy Creeps Deadly Copy
    Events
    Conditions
        ((Triggering unit) is A Hero) Equal to True
    Actions
        Unit - Kill (Triggering unit)

But it isn't working :eek:

EDIT:
Code:
Trigger - Run Holy Creeps Deadly <gen> (ignoring conditions)

I got this one as well running when I enter the stage... So don't ask me for that.
 

Razed

New Member
Reaction score
44
Nah thanks, I have something else in mind for that to trigger. My 'dodge' skill says 30% chance to dodge, but I gave it 0% to dodge in the editor because I'm going to give it 30% chance to avoid being killed by the in range trigger. I hope you get my point..
 

lindenkron

You can change this now in User CP
Reaction score
102
Nah thanks, I have something else in mind for that to trigger. My 'dodge' skill says 30% chance to dodge, but I gave it 0% to dodge in the editor because I'm going to give it 30% chance to avoid being killed by the in range trigger. I hope you get my point..

I do get your point, only:

That will apply to all units :) If you have 2 heroes, one have "Evasion" other dont, both of them will dodge by 30%, and not only the guy with evasion. Which would be a waste of a skill then.

Considder my method, Its within 100 range, it kills if not dodged and its rather simple :)


EDIT:

unless its because the want the mob to patrol like in other maps? You cant avoid death with evasion then.
 

Razed

New Member
Reaction score
44
My trigger will check if the Hero has the 'Evasion' like skill active or not, and by that it will generate 30% chance to dodge. All other heroes without the Evasion Skill will just die instantly. -- But lets not go off-topic please.
 

ReVolver

Mega Super Ultra Cool Member
Reaction score
609
Give a dummy buff spell, check if that unit has the buff, if he has the "evade" spell give a % chance not to kill him.
 

lindenkron

You can change this now in User CP
Reaction score
102
My trigger will check if the Hero has the 'Evasion' like skill active or not, and by that it will generate 30% chance to dodge. All other heroes without the Evasion Skill will just die instantly. -- But lets not go off-topic please.

Post your triggers if you ever make it work, I'd like to see this one :)
 

Ryuu

I am back with Chocolate (:
Reaction score
64
Trigger:
  • Holy Creeps Deadly
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set Holy_Creeps = (Units in Holy Level 1 &lt;gen&gt; matching ((Owner of (Matching unit)) Equal to Player 12 (Brown)))
      • Unit Group - Pick every unit in Holy_Creeps and do (Actions)
        • Loop - Actions
          • Trigger - Add to Holy Creeps Deadly Copy &lt;gen&gt; the event (Unit - A unit comes within 100.00 of (Picked unit))


Trigger:
  • Holy Creeps Deadly Copy
    • Events
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Unit - Kill (Triggering unit)
 

vypur85

Hibernate
Reaction score
803
Code:
Event
 Time - Every 0.10 seconds
Condition
Actions
 Set TempGroup1 = Units in Playable Map Area matching Owner of (Matching unit) Equal to Neutral Hostile
 Unit group - Pick every unit in TempGroup1 and do multiple actions
  Loop - Actions
   Set Point1 = Position of (PIcked unit)
   Set TempGroup2 = Units within 100 range of Point1 matching (Matching unit) is a Hero Equal to True and (Matching unit) is alive Equal to True
   Unit group - Pick every unit in TempGroup2 and do multiple actions
      Loop - Actions
        Unit - Kill (Picked unit)

The less efficient method. But it should work.


> Ryuu

Your trigger is very... not wise o_O. No point of continuosly adding units into event.
 

Razed

New Member
Reaction score
44
The trigger of yours is exactly the same as using Immolation.. So perhaps I should just change the Evasion to some other skill and screw it all. Saves some work though.. :eek:
 

ReVolver

Mega Super Ultra Cool Member
Reaction score
609
Trigger:
  • CheckRange
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Unit-type of (Entering unit)) Equal to (==) Footman
    • Actions
      • Trigger - Add to RangeAttack &lt;gen&gt; the event (Unit - A unit comes within 100.00 of (Entering unit))


Trigger:
  • RangeAttack
    • Events
    • Conditions
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Evasion for (Triggering unit)) Equal to (==) 1
        • Then - Actions
          • Multiple FunctionsIf (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 (&lt;=) 25
            • Then - Actions
              • -------- Miss --------
            • Else - Actions
              • Unit - Kill (Triggering unit)
        • Else - Actions
 

lindenkron

You can change this now in User CP
Reaction score
102
Trigger:
  • CheckRange
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Unit-type of (Entering unit)) Equal to (==) Footman
    • Actions
      • Trigger - Add to RangeAttack &lt;gen&gt; the event (Unit - A unit comes within 100.00 of (Entering unit))


Trigger:
  • RangeAttack
    • Events
    • Conditions
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Evasion for (Triggering unit)) Equal to (==) 1
        • Then - Actions
          • Multiple FunctionsIf (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 (&lt;=) 25
            • Then - Actions
              • -------- Miss --------
            • Else - Actions
              • Unit - Kill (Triggering unit)
        • Else - Actions

Nice one if it works mate.

I'd give you +rep if I could and if it was my request :D
 

Razed

New Member
Reaction score
44
Perhaps it's possible to create a trigger with

Code:
# Events

    * Unit - A unit enters (Playable map area)

Where you check when a unit from Brown (Player 12) comes within 100.00 of an Hero, and then kill the Hero.

Because most mobs of brown are preplaced while the heroes are not.. Just a little thought, perhaps somebody can create such trigger?
 

lindenkron

You can change this now in User CP
Reaction score
102
Trigger:
  • CheckRange
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Unit-type of (Entering unit)) Equal to (==) Footman
      • (Owner of (Entering unit)) Equal to Player 12 (Brown)
    • Actions
      • Trigger - Add to RangeAttack &lt;gen&gt; the event (Unit - A unit comes within 100.00 of (Entering unit))


Like that?
 

ReVolver

Mega Super Ultra Cool Member
Reaction score
609
Trigger:
  • ((Owner of (Triggering unit)) is an enemy of Player 12 (Brown)) Equal to (==) True


:rolleyes:
 
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

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top