Hi everybody,
I've been working on a pretty neat project the last 3 or 4 months and I am now in a stage where the stuff I created in the Data manager actually is enough to have a playable map. Now I have some problems and I have no Idea how to solve them appart from that it has to do with triggers, why I am posting in THIS forum =P
So here's the situation: When the game starts, the player must recieve an HQ, placed on a certain position, defined by starting points, 5 workers and 50 minerals. (Check)
Now the tricky stuff :P
1. Because it is a 2v2 map and the two teams are in two camps, where the allies are CLOSE by, I want allies to always spawn in ONE camp, and not having to share a booth with their beloved enemy that is trying to annihilate them =]
2. (Now the real tricky part) There are 3 heros in the game, one for each race that MUST spawn with the CC/ Nexus/ Hatchery, in the row with the workers. How I can tell the editor that if e.g. a player chooses zerg in the lobby, that he as well gets the Zerg Hero (hydra for instance), or if someone chooses Protoss, that they get the Protoss hero, etc.
3. The final thing is: The point of the map is to kill the enemy without diing, because the hero is the inpersonation of the player. Thus if the payer dies, he/ she looses the game. How can I tell the editor to let a player loose once his/ her hero is dead?
I appreciate the help I usually get in this forum :) I hope that you guys, the one eyed can help a blind fella out and I hope that my map will soon be available on the battle.net =P
for the third question if when you create the hero unit refer it to a variable then create a separate trigger with the condition "unit dies" then a if then else:
-if dyeing unit==hero(varyable)
-then end game for player( )
-else
hope this is what your looking for :P
1: This is actually accomplished not via triggers, but by an option in the Map menu. Open the Map menu, select Team Placement (Advanced), and link two allied bases to each other. This should work. (I think, I've not actually tested it, but I'm pretty sure that's what it's for.)
2: A little more complicated indeed. But this should do it (Note: There is a little extra in here to accommodate for part 3)
First, create a Unit Array variable. Mine is named "heroes." It needs an index of 3.
I'm pretty sure that should work 100% for you.. The only questionables is that I'm unsure of part 1, and for part 2, it's possible players might actually start at "1" instead of 0, so you'll have to make the index size 4 and then add one to each of the individually referenced "heroes[x]". Other than that, it should work like a charm.
Hi Feithless and thank you for your long answer.
I had given the map to someone here inside the Forum, can't think of his name right now, the guy who offered to solve trigger problems for people :)
So the 2nd part with the spawning for the right hero already works. Here is a screenshot of the triggers and I also udnerstand how they are supposed to work. That's nice and good:
That thing with the dying and loosing thong doesnt work yet. The triggers are set and make sense to me. But it doesn't work the way they're supposed to:
maybe you see the mistake in the Triggers? Is something missing maybe? Or out of order?
As to what you have written I don't really understand it. I will have a look at it tomorrow when I'm not so darn tired =,D
Mayhap. The note at the end was essentially that I can't remember if player 1 is 1 as integer form, or 0 or integer form. Try using heroes[1-4] instead of heroes[0-3].
the lose trigger will never execute because the triggering unit cant have all 3 unit types.
try to use "or" under conditions and paste the three conditions in there, like that just ONE of all conditions have to be true to execute the trigger. i think thats what you want to achive :)
right now ALL conditions must be true, whats impossible.
the lose trigger will never execute because the triggering unit cant have all 3 unit types.
try to use "or" under conditions and paste the three conditions in there, like that just ONE of all conditions have to be true to execute the trigger. i think thats what you want to achive :) right now ALL conditions must be true, whats impossible.
That's the answer you are looking for.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi everybody, I've been working on a pretty neat project the last 3 or 4 months and I am now in a stage where the stuff I created in the Data manager actually is enough to have a playable map. Now I have some problems and I have no Idea how to solve them appart from that it has to do with triggers, why I am posting in THIS forum =P
So here's the situation: When the game starts, the player must recieve an HQ, placed on a certain position, defined by starting points, 5 workers and 50 minerals. (Check) Now the tricky stuff :P 1. Because it is a 2v2 map and the two teams are in two camps, where the allies are CLOSE by, I want allies to always spawn in ONE camp, and not having to share a booth with their beloved enemy that is trying to annihilate them =] 2. (Now the real tricky part) There are 3 heros in the game, one for each race that MUST spawn with the CC/ Nexus/ Hatchery, in the row with the workers. How I can tell the editor that if e.g. a player chooses zerg in the lobby, that he as well gets the Zerg Hero (hydra for instance), or if someone chooses Protoss, that they get the Protoss hero, etc. 3. The final thing is: The point of the map is to kill the enemy without diing, because the hero is the inpersonation of the player. Thus if the payer dies, he/ she looses the game. How can I tell the editor to let a player loose once his/ her hero is dead?
I appreciate the help I usually get in this forum :) I hope that you guys, the one eyed can help a blind fella out and I hope that my map will soon be available on the battle.net =P
Thanks in advance SpaceKookie
for the third question if when you create the hero unit refer it to a variable then create a separate trigger with the condition "unit dies" then a if then else: -if dyeing unit==hero(varyable) -then end game for player( ) -else hope this is what your looking for :P
1: This is actually accomplished not via triggers, but by an option in the Map menu. Open the Map menu, select Team Placement (Advanced), and link two allied bases to each other. This should work. (I think, I've not actually tested it, but I'm pretty sure that's what it's for.)
2: A little more complicated indeed. But this should do it (Note: There is a little extra in here to accommodate for part 3)
First, create a Unit Array variable. Mine is named "heroes." It needs an index of 3.
3: If you followed that last bit, this one is really easy:
I'm pretty sure that should work 100% for you.. The only questionables is that I'm unsure of part 1, and for part 2, it's possible players might actually start at "1" instead of 0, so you'll have to make the index size 4 and then add one to each of the individually referenced "heroes[x]". Other than that, it should work like a charm.
Hi Feithless and thank you for your long answer.
I had given the map to someone here inside the Forum, can't think of his name right now, the guy who offered to solve trigger problems for people :)
So the 2nd part with the spawning for the right hero already works. Here is a screenshot of the triggers and I also udnerstand how they are supposed to work. That's nice and good:
That thing with the dying and loosing thong doesnt work yet. The triggers are set and make sense to me. But it doesn't work the way they're supposed to:
maybe you see the mistake in the Triggers? Is something missing maybe? Or out of order?
As to what you have written I don't really understand it. I will have a look at it tomorrow when I'm not so darn tired =,D
Thank you
Mayhap. The note at the end was essentially that I can't remember if player 1 is 1 as integer form, or 0 or integer form. Try using heroes[1-4] instead of heroes[0-3].
the lose trigger will never execute because the triggering unit cant have all 3 unit types.
try to use "or" under conditions and paste the three conditions in there, like that just ONE of all conditions have to be true to execute the trigger. i think thats what you want to achive :) right now ALL conditions must be true, whats impossible.
That's the answer you are looking for.