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.

      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