Staredit Network

Staredit Network -> UMS Assistance -> Need a copy unit trigger
Report, edit, etc...Posted by Gigins on 2005-12-03 at 16:46:21
Like I have a unit at location A and need the same unit at location B. But I still need one in A. In other words I need to copy that unit.

Any way how to do it without a copy of trigger for every unit type?
Report, edit, etc...Posted by The_Shattered_moose on 2005-12-03 at 17:24:04
Nothing comes to mind, I'm afriad you will just have to do it the old fashioned way, copying triggers out.
The trigger duplicator might have some functionality that would make this easier, check it out.
Report, edit, etc...Posted by Gigins on 2005-12-03 at 17:32:44
It would result in mass of triggers. Because I have 12 A and 12 B points and maybe will have even more...
Report, edit, etc...Posted by Voyager7456(MM) on 2005-12-03 at 17:34:37
You could move the unit to a secondary location, then make a trigger that detects the unit brought there, makes a 2nd copy at point B and moves the unit back to point A. Not a great solution, but might cut down on some of the triggers... ermm.gif
Report, edit, etc...Posted by Syphon on 2005-12-03 at 17:51:01
QUOTE(Voyager7456(MM) @ Dec 3 2005, 05:34 PM)
You could move the unit to a secondary location, then make a trigger that detects the unit brought there, makes a 2nd copy at point B and moves the unit back to point A. Not a great solution, but might cut down on some of the triggers...  ermm.gif
[right][snapback]370569[/snapback][/right]


This would be the same as just detecting what unit is brough to A and maknig another at B.
Report, edit, etc...Posted by Gigins on 2005-12-03 at 17:54:52
QUOTE(Moosephon @ Dec 4 2005, 01:51 AM)
 
This would be the same as just detecting what unit is brough to A and maknig another at B. 
[right][snapback]370582[/snapback][/right] 

Note that I have 12 As and 12 Bs, so I would need 12 sets of triggers, but by Voy's way I need 1 set, and 1 additional set for destination detection. This is what I will use if nothing better comes bleh.gif . Thanks Voy smile.gif
Report, edit, etc...Posted by fritfrat(U) on 2005-12-03 at 20:11:28
I have an idea that works extremely well if there will only be 1 unit present in all A locations. It is impossible to do this without making a trigger to create a copy of each individual unit even for 1 unit, and for 2+ A locations occupied there also really is no way to shortcut it.


Make a location C. If current player brings exactly 1 (Vulture, for example) to ANY location A (this can be done easily with a switch), create a vulture at location C. Do the same for all of the unit types.

Now, make triggers for each location A that if the player brings atleast 1 any unit to C and a locationA, move all any unit for current player at location C to that location A.


Like I said, this only works if there is only 1 unit. Any other way to do it for 2+ units would take longer figuring out a shortcut method than to actually just trigger.
Report, edit, etc...Posted by PCFredZ on 2005-12-03 at 22:08:21
QUOTE(DEAD @ Dec 3 2005, 05:54 PM)
Note that I have 12 As and 12 Bs, so I would need 12 sets of triggers, but by Voy's way I need 1 set, and 1 additional set for destination detection. This is what I will use if nothing better comes bleh.gif . Thanks Voy smile.gif
[right][snapback]370590[/snapback][/right]

You need 1 set of A/B and 1 set of 1-12.

Begin by checking which one 1 through 12 of the pairs you want to move. The easiest way is to use 24 unique units to determine where you will go. For each pair of units, move location A to the "movefrom" unit, and location B to the "moveto" unit.

Then go into your set of copying, which is one trigger for every unit combination at A to be replicated at B.

Tada.

Want an example map? I can do one tomorrow.
Report, edit, etc...Posted by Gigins on 2005-12-04 at 12:39:31
Nah, I already did the triggers. Something similar to what Voy said.
32 triggers +1 for each unit type.
Report, edit, etc...Posted by Deshouleres on 2005-12-04 at 21:13:50
Why not make it so that it copies over in the 1st location, then just make it so that if a unit comes to another location, 1-12 just make the location center on it and then it will run eh?
Next Page (1)