Help with trigger

NunuBot

New Member
Reaction score
0
Hey guys. I'm trying to make a collision event-- Whenever a hero comes within 10 range of a zergling, he is killed. However, I can't say Enters a distance from [Any Unit

Any ideas?

I basically just have a bunch of zerglings spawning and running in random directions, and people have to dodge them. I want to make them die if they come into a close range.
 
I would actually do it via the data editor. You could give zerglings a passive aura ability which will deal massive damage (ie instant kill) to any heroes near it. Should be fairly simple to make. There are a few tutorials around on making auras if you are unsure on how to do it.
 
ye ye +1 to daves response. search ability kinda thingy that does damage of "KILL" its an option in their think its with the spell/splash/ options.
beside all that what was wrong with enters a distance from "blah zergling" or whatever? hwat problems were you running into too
 
I'm just having trouble making triggers in the sc2 editor that I could have made in the wc3 editor...

An example:
Wc3- Pick every unit in (unit in playable map area)
Sc2- Pick every unit in ( ???) It wont let me pick just a region. It's another unit group within a region matching a condition. It puts me in an endless chain of unit groups rather than just ending with (Units in region)
EDIT: I figured out how to do that ^

In the part up top, the problem is that I can't just say Enters a distance from (ANY UNIT); it makes me pick a single unit rather than any unit. Also, conditions are a lot harder to work with in the sc2 editor as well as custom units.
 
Code:
Kill near Zergling
    Events
        Timer - Every 0.1 seconds of Game Time
    Local Variables
        Zerglings = (Zergling units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) <Unit Group>
        Zergling = No Unit <Unit>
        ZerglingPlayer = 0 <Integer>
        ZerglingRegion = No Region <Region>
        Enemies = (Empty unit group) <Unit Group>
    Conditions
    Actions
        Unit Group - For each unit Zergling in Zerglings do (Actions)
            Actions
                Variable - Set ZerglingPlayer = (Owner of Zergling)
                Variable - Set ZerglingRegion = (Region((Position of Zergling), 2.0))
                Variable - Set Enemies = (Units in ZerglingRegion having alliance Enemy with player ZerglingPlayer matching Required: Ground, Visible; Excluded: Structure, Missile, Stasis, Dead, Hidden, Invulnerable, with at most Any Amount)
                Unit Group - Pick each unit in Enemies and do (Actions)
                    Actions
                        Environment - Deal damage using Zergling - Claws (Damage) on (Picked unit) from Zergling with 9001.0 extra damage


Not that I would recommend it... Data Editor all the way.
Still, it's sort of funny to see this in action.

And, yes, this is "good enough" for testing.
Unfortunately, doing this trigger is wayyyyyyyy faster than getting anything done in the Data Editor.

Well... :p



> It puts me in an endless chain

A classic.
Click on the ( to get out of it.
While this is "solved" here, remember it for future use.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good
  • The Helper The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/
  • The Helper The Helper:
    Happy Thursday!
  • Ghan Ghan:
    I'm not so sure, there's still a lot of Thursday left for it to become unhappy.
    +3
  • The Helper The Helper:
    still a few hours
  • The Helper The Helper:
    Its Friday!!!!
    +1
  • Ghan Ghan:
    Thursday 7/10 would Thursday again
    +3

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top