Staredit Network

Staredit Network -> UMS Assistance -> duplicating trigs
Report, edit, etc...Posted by KABOOM on 2006-05-06 at 23:38:27
i need help duplicating triggerings and instead of doing them all trig by trig can someone do or show me how to use trig duplicator plz? u'll get like half my mins if it works or all if i'm really happy how it turns out biggrin.gif
Report, edit, etc...Posted by MindArchon on 2006-05-06 at 23:55:14
QUOTE(KABOOM @ May 6 2006, 08:38 PM)
i need help duplicating triggerings and instead of doing them all trig by trig can someone do or show me how to use trig duplicator plz? u'll get like half my mins if it works or all if i'm really happy how it turns out biggrin.gif
[right][snapback]481224[/snapback][/right]


Read the index.html file located in the TriggerDuplicator directory
Report, edit, etc...Posted by Heimdal on 2006-05-07 at 00:25:33
I bet there's a way you can do it without duplicating everything smile.gif What are you trying to do?
Report, edit, etc...Posted by KABOOM on 2006-05-07 at 01:05:13
DisplayText( 32, 4);
PlayWav(171);
Wait(200);
CreateUnit(currentplayer, observer, 1, 2);
CreateUnit(currentplayer, observer, 1, -6);
KillUnitAt(currentplayer, observer, 1, 2);
KillUnitAt(currentplayer, observer, 1, -6);
Wait(70);
CreateUnit(currentplayer, corsair, 1, 3);
CreateUnit(currentplayer, corsair, 1, -7);
KillUnitAt(currentplayer, corsair, 1, 3);
KillUnitAt(currentplayer, corsair, 1, -7);
Wait(110);
CreateUnit(currentplayer, scout, 1, 4);
CreateUnit(currentplayer, scout, 1, -8);
KillUnitAt(currentplayer, scout, 1, 4);
KillUnitAt(currentplayer, scout, 1, -8);
Wait(10);
CreateUnit(currentplayer, scout, 1, 4);
CreateUnit(currentplayer, scout, 1, -8);
KillUnitAt(currentplayer, scout, 1, 4);
KillUnitAt(currentplayer, scout, 1, -8);
Wait(145);
CreateUnit(currentplayer, corsair, 1, 3);
CreateUnit(currentplayer, corsair, 1, -7);
KillUnitAt(currentplayer, corsair, 1, 3);
KillUnitAt(currentplayer, corsair, 1, -7);
Wait(110);
CreateUnit(currentplayer, observer, 1, 2);
CreateUnit(currentplayer, observer, 1, -6);
KillUnitAt(currentplayer, observer, 1, 2);
KillUnitAt(currentplayer, observer, 1, -6);
Wait(65);
DisplayText( 33, 4);
PlayWav(171);
SetDeaths(currentplayer, maprevealer, setto, @1);
CreateUnit(currentplayer, archon, 1, 1);
CreateUnit(currentplayer, archon, 1, -5);
KillUnitAt(currentplayer, archon, 1, 1);
KillUnitAt(currentplayer, archon, 1, -5);
SetDeaths(currentplayer, mineralfield(type1), setto, 1);
Wait(10);
GiveUnits(currentplayer, p7, men, all, 0);
PreserveTrigger();
Comment( 62);

