Staredit Network

Staredit Network -> UMS Assistance -> Gain and loss of unit control
Report, edit, etc...Posted by Nquiksilver on 2006-08-04 at 00:10:52
While making my map I want to be able to approach a terran civilian and hae it come under my control ( will be usuing a variey of units). So i set the trigger so that when i bring atleast 1 unit to the centered location, i gain control.

My question comes from how i would lose control if i ventured out the the civ location. If I was using a single unit it would be easy, but since a variety of units can be selected, what would be the best way to approach this, becuase i dont want to have to do 14 diffent triggers for each player
Report, edit, etc...Posted by OhManTfe on 2006-08-04 at 00:26:50
Ok well do this.
P1
Condition: current player brings exactly 0 units to location civilian
Action: give civilian owned by current player to player #. (whatever player it originaly was)
Preserve trigger

Then just copy that for all the players that can take over the civilian. You will walk up, get control of that civilian, then as soon as you leave, the civilian turns back into its original colour.
Report, edit, etc...Posted by Zeratul_101 on 2006-08-04 at 00:48:56
CP brings at most 1 unit to location
CP brings at least one civi

give civ to 'unowned' owner

that should work, i just got that from the top of my head though so be prepared that it won't.
Report, edit, etc...Posted by Nquiksilver on 2006-08-04 at 13:03:01
QUOTE(OhManTfe @ Aug 3 2006, 11:26 PM)
Ok well do this.
P1
Condition: current player brings exactly 0 units to location civilian
Action: give civilian owned by current player to player #. (whatever player it originaly was)
Preserve trigger

Then just copy that for all the players that can take over the civilian. You will walk up, get control of that civilian, then as soon as you leave, the civilian turns back into its original colour.
[right][snapback]538939[/snapback][/right]


Ya, thats what I tried at first and it seemed to make sence, but after thinking about it, once u get control of the civ, it is now 1 unit in the location, which means that it will never change back to the other colour when your initial unit leaves the location, becuase there will always be that Civ, in the Civ location, idk if that makes sence, but it's like | [N] | [P1]
| [N] [P1] |
| [P1] [P1] |
| [P1(old N) | [P1]
The "|" represent the location radius
The "[N]" represent the neutral player
The "[P1]" represent the player controlled units

The reason I made this post was becuase i had figured this out and wanted to know an easier way to do this without a specific unit, or do the trigger for 14 other units that can walk into the civ location
Report, edit, etc...Posted by Zeratul_101 on 2006-08-04 at 14:22:11
QUOTE(Nquiksilver @ Aug 4 2006, 11:02 AM)
Ya, thats what I tried at first and it seemed to make sence, but after thinking about it, once u get control of the civ, it is now 1 unit in the location, which means that it will never change back to the other colour when your initial unit leaves the location, becuase there will always be that Civ, in the Civ location, idk if that makes sence, but it's like |  [N]  |  [P1]
                                      |  [N] [P1] |
                                      | [P1] [P1] |
                                      | [P1(old N) |  [P1]
The "|" represent the location radius
The "[N]" represent the neutral player
The "[P1]" represent the player controlled units

The reason I made this post was becuase i had figured this out and wanted to know an easier way to do this without a specific unit, or do the trigger for 14 other units that can walk into the civ location
[right][snapback]539274[/snapback][/right]


um look at my post, right above yours... it directly addresses this issue.
Report, edit, etc...Posted by Nquiksilver on 2006-08-04 at 21:46:38
QUOTE(Zeratul_101 @ Aug 4 2006, 01:21 PM)
um look at my post, right above yours... it directly addresses this issue.
[right][snapback]539448[/snapback][/right]


Just trying to make it a little easier for readers to realize that your method is the correct one, and that the first method doesnt work and why wink.gif
Report, edit, etc...Posted by Zeratul_101 on 2006-08-05 at 00:26:30
k, it jsut seemed like you didn't even see my post.
Next Page (1)