I am trying to get it so that as soon all those Hydras or any other units owned by that player in the "center" region die four scv spawn. i have done everything i can think of. what i am doing wrong? i tried using the matching conditions comparison but that didn't work either. :(
i was trying to use the Unit Groups, but that never worked for me either.
I'm not sure what you want to do. And is that Created unit a variable ? If you use action create more than 1 unit, the correct function to refer to them is "last created units", of unit group type
What I can interpret is that whenever any unit owned player 1 enter your hydra region, you will spawn 5 hydra in another region for player 1, then kill triggering unit (the one entered ) Then check 3 conditions for "created unit" that is by no way related to original unit to spawn 4 scv. In short your unit just die, no scv created.
it is not a variable :/ i am am new at this but i am trying really hard to figure it out.
let me think if i can explain it to you... did you play the Nexus D for SC? cause if you did that what i am trying to do.
IF not
Everything you said was correct. But i was trying to make the trigger spawn 4 scv when all the "created units" die. I tried to make a variable but it was bad. These are all the results i got so far.
-Creates four scv every time any of the "created units" die. so i get scv spammed
-Creates four scv every time one of the "triggering" scv die. also scv spammed
-Does nothing and i cry :(
everything up to here was easy. i made a mass attack trigger, For all four players and that works fine. Created triggers for hydra/zerglings/marines and like 12 other units. they all work fine. i don't know why this part is so hard for me :'(
Sorry for it looking like gobbly guck dont have a very good way of displaying coded text and making comments too it.
if you read though i made some notes on some parts of your code.... The if then statement you use should be removed because you dont need any of the conditions it it.
Events:
Unit - (Triggering unit) Enters Hydra
Local Variables:
Conditions:
(Owner of (Triggering unit)) == 1 *Check For Unit Type here as well Inless you want any unit that enters this region to die and spawn scv's you should check triggering units unit type**
Actions:
- Unit - Create 5 Hydralisk for player 1 at (Center of Spawn Team 1) using default facing (No Options)
- Unit - Kill (Triggering unit)
- General - If (Conditions) then do (Actions) else do (Actions)
If
(Owner of (Created unit)) == 1 * REMOVE THIS REDUNDANT and this should be Last Created Unit .... Created unit implies somehting else that and you already know you made these units for player 1 so why check it again?
((Created unit) is alive) == false * REMOVE THIS Unessacary and my fail due to the unit not dying fast enough *
((Created unit) is in Center) == false THIS CONDITION DOESNT MAKE MUCH SENSE
Then
Unit - Create 4 SCV for player 1 at Start Location 001 using default facing (No Options) * is this a preplaced region or an actuall start location I would suggest this should be an actual region *
Else
you need more then one trigger to achieve what you want.
your current trigger does the following immediately one after another:
triggers if a unit of player 1 enters hydra
it creates 5 hydras and kills the triggering unit
then it checks whether the hydra is owned by player 1, is alive and in the center region and tries to create 4 scvs.
there is no time between spawning the hydras, killing the trigger and checking if the hydras are alive. and I'm sure the hydras are alive when you spawn them. you don't spawn dead hydras.
ok this isn't working. unfortunately the reason this is not working is because with four scv you pick 4 different units.
Say i pick:
Five Hydra
Six marine
Four Stalkers
Two Thor.
with this method when they die i get four for each set. so i get eight scv.
ultimately what i want lets see if i explain correctly.
When ALL the units from specific player on the map die, four scv spawn on a starting location 001(which i also have a region for called "spawn credit"). ALL UNITS Excluding a specific unit "A Cloaked Broodling" used for mass attacking and a "structure" "Nexus" for each team(player 1&3)
i have tried anything i can think of. i only once got it to work. but it only works if the player "purchases" one unit type. like 20 hydralisks or 24 Marines not both. Just one or the other.
The reason it i want it function like this is:
- If it is not the entire map, a player could spawn some units in the center and get them killed and spawn four scv. leaving the original three still there, and now that player has seven scv to use. avoiding a exploit.
Also thanks for trying to help me. I'd love to get this map done, see how people like it, and maybe try making a different style one. I am willing to learn :) BTW this is great community so many smart people. how did you all learn so much about this. jeez i am kinda jealous. :'(
@Vlaks: Go
if you keep your broodling and the nexus out of the center its simple, even with the nexus.
if its a team nexus I guess its owned by a fourth allied computer player.
bOne thanks for trying to help. i am using what you typed and trying to do it. i am actually trying to mimic it lol. but it's not working well for me. my problem is.....
at this part > pick every unit in center owned by player 1... there is no way for me to get that.
i find other ones like. pick each unit in (then doesn't give me the option of doing what you are telling me) but things like units in unit group within region, or unit in unit group with matching conditions. I can't find a way to get exactly what you typed down with the editor.
Same with these parts > If number of units in unit group picked units == 0
unless you are being vague and want me to do the general idea, but i was trying to do it word for word. ahaha. i tried to the best of my abilities and couldn't do it..... if there something i am missing please inform me. like there are no variables right? and if there is what do i do with it?
omg it seems so easy for you guys just type it out or do it, then i sit here and try to mimic it for about an hour and half.... i am starting to feel sooooo dummmmb :'( ... but i don't want to give up...
@b0ne123: Go
nooo neeed to be sorry. i am happy enough that your at least responding :P ohhhh sweeet I'll go do something else until then. maybe go cry in corner, you know that type thing.
reply to ps: wouldn't they be the same? i would assume. but then again i don't know much.... there probably worlds apart....
Unit - (Triggering unit) Enters <Region> is invalid, EventUnit() (Triggering Unit) returns the unit associated with an event, when registering the event this value is most likely to be null.
how about not using units entering regions to trigger anything.....
your mass attack can be done purely off of abilites I made a building that can make all my units mass attack mass move and these are controlled by abilities the building has
Your generating units for your players from moving units to beacons or something ........ you dont really need to do it like that anymore. You could make abilities and they "buy" the units they want.
Either way I suggest completely redoing your whole trigger to create these units for players.
I am trying to get it so that as soon all those Hydras or any other units owned by that player in the "center" region die four scv spawn. i have done everything i can think of. what i am doing wrong? i tried using the matching conditions comparison but that didn't work either. :(
i was trying to use the Unit Groups, but that never worked for me either.
if any one can help i would be very thankful :)
@Vlaks: Go
I'm not sure what you want to do. And is that Created unit a variable ? If you use action create more than 1 unit, the correct function to refer to them is "last created units", of unit group type
What I can interpret is that whenever any unit owned player 1 enter your hydra region, you will spawn 5 hydra in another region for player 1, then kill triggering unit (the one entered ) Then check 3 conditions for "created unit" that is by no way related to original unit to spawn 4 scv. In short your unit just die, no scv created.
it is not a variable :/ i am am new at this but i am trying really hard to figure it out.
let me think if i can explain it to you... did you play the Nexus D for SC? cause if you did that what i am trying to do.
IF not
Everything you said was correct. But i was trying to make the trigger spawn 4 scv when all the "created units" die. I tried to make a variable but it was bad. These are all the results i got so far.
-Creates four scv every time any of the "created units" die. so i get scv spammed
-Creates four scv every time one of the "triggering" scv die. also scv spammed
-Does nothing and i cry :(
everything up to here was easy. i made a mass attack trigger, For all four players and that works fine. Created triggers for hydra/zerglings/marines and like 12 other units. they all work fine. i don't know why this part is so hard for me :'(
Sorry for it looking like gobbly guck dont have a very good way of displaying coded text and making comments too it.
if you read though i made some notes on some parts of your code.... The if then statement you use should be removed because you dont need any of the conditions it it.
Events:
Unit - (Triggering unit) Enters Hydra
Local Variables:
Conditions:
(Owner of (Triggering unit)) == 1
*Check For Unit Type here as well Inless you want any unit that enters this region to die and spawn scv's you should check triggering units unit type**
Actions:
- Unit - Create 5 Hydralisk for player 1 at (Center of Spawn Team 1) using default facing (No Options)
- Unit - Kill (Triggering unit)
- General - If (Conditions) then do (Actions) else do (Actions)
If
(Owner of (Created unit)) == 1 * REMOVE THIS REDUNDANT and this should be Last Created Unit .... Created unit implies somehting else that and you already know you made these units for player 1 so why check it again?
((Created unit) is alive) == false * REMOVE THIS Unessacary and my fail due to the unit not dying fast enough *
((Created unit) is in Center) == false THIS CONDITION DOESNT MAKE MUCH SENSE
Then
Unit - Create 4 SCV for player 1 at Start Location 001 using default facing (No Options) * is this a preplaced region or an actuall start location I would suggest this should be an actual region *
Else
you need more then one trigger to achieve what you want.
your current trigger does the following immediately one after another:
triggers if a unit of player 1 enters hydra
it creates 5 hydras and kills the triggering unit
then it checks whether the hydra is owned by player 1, is alive and in the center region and tries to create 4 scvs.
there is no time between spawning the hydras, killing the trigger and checking if the hydras are alive. and I'm sure the hydras are alive when you spawn them. you don't spawn dead hydras.
you probably want:
and
@b0ne123: Go
He doesnt need 2 triggers for this...... and hes gonna have to make more as it is for his other player spawns
get rid of the inner if and go straight from killing the entering unit to spawning the scv's nothing else is required
and i would suggest using ...... remove unit rather then kill unit when .... destroying a unit for purposes like this
ok i see what you are saying. let me give it a try and will let you all know how it plays out. thanks for the help.
ok this isn't working. unfortunately the reason this is not working is because with four scv you pick 4 different units.
Say i pick:
Five Hydra
Six marine
Four Stalkers
Two Thor.
with this method when they die i get four for each set. so i get eight scv.
ultimately what i want lets see if i explain correctly.
When ALL the units from specific player on the map die, four scv spawn on a starting location 001(which i also have a region for called "spawn credit"). ALL UNITS Excluding a specific unit "A Cloaked Broodling" used for mass attacking and a "structure" "Nexus" for each team(player 1&3)
i have tried anything i can think of. i only once got it to work. but it only works if the player "purchases" one unit type. like 20 hydralisks or 24 Marines not both. Just one or the other.
The reason it i want it function like this is:
- If it is not the entire map, a player could spawn some units in the center and get them killed and spawn four scv. leaving the original three still there, and now that player has seven scv to use. avoiding a exploit.
Also thanks for trying to help me. I'd love to get this map done, see how people like it, and maybe try making a different style one. I am willing to learn :) BTW this is great community so many smart people. how did you all learn so much about this. jeez i am kinda jealous. :'(
@Vlaks: Go if you keep your broodling and the nexus out of the center its simple, even with the nexus. if its a team nexus I guess its owned by a fourth allied computer player.
bOne thanks for trying to help. i am using what you typed and trying to do it. i am actually trying to mimic it lol. but it's not working well for me. my problem is.....
at this part > pick every unit in center owned by player 1... there is no way for me to get that.
i find other ones like. pick each unit in (then doesn't give me the option of doing what you are telling me) but things like units in unit group within region, or unit in unit group with matching conditions. I can't find a way to get exactly what you typed down with the editor.
Same with these parts > If number of units in unit group picked units == 0
unless you are being vague and want me to do the general idea, but i was trying to do it word for word. ahaha. i tried to the best of my abilities and couldn't do it..... if there something i am missing please inform me. like there are no variables right? and if there is what do i do with it?
omg it seems so easy for you guys just type it out or do it, then i sit here and try to mimic it for about an hour and half.... i am starting to feel sooooo dummmmb :'( ... but i don't want to give up...
sry I've done it without editor. Don't have access here. have to check it at home
but its the general idea and it works if everything is fine.
if nobody else answers I'm back here in 7h ;)
ps: downloading the english editor today, still using the german one and it sucks
@b0ne123: Go nooo neeed to be sorry. i am happy enough that your at least responding :P ohhhh sweeet I'll go do something else until then. maybe go cry in corner, you know that type thing.
reply to ps: wouldn't they be the same? i would assume. but then again i don't know much.... there probably worlds apart....
@Vlaks: Go
they've translated everything like blizz always does but some translations are strange, really strange.
and there are bugs like overlapping elements in some option windows and so on. it's annoying but the starcraft in my collectors box is german :D
finally started the download of the 7gb english version from the bnet today morning
Unit - (Triggering unit) Enters <Region> is invalid, EventUnit() (Triggering Unit) returns the unit associated with an event, when registering the event this value is most likely to be null.
@caspersc: Go
didn't notice this...
should be this of course
how about not using units entering regions to trigger anything.....
your mass attack can be done purely off of abilites I made a building that can make all my units mass attack mass move and these are controlled by abilities the building has
Your generating units for your players from moving units to beacons or something ........ you dont really need to do it like that anymore. You could make abilities and they "buy" the units they want.
Either way I suggest completely redoing your whole trigger to create these units for players.
@SouLCarveRR: Go
have fun, there are a lot of ways to improve it but you get the basics
@SouLCarveRR: Go
so your saying that way i currently have it is not a good method? cause if it's not i can change it. :(
bOne thanks for your help if i do change it up i can still use this. i am not at home hopefully i get home in a few hours and try it.
I'll see if i can go with the ability method. or the purchasing method. i just took the easiest route i could think of while being the most effective.
i'd have to change so instead of spawning scv it would give mineral back... right? if i use mineral for purchasing that is.
@Vlaks: Go
yeah giving minerals back is another way.
By possible to improve I meant things like using of arrays and math and create two trigger which work for an endless number of players
@b0ne123: Go
that is kinda crazy isn't it? :O