ok so that is the action in my trigger. everywhere i put - infront of i want it to go up by 4 per duplication how would i or where do i position the vars. also where i put the @ i want it to go up by 1
Report, edit, etc...Posted by Friut on 2006-05-07 at 09:05:18
QUOTE(KABOOM @ May 6 2006, 11:04 PM)
DisplayText( 32, 4);
PlayWav(171);
Wait(200);
CreateUnit(currentplayer, observer, 1,  2);
CreateUnit(currentplayer, observer, 1, -6);
KillUnitAt(currentplayer, observer, 1,  2);
KillUnitAt(currentplayer, observer, 1,  -6);
Wait(70);
CreateUnit(currentplayer, corsair, 1,  3);
CreateUnit(currentplayer, corsair, 1,  -7);
KillUnitAt(currentplayer, corsair, 1,  3);
KillUnitAt(currentplayer, corsair, 1,  -7);
Wait(110);
CreateUnit(currentplayer, scout, 1,  4);
CreateUnit(currentplayer, scout, 1,  -8);
KillUnitAt(currentplayer, scout, 1,  4);
KillUnitAt(currentplayer, scout, 1,  -8);
Wait(10);
CreateUnit(currentplayer, scout, 1,  4);
CreateUnit(currentplayer, scout, 1,  -8);
KillUnitAt(currentplayer, scout, 1,  4);
KillUnitAt(currentplayer, scout, 1,  -8);
Wait(145);
CreateUnit(currentplayer, corsair, 1,  3);
CreateUnit(currentplayer, corsair, 1,  -7);
KillUnitAt(currentplayer, corsair, 1,  3);
KillUnitAt(currentplayer, corsair, 1,  -7);
Wait(110);
CreateUnit(currentplayer, observer, 1,  2);
CreateUnit(currentplayer, observer, 1,  -6);
KillUnitAt(currentplayer, observer, 1,  2);
KillUnitAt(currentplayer, observer, 1,  -6);
Wait(65);
DisplayText( 33, 4);
PlayWav(171);
SetDeaths(currentplayer, maprevealer, setto,  @1);
CreateUnit(currentplayer, archon, 1,  1);
CreateUnit(currentplayer, archon, 1,  -5);
KillUnitAt(currentplayer, archon, 1,  1);
KillUnitAt(currentplayer, archon, 1,  -5);
SetDeaths(currentplayer, mineralfield(type1), setto,  1);
Wait(10);
GiveUnits(currentplayer, p7, men, all,  0);
PreserveTrigger();
Comment( 62);

ok so that is the action in my trigger.  everywhere i put - infront of i want it to go up by 4 per duplication how would i or where do i position the vars.  also where i put the @ i want it to go up by 1
[right][snapback]481309[/snapback][/right]


ow... my brain... see if you can't clarify it some more...
Report, edit, etc...Posted by Noober on 2006-05-07 at 11:56:47
I like to use Textpad and the Find/Replace function.
Report, edit, etc...Posted by KABOOM on 2006-05-07 at 12:25:12
ok so

KillUnitAt(currentplayer, archon, 1, $5);
SetDeaths(currentplayer, mineralfield(type1), setto, $1);

this is pretty much the just of my problem so i want the top one to go up by 4 and the bottom one by 1...how?
Report, edit, etc...Posted by Noober on 2006-05-07 at 13:46:52
How many of those triggers are you doing? If you only need a few, just manually copy and paste them, and replace the numbers.

If you have many of those triggers with different units, use text pad. Copy them all, then use find and replace , 1, $5); with , 1, $9);, and same thing with the other one. This way, you won't accidentally replace random numbers. After u do that, paste all the 5's again, but replace them with 13's. Then, paste the 5's again, and replace with 17's. Keep going until you get to however many numbers you want, then put it back into SCMD.

If you have many different units and many different numbers, you could still do the textpad way...
Report, edit, etc...Posted by fritfrat(U) on 2006-05-07 at 14:18:33
Why use textpad when trigger duplicator does it so quickly?

