The trigger I'm making shouldn't be that hard for an experienced user to spot the issues with, but I thought I might aswell explain the trigger and what I want accomplished with it.
To explain my problem easier I will make a reference to the good old Starcraft 1 editor.
As you can see in the picture below, I want to create 1 special unit when entering a region with x amount of units, but not only that, I want x of the entering units to be removed from the game/killed.
Easier explained:
1. Enter region with x20 marines to get super marine
2. x20 units enter region, the super marine gets created, and x20 marines die in the progress, not x21, not x19, only x20 marines should die.
Very easy to make in Starcraft 1:
What I have so far:
But something is terribly wrong with this trigger, It creates x3 archons for each hydralisk that enters.
What I want is, that x2 hydralisks die and x1 single archon gets created, but obviously I've missed something.
Can you spot my errors? Do you have any tips/ideas for me?
Maybe a better idea than this trigger?
Cheers
EDIT: Since people are drama queens and think a simple ""sorry didn't work" means "you stupid lol fucking idiot you suck"" forces me to write an explanation.
Realized a little too late what was wrong with Exaken's trigger, so the drama queens entered the thread fast, which could basically be blamed on me, I looked ONCE AGAIN on my 3 different maps that I tried his trigger on, and seems like I had forgot to add a number in the "UnitCount = 0 <Integer>" to make the unit be recognized for removal.
Not that often someone writes the whole code for you when you ask for help, so didn't even put a thought in at all that I should change anything, thought it the whole trigger was done the way it was.
So please, no more drama queens in this thread, we already have too many of THAT KIND OF PEOPLE, I won't name anyone.
I have now tried that trigger and it does nothing what I need to do, since it keeps spawning units and doesn't remove the ones I move inside the region with
I didn't insult him, so don't come in here with wild accusations of me insulting people, I was simply telling him the trigger he wrote wouldn't work.
Since when is an insult to tell someone something wouldn't work?
An insult is when you laugh at someone for their mistake or calling someone something mean, I did neither, I just said I was pretty sure it wouldn't work, which we now know; didn't.
Yours worked just fine, simple to change and copy aswell.
I have now tried Exaken's trigger by remaking it 3 times and checked so I made everything right, it still doesn't work.
But now I cba since you gave me exactly what I needed right after anyway, and not only that, the whole damn trigger in a map, so, thanks for your help.
Only thing left to do now is make the trigger work with not only "zealots", but with other units aswell, I might be able to do that on my own tho, we'll see.
Exakens trigger works perfect. You either did something wrong or don't understand anything about triggers. Sometimes it requires this thing we like to call logic. Try being a little more respectful to people helping you or you'll likely find yourself with no one willing to help you.
SOLVED
- Thanks to Exaken
The trigger I'm making shouldn't be that hard for an experienced user to spot the issues with, but I thought I might aswell explain the trigger and what I want accomplished with it.
To explain my problem easier I will make a reference to the good old Starcraft 1 editor. As you can see in the picture below, I want to create 1 special unit when entering a region with x amount of units, but not only that, I want x of the entering units to be removed from the game/killed.
Easier explained: 1. Enter region with x20 marines to get super marine 2. x20 units enter region, the super marine gets created, and x20 marines die in the progress, not x21, not x19, only x20 marines should die.
Very easy to make in Starcraft 1:
What I have so far:
But something is terribly wrong with this trigger, It creates x3 archons for each hydralisk that enters. What I want is, that x2 hydralisks die and x1 single archon gets created, but obviously I've missed something.
Can you spot my errors? Do you have any tips/ideas for me? Maybe a better idea than this trigger?
Cheers
EDIT: Since people are drama queens and think a simple ""sorry didn't work" means "you stupid lol fucking idiot you suck"" forces me to write an explanation.
Realized a little too late what was wrong with Exaken's trigger, so the drama queens entered the thread fast, which could basically be blamed on me, I looked ONCE AGAIN on my 3 different maps that I tried his trigger on, and seems like I had forgot to add a number in the "UnitCount = 0 <Integer>" to make the unit be recognized for removal.
Not that often someone writes the whole code for you when you ask for help, so didn't even put a thought in at all that I should change anything, thought it the whole trigger was done the way it was.
So please, no more drama queens in this thread, we already have too many of THAT KIND OF PEOPLE, I won't name anyone.
I would do it more like this:
The condition I've used here is "Unit Count In Region Matching Conditon", and ofcourse you can set the UnitCount to whatever you like.
@Exaken: Go
Pretty sure that trigger would only spam create archons and not remove a single unit : /
That trigger would do exactly what you need it to do, I wouldn't insult people helping you without trying what they say first.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
@willuwontu: Go
I have now tried that trigger and it does nothing what I need to do, since it keeps spawning units and doesn't remove the ones I move inside the region with
I didn't insult him, so don't come in here with wild accusations of me insulting people, I was simply telling him the trigger he wrote wouldn't work. Since when is an insult to tell someone something wouldn't work?
An insult is when you laugh at someone for their mistake or calling someone something mean, I did neither, I just said I was pretty sure it wouldn't work, which we now know; didn't.
I think you should go read up a bit of what an insult is. Here is a link to get you started: http://en.wikipedia.org/wiki/Insult
Stating the obvious is an insult.. what has the world come to..
Convenient how it works huh.
Edit:
Hmm this applies Right
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
@willuwontu: Go
Yours worked just fine, simple to change and copy aswell.
I have now tried Exaken's trigger by remaking it 3 times and checked so I made everything right, it still doesn't work.
But now I cba since you gave me exactly what I needed right after anyway, and not only that, the whole damn trigger in a map, so, thanks for your help.
Only thing left to do now is make the trigger work with not only "zealots", but with other units aswell, I might be able to do that on my own tho, we'll see.
@redbean87: Go
Exakens trigger works perfect. You either did something wrong or don't understand anything about triggers. Sometimes it requires this thing we like to call logic. Try being a little more respectful to people helping you or you'll likely find yourself with no one willing to help you.
@Daara87: Go
Ah ok thanks Daara for the tip, let's see if I've learned something from you.
Aaaah yes I think I have!
Daara since you didn't respect me, I won't respect you, now go fuck yourself drama queen that only jumps into threads to be a faggot drama queen! :)
Also go to wikipedia you dumb fuck and learn a thing or two about respect and insult, or simply pick up a book ffs.
Where is your god now American?
Hmm, a coincidence both the drama queens in this thread are Americans?