Say I have 5 marines, and I want to center 5 different locations on each one of them. All of them are in the same basic area. Is there any way to do this?
The way I could think of would be:
| Trigger |
| Description: |
| Giving Trigger |
|
| Players: |
| ¤ Player 1 |
| Conditions: |
| ¤ Conditions are met! |
| Actions: |
¤ Center Location 1 on Terran Marine owned by player 1 at Anywhere
|
¤ Give 1 Terran marine at Anywhere owned by player 1 to player 12
|
¤ Center Location 1 on Terran Marine owned by player 1 at Anywhere
|
¤ Give 1 Terran marine at Anywhere owned by player 1 to player 12
|
¤ Center Location 1 on Terran Marine owned by player 1 at Anywhere
|
¤ Give 1 Terran marine at Anywhere owned by player 1 to player 12
|
¤ Center Location 1 on Terran Marine owned by player 1 at Anywhere
|
¤ Give 1 Terran marine at Anywhere owned by player 1 to player 12
|
¤ Center Location 1 on Terran Marine owned by player 1 at Anywhere
|
¤ Give all Terran Marine owned by player 12 at anywhere to player 1
|
¤ Clear Conditions
|
| ¤ Preserve trigger |
Hmmm... there wouldn't be any way to detect if one was killed, would there? Besides using player commands 4 marines, of course. I want it so that when a marine is killed, stuff happens at the place where it dies.
If you had more than one marine being followed by more than one locations. I think that the locations would not be able to desifer the differet marines. If you had ther trigger for the location to center on marine. It would't always follow the right unit I dont think. Maybe if you set up a different unit. Like maybe a Jim Raynor Marine, then you could have two. But then maybe go with ghost because there are actually four or five different types of Ghosts. Im not sure maybe if you set differnet actions for them you could have a trigger follow each one without confusion with the triggers. I am not quite sure!
But, Good Luck with it!!!!
7-7
ADDITION:
QUOTE(Demaris @ Mar 24 2006, 10:31 PM)
The way I could think of would be:
| Trigger |
| Description: |
| Giving Trigger |
|
| Players: |
| ¤ Player 1 |
| Conditions: |
| ¤ Conditions are met! |
| Actions: |
¤ Center Location 1 on Terran Marine owned by player 1 at Anywhere
|
¤ Give 1 Terran marine at Anywhere owned by player 1 to player 12
|
¤ Center Location 1 on Terran Marine owned by player 1 at Anywhere
|
¤ Give 1 Terran marine at Anywhere owned by player 1 to player 12
|
¤ Center Location 1 on Terran Marine owned by player 1 at Anywhere
|
¤ Give 1 Terran marine at Anywhere owned by player 1 to player 12
|
¤ Center Location 1 on Terran Marine owned by player 1 at Anywhere
|
¤ Give 1 Terran marine at Anywhere owned by player 1 to player 12
|
¤ Center Location 1 on Terran Marine owned by player 1 at Anywhere
|
¤ Give all Terran Marine owned by player 12 at anywhere to player 1
|
¤ Clear Conditions
|
| ¤ Preserve trigger |
[right][snapback]452430[/snapback][/right]
This wouldnt work, It would take roughly 2 or more seconds depending on how many other triggers you had for the triggers to go around to give the units back to th player!
Not true. It would be instant and could be used to detect if there was no marine there as if it had died but would have a small error percentage.
Here's what I would do
Conditions met:
Center location 1 on terran marine at anywhere for currentplayer
Give marine at location 1 to player 12
Center location 2 on terran marine at anywhere for currentplayer
Give marine at location 2 to player 12
Center location 3 on terran marine at anywhere for currentplayer
Give marine at location 3 to player 12
Center location 4 on terran marine at anywhere for currentplayer
Give marine at location 4 to player 12
Center location 5 on terran marine at anywhere for currentplayer
Give marine at location 4 owned by player 12 to currentplayer
Give marine at location 3 owned by player 12 to currentplayer
Give marine at location 2 owned by player 12 to currentplayer
Give marine at location 1 owned by player 12 to currentplayer
Now this is only to first get the locations over the correct and different marines, you would only need to do this like once
THEN once you already have locations over the correct marines you have them follow the marines by doing
Always:
Center location 1 on marine at location 1
Center location 2 on marine at location 2
Center location 3 on marine at location 3
Center location 4 on marine at location 4
Center location 5 on marine at location 5
What you are basically doing here is centering location X over the marine that is already at location X.
Also note that the locations would have to be SMALL, smaller than the size of the marine. This is because YOU DON'T WANT TO HAVE TWO MARINES IN THE SAME LOCATION after you center it. If you do then they will get messed up and the location will follow the wrong marine.
QUOTE(X___ @ Mar 25 2006, 01:00 AM)
Here's what I would do
Conditions met:
Center location 1 on terran marine at anywhere for currentplayer
Give marine at location 1 to player 12
Center location 2 on terran marine at anywhere for currentplayer
Give marine at location 2 to player 12
Center location 3 on terran marine at anywhere for currentplayer
Give marine at location 3 to player 12
Center location 4 on terran marine at anywhere for currentplayer
Give marine at location 4 to player 12
Center location 5 on terran marine at anywhere for currentplayer
Give marine at location 4 owned by player 12 to currentplayer
Give marine at location 3 owned by player 12 to currentplayer
Give marine at location 2 owned by player 12 to currentplayer
Give marine at location 1 owned by player 12 to currentplayer
Now this is only to first get the locations over the correct and different marines, you would only need to do this like once
THEN once you already have locations over the correct marines you have them follow the marines by doing
Always:
Center location 1 on marine at location 1
Center location 2 on marine at location 2
Center location 3 on marine at location 3
Center location 4 on marine at location 4
Center location 5 on marine at location 5
What you are basically doing here is centering location X over the marine that is already at location X.
Also note that the locations would have to be SMALL, smaller than the size of the marine. This is because YOU DON'T WANT TO HAVE TWO MARINES IN THE SAME LOCATION after you center it. If you do then they will get messed up and the location will follow the wrong marine.
[right][snapback]452548[/snapback][/right]
Also note that hyper triggers are ABSALUTERLY ESSENTIAL for this to work
That wouldnt work if the locations are smaller than the marine because if the marine walked out of the location it wouldnt work and that is possible if it is 2 small. Otherwise i guess.
That's why you use hyper triggers. so they don't get a chance to walk out of it
Thanks Azu, I'll try that.
if you have separate location(marine 1,marine 2,etc...) and have the marines preplaced, you can just change the location centering it anywhere to that...
you have place restrictions like death counters...are you making the marines 1 player owns them all or different players has control of 1 each?
if its for all with one player you can add in death counters to make it more precise i think
I HAVE THE ANSWER IN VERY SIMPLE FORMAT:
Lets assume you have 2 marines.
- - - - - Trigger 1 - - - - -
CONDITIONS:
If Current Player brings atmost "0 marine" to "Location 2"
ACTIONS:
CenterView "Location 1" on marine at anywhere
- - - - - Trigger 2 - - - - -
CONDITIONS:
If Current Player brings atmost "0 marine" to "Location 1"
ACTIONS:
CenterView "Location 2" on marine at anywhere
Liquid, I can't use that because you can't determine whether the marine was killed or not. But I tried Azu's method, and it seems to be working.
read the triggers again carefully. it doesnt matter if the unit exists or not. the trigger will only execute if a location layer is not already there.
but im glad you have it working with your other method.
QUOTE(LiquidSilver @ Mar 25 2006, 08:00 PM)
I HAVE THE ANSWER IN VERY SIMPLE FORMAT:
Lets assume you have 2 marines.
- - - - - Trigger 1 - - - - -
CONDITIONS:
If Current Player brings atmost "0 marine" to "Location 2"
ACTIONS:
CenterView "Location 1" on marine at anywhere
- - - - - Trigger 2 - - - - -
CONDITIONS:
If Current Player brings atmost "0 marine" to "Location 1"
ACTIONS:
CenterView "Location 2" on marine at anywhere
[right][snapback]453163[/snapback][/right]
This would just Center Location 1 on one of the marines. Location 2 would never move until both marines are dead, then both locations would just move to the center of anywhere.
I guess it would have a weird effect if a marine happenes to walk over the 2nd location. I belive it would just switch the location that follows the leftmost marine, assumeing the leftmost marine leaves locaiton 1 before the other leaves location 2.
i might have a method for you to try...if you have a neutral player or something...maybe you can trick it to move the location. like have a different burrowed unit under each marine that constantly moves with each marine. then center the location of the burrowed unit. it would help you detect some things. i would also recommend hyper triggering it.
Conditions:
-current player brings exactly 1 marine to 'marine 1 location'
-neutral player brings exactly 0 zergling to 'marine 1 location'
Actions:
-center location 'marine 1 location' on 'zergling' ownded by 'neutral player' at 'anywhere'
-preserve trigger
this will move the location to the zergling. be sure to make the zergling burrowed and move to the marines. you can probably add in more conditions of what burrow units the other marines will use, it'll restrict it to each center location on per marine
QUOTE
i might have a method for you to try...if you have a neutral player or something...maybe you can trick it to move the location. like have a different burrowed unit under each marine that constantly moves with each marine. then center the location of the burrowed unit. it would help you detect some things. i would also recommend hyper triggering it.
You might as well just center the locations directly onto the marines like in the previous methods. This has the same flaws as those previous methods and would only slow down the units and be more complicated.
you could use that new editor i cant remember the name but its on the staredit.net homepage it starts with a U, but anyway this program uses extened triggs and a unit # system. so in other works each unit is assigned a seperate #. so you can tell which location to fallow exactly what unit u want it to weather its the same or not. the only bad thing is that the units are counted by which order u put them on the map... so anyways hope this helps..
Wont work with uberation and why was this brought back he solved his problem...