Staredit Network

Staredit Network -> UMS Assistance -> How do I get the same players guys to go
Report, edit, etc...Posted by DarkDeath19 on 2004-09-14 at 15:02:32
In my map player 8 spawns units every so often and i need them to split and go to 'top right' and 'top left'. I can get them to go to one place but not both... is it possible of do i have to make another computer to send them in two different directions? confused.gif

ADDITION: Anyone?
Report, edit, etc...Posted by .Coko[CK] on 2004-09-14 at 15:19:14
If the units are different, them simply send all of one unit to this place and all of the other unit to another.

It would be easier to do it with two computers, however it is possible with one player, or so i believe.

Will work for two units at a time, over about 3/4 seconds at a guess
Make the location where the two units go a little bigger than a tiny gap, and have it like this

Condition:
MoveLeft is Set
Player 8 brings at least 1 unit to 'LocationMove'
Actions:
Order 1 unit at 'LocationMove' to go to 'LocationTopLeft'
Clear MoveLeft
Preserve Trigger

Condition:
MoveLeft is Clear
Player 8 brings at least 1 unit to 'LocationMove'
Actions:
Order 1 unit at 'LocationMove' to go to 'LocationTopRight'
Set MoveLeft
Preserve Trigger

That will work for two units, the first being sent to Top Left if you set the Switch before, and the second to the other location, while if you don't touch the trigger it will go Right first of all.

This works fine for a unit or two at a time, though cannot be sure which one will go if arrive at same time, it will be that which is on the 'LocationMove' at the closest to Top Left of that location.
Report, edit, etc...Posted by Kow on 2004-09-14 at 16:12:28
or:
Trigger
Conditions:
¤ Brings EXACTLY 2 units to location
¤ --
Actions:
¤ order 1 unit at location to --




Trigger
Conditions:
¤ Brings exactly 1 unit to location
¤ --
Actions:
¤ order 1 unit at location to --
Report, edit, etc...Posted by Mini Moose 2707 on 2004-09-14 at 16:16:05
Coko, there is no way to input the number of units to recieve the order in the order trigger. This is because of the way it would order, the order would be given to the same units.

You have ways around it.
1. Two different players, like you said.
2. Two different units (one hero, one non-hero maybe)
3. Use a second location
4. Modify his triggers a bit. Let's say you're spawning 12 units.

Condition:
Player 8 brings at least 7 unit to 'LocationMove'
Actions:
Order 1 unit at 'LocationMove' to go to 'LocationTopLeft'
Preserve Trigger

Condition:
Player 8 brings at most 6 unit to 'LocationMove'
Actions:
Order 1 unit at 'LocationMove' to go to 'LocationTopRight'
Preserve Trigger

That will order all the units until only half remain. Then the other half will be order to the other direction.
Report, edit, etc...Posted by Kow on 2004-09-14 at 16:17:10
i still like my method tongue.gif though i dont know if you read it tongue.gif
Report, edit, etc...Posted by Mini Moose 2707 on 2004-09-14 at 17:02:30
That would be fine, assuming he only uses two units. Mine is basically the same but uses "at least" and "at most" instead of exactly.
Report, edit, etc...Posted by DT_Battlekruser on 2004-09-14 at 18:47:36
You can use switch and send them back on forth, with set/clear or randomize, if you don't create them in pairs of 2.
Report, edit, etc...Posted by MapUnprotector on 2004-09-14 at 19:23:56
what about center location on one marine give it to a diff player order it to move then give it back to original player?
Report, edit, etc...Posted by Mini Moose 2707 on 2004-09-14 at 20:18:32
That would work, you just have to use a small location. Also, don't give the Marines back until they all get orders. But, you need a way to keep track of which to order to where, which would go back to my at least and at most triggers. tongue.gif
Report, edit, etc...Posted by (U)Bolt_Head on 2004-09-14 at 21:51:55
QUOTE(Mini Moose 2707 @ Sep 14 2004, 07:18 PM)
That would work, you just have to use a small location. Also, don't give the Marines back until they all get orders. But, you need a way to keep track of which to order to where, which would go back to my at least and at most triggers. tongue.gif
[right][snapback]73217[/snapback][/right]


Na you just do this. You don't even need a extra location, as long as the location your spawning all your units in contains all the units created there (no units created outside of the spawn location)
Trigger
Conditions:
¤ Units are spawned (whatever)
Actions:
¤ Give 1 dude owned by PlayerA at spawn to PlayerB
¤ Order all men owned by PlayerB at spawn to move to Side1
¤ Give all dude owned by PlayerB at spawn to PlayerC
¤ Give 1 dude owned by PlayerA at spawn to PlayerB
¤ Order all men owned by PlayerB at spawn to move to Side2
¤ Give all dude owned by PlayerB at spawn to PlayerC
¤ Preserve Trigger


Then it would do good to copy the sequince of those 6 actions many times or copy the whole trigger itself. (so you don't have to wait for a trigger refresh). If you were so incinded to save players you could actually have playerB be a human player (by selecting the human force) .
Next Page (1)