QUOTE
DisplayText( 32, 4);
PlayWav(171);
Wait(200);
CreateUnit(currentplayer, observer, 1,  2);
CreateUnit(currentplayer, observer, 1, -6);
KillUnitAt(currentplayer, observer, 1,  2);
KillUnitAt(currentplayer, observer, 1,  -6);
Wait(70);
CreateUnit(currentplayer, corsair, 1,  3);
CreateUnit(currentplayer, corsair, 1,  -7);
KillUnitAt(currentplayer, corsair, 1,  3);
KillUnitAt(currentplayer, corsair, 1,  -7);
Wait(110);
CreateUnit(currentplayer, scout, 1,  4);
CreateUnit(currentplayer, scout, 1,  -8);
KillUnitAt(currentplayer, scout, 1,  4);
KillUnitAt(currentplayer, scout, 1,  -8);
Wait(10);
CreateUnit(currentplayer, scout, 1,  4);
CreateUnit(currentplayer, scout, 1,  -8);
KillUnitAt(currentplayer, scout, 1,  4);
KillUnitAt(currentplayer, scout, 1,  -8);
Wait(145);
CreateUnit(currentplayer, corsair, 1,  3);
CreateUnit(currentplayer, corsair, 1,  -7);
KillUnitAt(currentplayer, corsair, 1,  3);
KillUnitAt(currentplayer, corsair, 1,  -7);
Wait(110);
CreateUnit(currentplayer, observer, 1,  2);
CreateUnit(currentplayer, observer, 1,  -6);
KillUnitAt(currentplayer, observer, 1,  2);
KillUnitAt(currentplayer, observer, 1,  -6);
Wait(65);
DisplayText( 33, 4);
PlayWav(171);
SetDeaths(currentplayer, maprevealer, setto,  @1);
CreateUnit(currentplayer, archon, 1,  1);
CreateUnit(currentplayer, archon, 1,  -5);
KillUnitAt(currentplayer, archon, 1,  1);
KillUnitAt(currentplayer, archon, 1,  -5);
SetDeaths(currentplayer, mineralfield(type1), setto,  1);
Wait(10);
GiveUnits(currentplayer, p7, men, all,  0);
PreserveTrigger();
Comment( 62);

ok so that is the action in my trigger.  everywhere i put - infront of i want it to go up by 4 per duplication how would i or where do i position the vars.  also where i put the @ i want it to go up by 1


Open the map, and using View Triggers, insert this trigger into the duplicator. Now, set up the variables:

For X, make it go from 5 to (however high you want it) with an interval of 4. Now, replace "-5" with "$x". Then, go into "Other Variables" and make it so "a" starts at 6 with an interval of 4, "b" starts at 7 with an interval of 4, and "c" starts at 8 with an interval of 4. Then, replace every "-6" with "$a", -7 with $b, and -8 with $c. And you're set!

Another option would be instead of using 3 more variables to simply put x+1 for -5, x+2 for -6, x+3 for -7, and x+4 for -8.

Once you have it all set up, just hit compile triggers and save the map! smile.gif
Report, edit, etc...Posted by Toothfariy on 2006-05-07 at 18:58:56
i got 2 extremely easy solutions

click copy when you select a trigger or export trigs then re-import them
Report, edit, etc...Posted by KABOOM on 2006-05-07 at 23:30:31
fianlly someone with the answer i wanted ty fritfrat and for everyone else the system i'm doing is a good 560+ trigger so i'm not just gonna copy them 1 by 1. let me try what fritfrat said then i'll get back to u guys

ADDITION:
omg i love this thing but it deletes the text of duplicates if i delete one of the duplicated triggers... anyone know y?
Report, edit, etc...Posted by MindArchon on 2006-05-08 at 21:21:23
QUOTE(KABOOM @ May 7 2006, 08:30 PM)
fianlly someone with the answer i wanted ty fritfrat and for everyone else the system i'm doing is a good 560+ trigger so i'm not just gonna copy them 1 by 1.  let me try what fritfrat said then i'll get back to u guys

ADDITION:
omg i love this thing but it deletes the text  of duplicates if i delete one of the duplicated triggers... anyone know y?
[right][snapback]481927[/snapback][/right]


Explain the bug more. Does it remove the text if you remove the trigger after?
Report, edit, etc...Posted by KABOOM on 2006-05-08 at 22:43:07
yup u got it, i noticed sf has the same bug.. and its quite annoying
Next Page (1)