First off, why did you just smash your trigger and the melee game initialization trigger together? You probably don't want the melee initialization trigger and even if you do, you have to make a new trigger for the monster changing ownership.
Other than that, your trigger should be fine. That melee initialization is probably just screwing it up.
Well the way I described would allow you to have each player have a chance to use the neutral unit. I don't see the need for all the complexity if all the neutral unit does is win the game for you.
I think I'd know a way, but right now I can only explain my idea and not how to do it in triggers.
So, say that you first set a global variable of a player/player group so that whatever player is in this variable gains control of the neutral unit.
Then, whenever a unit enters a certain distance to the neutral unit, you give control to that player as long as there are no other players in the player group variable. Finally, you could set some kind of either 'unit leaves range of unit' or whatever trigger (or even an ability) to set the unit back to neutral when the player is done with it. The specific use of this kind of trigger would determine what would be the best to use.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
@Durga: Go
I'd just take the ability to build flyer units. I.E. Take the build starport button away from the scv's.
You're supposed to right click in the left menu and create a new trigger.
@Durga: Go
First off, why did you just smash your trigger and the melee game initialization trigger together? You probably don't want the melee initialization trigger and even if you do, you have to make a new trigger for the monster changing ownership.
Other than that, your trigger should be fine. That melee initialization is probably just screwing it up.
@Durga: Go
Really? There is a problem that I'm not seeing then..
I just used that exact code in a test and it worked perfectly and i had to run right up to the unit.
@Durga: Go
Well just lower the distance to whatever you like. Play around with it and see what works best. That's half the fun of making a map. ;)
Something like this:
And then if you have any computer players on the map, you would set it so the computer couldn't take control of the unit.
@Durga: Go
Well then just set it so that if a unit comes into a certain range, set that unit's owner as the owner of the neutral unit. Yes?
Well the way I described would allow you to have each player have a chance to use the neutral unit. I don't see the need for all the complexity if all the neutral unit does is win the game for you.
I think I'd know a way, but right now I can only explain my idea and not how to do it in triggers.
So, say that you first set a global variable of a player/player group so that whatever player is in this variable gains control of the neutral unit.
Then, whenever a unit enters a certain distance to the neutral unit, you give control to that player as long as there are no other players in the player group variable. Finally, you could set some kind of either 'unit leaves range of unit' or whatever trigger (or even an ability) to set the unit back to neutral when the player is done with it. The specific use of this kind of trigger would determine what would be the best to use.