Staredit Network

Staredit Network -> UMS Assistance -> unit group copying
Report, edit, etc...Posted by Agerak on 2006-10-19 at 12:12:31
I'm attempting to copy groups of units, similar to a 'move unit' trigger, except for the fact that I want the original group to remain at the spawn location. There is a map that does this, but I am unable to access the triggers which do this. The map is World of Starcraft III by PCFredZ. I checked the triggers in Staredit and only found a command to give units to player 9. There were no triggers listed under player 9 or anywhere else that would explain why the units were copied to the start location. I have used SMCDraft to open it as well, and still saw no other triggers that would account for the behavior seen in the map. If anyone has advice or needs a clarification, please post.
Report, edit, etc...Posted by fritfrat(U) on 2006-10-19 at 13:50:42
I haven't checked the map, but this could be a possibility, and is probably what I'd do if I weren't to just use trigger duplicator for bring exactly 1, bring exactly 2, etc.


Give all any unit at copy area to p9.

P9 brings atleast 1 (specific unit) to copy area: give 1 unit back to current player, create 1 unit for current player at (copy destination).

And copy and preserve for each specific unit.

ADDITION:
Meh, isn't letting me edit, I'll just double post the extra I had to say.

With the give unit, you would lose control temporarily; this would be a shorter to instanatous duration with hyper triggers and if you copied the triggers enough times.

If you want to have it so you don't lose control, you would have to use trigger duplicator (or do it by hand..) simply for bring exactly 1 marine: create 1 marine. Bring exactly 2... etc. for every single unit. Or, atleast I can't think of a way besides that. But that isn't too bad, really, with replace all and trigger duplicator.
Report, edit, etc...Posted by Agerak on 2006-10-21 at 02:08:22
Sweet, I did that and it worked perfectly. Also you mentioned a trigger duplicator/replacer thingy. that would help me ALOT. I do all my trigs by hand, didn't know of a way to make it faster, how would I find this thing you talked about, the duplicator/copy triggers thing.
Report, edit, etc...Posted by CheatEnabled on 2006-10-25 at 03:45:54
http://www.staredit.net/index.php?download=4086
that's the duplicator. There are pretty many wierd buttons there, but I guess you will find out happy.gif.
Report, edit, etc...Posted by fritfrat(U) on 2006-10-25 at 15:55:40
Copying and replacing things would be done by scmdraft's text editor, Trigedit. Copy the triggers in question to Notepad, and then use Notepad's "Replace All" function. For example, replace all "Terran Marine" with "Terran Firebat".

In this case, I'd almost recommend doing the first unit by hand instead of using trigger duplicator, because it takes a while to get used to how the duplicator works, and it's probably worth saving that experience for another time when it's really worth it. Even so, just make 1 trigger in classic trigedit, and then open it with trigedit, copy it to notepad, change the numbers to "2" instead of "1," copy the changed copy into trigedit, 3 for 2, copy back, etc...
Report, edit, etc...Posted by PCFredZ on 2006-10-25 at 20:58:49
QUOTE(fritfrat(U) @ Oct 19 2006, 01:50 PM)
I haven't checked the map, but this could be a possibility, and is probably what I'd do if I weren't to just use trigger duplicator for bring exactly 1, bring exactly 2, etc.
Give all any unit at copy area to p9.

P9 brings atleast 1 (specific unit) to copy area: give 1 unit back to current player, create 1 unit for current player at (copy destination).

And copy and preserve for each specific unit.
[right][snapback]576672[/snapback][/right]

I actually had it the other way around.

Current player brings at least 1 unit to [Copy Location]
Give 1 unit for current player at [Copy Location] to P9
Preserve

This was done for all the zerg units.

Lastly,

Current player brings exactly 0 units to [Copy Location]
P9 brings at least 1 unit to [Copy Location]
Give all units for P9 at [Copy Location] to current player
Preserve

Note that each player has his own unit copy location, which is why it is in brackets in the triggers above.
Report, edit, etc...Posted by Agerak on 2006-10-31 at 12:34:24
QUOTE(PCFredZ @ Oct 25 2006, 06:58 PM)
I actually had it the other way around.

Current player brings at least 1 unit to [Copy Location]
Give 1 unit for current player at [Copy Location] to P9
Preserve

This was done for all the zerg units.

Lastly,

Current player brings exactly 0 units to [Copy Location]
P9 brings at least 1 unit to [Copy Location]
Give all units for P9 at [Copy Location] to current player
Preserve

Note that each player has his own unit copy location, which is why it is in brackets in the triggers above.
[right][snapback]578950[/snapback][/right]


Thats what i figured, but I wasn't sure as i didn't have a way to see the trigs for player9. I think thats the same idea I used except that i had a 'counter' area with civs in it and would remove one for each spawn, and it worked in pretty much the same way, took a while though cause I had to have one trig for each unit and i used almost 30 units and 6 locations so only 180 trigs all done by hand, cause I'm just like that :-D. Thanks for the breakdown though, will help alot on future maps :-D WOS III Rules btw.
Next Page (1)