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!
