I'm sure a good group of you remember ZCU from SC1, in my opinion it was the best ZC that was made and I am trying to recreate it with some extra features and w/e that will utilize SC2 capabilities. Heres a nice screenshot of it so far.
Ive got some pretty great ideas for this and how it can be improved from the SC1 version
Currently I am having trouble(as in the trigger is not working) with a trigger that will make a marine(for now, will be a different unit later on) in the massing area to indicate that a bunker has been built in that zone on the map. The trigger I have is..
A2EventsUnit-AnyUnitEnterszone_A2LocalVariablesConditions(Unittypeof(Triggeringunit))==HideoutOrConditions(Unittypeof(Triggeringunit))==FortOrConditions(Unittypeof(Triggeringunit))==ShelterActions------- Player 1General-If(Conditions)thendo(Actions)elsedo(Actions)If(Ownerof(Triggeringunit))==1ThenUnit-Create1Marineforplayer1at(Centerofmass_A2)facing270.0degrees(NoOptions)Else------- Player 2General-If(Conditions)thendo(Actions)elsedo(Actions)If(Ownerof(Triggeringunit))==2ThenUnit-Create1Marineforplayer2at(Centerofmass_A2)facing270.0degrees(NoOptions)Else------- Player 3General-If(Conditions)thendo(Actions)elsedo(Actions)If(Ownerof(Triggeringunit))==3ThenUnit-Create1Marineforplayer3at(Centerofmass_A2)facing270.0degrees(NoOptions)Else------- Player 4General-If(Conditions)thendo(Actions)elsedo(Actions)If(Ownerof(Triggeringunit))==4ThenUnit-Create1Marineforplayer4at(Centerofmass_A2)facing270.0degrees(NoOptions)Else------- Player 5General-If(Conditions)thendo(Actions)elsedo(Actions)If(Ownerof(Triggeringunit))==5ThenUnit-Create1Marineforplayer5at(Centerofmass_A2)facing270.0degrees(NoOptions)Else------- Player 6General-If(Conditions)thendo(Actions)elsedo(Actions)If(Ownerof(Triggeringunit))==6ThenUnit-Create1Marineforplayer6at(Centerofmass_A2)facing270.0degrees(NoOptions)Else------- Player 7General-If(Conditions)thendo(Actions)elsedo(Actions)If(Ownerof(Triggeringunit))==7ThenUnit-Create1Marineforplayer7at(Centerofmass_A2)facing270.0degrees(NoOptions)Else------- Player 8General-If(Conditions)thendo(Actions)elsedo(Actions)If(Ownerof(Triggeringunit))==8ThenUnit-Create1Marineforplayer8at(Centerofmass_A2)facing270.0degrees(NoOptions)Else
I am trying to make it so the indicator triggers for each zone is only 1 trigger as there are 68 zones and having to do 8 triggers just for the indicator trigger for each zone would be ridiculous and if can be avoided that would be great.
There's quite a few things wrong with this trigger:
First, in your conditions, the way that the "Or" condition works is that it runs the 'or' check on all *children*
The default operator between conditions is "And"....therefore, in english, your conditions read as follows:
"Unit type of triggering unit is a Hideout, and a Fort, and a Shelter" which is somewhat impossible.
Technically it's reading more like "Unit type of triggering unit is (a hideout or) AND (a fort or) AND (a shelter or)", because you haven't properly setup how the or conditions function.
Use one of those "Or" nodes, and put all of the conditions inside of it.
Additionally your event is a little bit ambiguous. If you don't want the spawns to begin until after the structure has *finished* being built you would need to use a different trigger. Yours is simply saying something like "The moment I start construction of this building".
It also doesn't really appear to take into account a periodic spawn rate, which I assume you'll get to later.
I don't know why I'm helping you though because your map is direct competition for my zone control map... But I think I've got a good grasp of where I'm taking it so it should be just fine ;)
I'm sure a good group of you remember ZCU from SC1, in my opinion it was the best ZC that was made and I am trying to recreate it with some extra features and w/e that will utilize SC2 capabilities. Heres a nice screenshot of it so far.
Ive got some pretty great ideas for this and how it can be improved from the SC1 version
Currently I am having trouble(as in the trigger is not working) with a trigger that will make a marine(for now, will be a different unit later on) in the massing area to indicate that a bunker has been built in that zone on the map. The trigger I have is..
I am trying to make it so the indicator triggers for each zone is only 1 trigger as there are 68 zones and having to do 8 triggers just for the indicator trigger for each zone would be ridiculous and if can be avoided that would be great.
@ZeroAme: Go
There's quite a few things wrong with this trigger:
First, in your conditions, the way that the "Or" condition works is that it runs the 'or' check on all *children*
The default operator between conditions is "And"....therefore, in english, your conditions read as follows:
"Unit type of triggering unit is a Hideout, and a Fort, and a Shelter" which is somewhat impossible.
Technically it's reading more like "Unit type of triggering unit is (a hideout or) AND (a fort or) AND (a shelter or)", because you haven't properly setup how the or conditions function.
Use one of those "Or" nodes, and put all of the conditions inside of it.
Changing it to looks like this:
Would read the way that you want it to read (Unit type is fort, or hideout, or shelter).
The next thing is the difficult to read, and computationally inefficient nested 'if' statement you have in the actions.
You can change that entire series of 'if' statements to just this:
Additionally your event is a little bit ambiguous. If you don't want the spawns to begin until after the structure has *finished* being built you would need to use a different trigger. Yours is simply saying something like "The moment I start construction of this building".
It also doesn't really appear to take into account a periodic spawn rate, which I assume you'll get to later.
I don't know why I'm helping you though because your map is direct competition for my zone control map... But I think I've got a good grasp of where I'm taking it so it should be just fine ;)
Alright this is how I ended up doing it and it works perfect :D Thanks for the help.