I
ilida76
Guest
RED = Variable
GREEN = Custom Script
Changed up the Region Array's to make them more simple (the numbers)
Alright, pretty much here, I have 8 spawns (8 seperate regions) from the middle, and they have pathing points to go outwards toward the sides of the map (the Ending Regions (where you lose lives)) and there are A, B, C, and D regions between these 2 region points to keep them on the pathing.
My units all spawn from the 8 seperate regions, BUT, when they do, they only follow the path that was given to them in the Spawn 1 --> 1A --> 1B --> 1C --> 1D --> 1Ending, (all 8 spawn points),
the problem is that the spawns 2-8 are not following their own paths (Spawn 2 --> 2A --> 2B --> 2C --> 2D --> 2Ending (same w/ the other spawns 3-8))
any one understand why? possbily I should copy some of my variables? and set them differently?.
my guess is that it is somewhere in the Actions part in the Trigger 2, with the custom values, but im not sure how I'd fix it.
WHAT I WANT
WHAT I GET
Thanks in advance
GREEN = Custom Script
Code:
Region Initialization
Events
Map initialization
Conditions
Actions
Set [COLOR="Red"]regionArray[10][/COLOR] = Mob Spawn 1 <gen>
Set [COLOR="red"]regionArray[11][/COLOR] = Spawn 1 A <gen>
Set [COLOR="red"]regionArray[12][/COLOR] = Spawn 1 B <gen>
Set [COLOR="red"]regionArray[13][/COLOR] = Spawn 1 C <gen>
Set [COLOR="red"]regionArray[14][/COLOR] = Spawn 1 D <gen>
Set [COLOR="red"]regionArray[15][/COLOR] = Spawn 1 Ending <gen>
Set [COLOR="red"]regionArray[20][/COLOR] = Mob Spawn 2 <gen>
Set [COLOR="red"]regionArray[21][/COLOR] = Spawn 2 A <gen>
Set [COLOR="Red"]regionArray[22][/COLOR] = Spawn 2 B <gen>
Set [COLOR="red"]regionArray[23][/COLOR] = Spawn 2 C <gen>
Set [COLOR="red"]regionArray[24][/COLOR] = Spawn 2 D <gen>
Set [COLOR="red"]regionArray[25][/COLOR] = Spawn 2 Ending <gen>
Set [COLOR="red"]regionArray[30][/COLOR] = Mob Spawn 3 <gen>
Set [COLOR="red"]regionArray[31][/COLOR] = Spawn 3 A <gen>
Set [COLOR="red"]regionArray[32][/COLOR] = Spawn 3 B <gen>
Set [COLOR="red"]regionArray[33][/COLOR] = Spawn 3 C <gen>
Set [COLOR="red"]regionArray[34[/COLOR]] = Spawn 3 D <gen>
Set [COLOR="red"]regionArray[35][/COLOR] = Spawn 3 Ending <gen>
Set [COLOR="red"]regionArray[40][/COLOR] = Mob Spawn 4 <gen>
Set [COLOR="red"]regionArray[41][/COLOR] = Spawn 4 A <gen>
Set [COLOR="red"]regionArray[42][/COLOR] = Spawn 4 B <gen>
Set [COLOR="red"]regionArray[43][/COLOR] = Spawn 4 C <gen>
Set [COLOR="red"]regionArray[44][/COLOR] = Spawn 4 D <gen>
Set [COLOR="red"]regionArray[45][/COLOR] = Spawn 4 Ending <gen>
Set [COLOR="red"]regionArray[50][/COLOR] = Mob Spawn 5 <gen>
Set [COLOR="red"]regionArray[51][/COLOR] = Spawn 5 A <gen>
Set [COLOR="red"]regionArray[52][/COLOR] = Spawn 5 B <gen>
Set [COLOR="red"]regionArray[53][/COLOR] = Spawn 5 C <gen>
Set [COLOR="red"]regionArray[54][/COLOR] = Spawn 5 D <gen>
Set [COLOR="red"]regionArray[55][/COLOR] = Spawn 5 Ending <gen>
Set [COLOR="red"]regionArray[60][/COLOR] = Mob Spawn 6 <gen>
Set [COLOR="red"]regionArray[61][/COLOR] = Spawn 6 A <gen>
Set [COLOR="red"]regionArray[62][/COLOR] = Spawn 6 B <gen>
Set [COLOR="red"]regionArray[63][/COLOR] = Spawn 6 C <gen>
Set [COLOR="red"]regionArray[64][/COLOR] = Spawn 6 D <gen>
Set [COLOR="red"]regionArray[65][/COLOR] = Spawn 6 Ending <gen>
Set [COLOR="red"]regionArray[70][/COLOR] = Mob Spawn 7 <gen>
Set [COLOR="red"]regionArray[71][/COLOR] = Spawn 7 A <gen>
Set [COLOR="red"]regionArray[72][/COLOR] = Spawn 7 B <gen>
Set [COLOR="red"]regionArray[73][/COLOR] = Spawn 7 C <gen>
Set [COLOR="red"]regionArray[74][/COLOR] = Spawn 7 D <gen>
Set [COLOR="red"]regionArray[75][/COLOR] = Spawn 7 Ending <gen>
Set [COLOR="red"]regionArray[80][/COLOR] = Mob Spawn 8 <gen>
Set [COLOR="red"]regionArray[81][/COLOR] = Spawn 8 A <gen>
Set [COLOR="red"]regionArray[82][/COLOR] = Spawn 8 B <gen>
Set [COLOR="red"]regionArray[83][/COLOR] = Spawn 8 C <gen>
Set [COLOR="red"]regionArray[84][/COLOR] = Spawn 8 D <gen>
Set [COLOR="red"]regionArray[85][/COLOR] = Spawn 8 Ending <gen>
Changed up the Region Array's to make them more simple (the numbers)
Code:
Region Spawn Path
Events
Unit - A unit enters Mob Spawn 1 <gen>
Unit - A unit enters Spawn 1 A <gen>
Unit - A unit enters Spawn 1 B <gen>
Unit - A unit enters Spawn 1 C <gen>
Unit - A unit enters Spawn 1 D <gen>
Unit - A unit enters Spawn 1 Ending <gen>
Unit - A unit enters Mob Spawn 2 <gen>
Unit - A unit enters Spawn 2 A <gen>
Unit - A unit enters Spawn 2 B <gen>
Unit - A unit enters Spawn 2 C <gen>
Unit - A unit enters Spawn 2 D <gen>
Unit - A unit enters Spawn 2 Ending <gen>
Unit - A unit enters Mob Spawn 3 <gen>
Unit - A unit enters Spawn 3 A <gen>
Unit - A unit enters Spawn 3 B <gen>
Unit - A unit enters Spawn 3 C <gen>
Unit - A unit enters Spawn 3 D <gen>
Unit - A unit enters Spawn 3 Ending <gen>
Unit - A unit enters Mob Spawn 4 <gen>
Unit - A unit enters Spawn 4 A <gen>
Unit - A unit enters Spawn 4 B <gen>
Unit - A unit enters Spawn 4 C <gen>
Unit - A unit enters Spawn 4 D <gen>
Unit - A unit enters Spawn 4 Ending <gen>
Unit - A unit enters Mob Spawn 5 <gen>
Unit - A unit enters Spawn 5 A <gen>
Unit - A unit enters Spawn 5 B <gen>
Unit - A unit enters Spawn 5 C <gen>
Unit - A unit enters Spawn 5 D <gen>
Unit - A unit enters Spawn 5 Ending <gen>
Unit - A unit enters Mob Spawn 6 <gen>
Unit - A unit enters Spawn 6 A <gen>
Unit - A unit enters Spawn 6 B <gen>
Unit - A unit enters Spawn 6 C <gen>
Unit - A unit enters Spawn 6 D <gen>
Unit - A unit enters Spawn 6 Ending <gen>
Unit - A unit enters Mob Spawn 7 <gen>
Unit - A unit enters Spawn 7 A <gen>
Unit - A unit enters Spawn 7 B <gen>
Unit - A unit enters Spawn 7 C <gen>
Unit - A unit enters Spawn 7 D <gen>
Unit - A unit enters Spawn 7 Ending <gen>
Unit - A unit enters Mob Spawn 8 <gen>
Unit - A unit enters Spawn 8 A <gen>
Unit - A unit enters Spawn 8 B <gen>
Unit - A unit enters Spawn 8 C <gen>
Unit - A unit enters Spawn 8 D <gen>
Unit - A unit enters Spawn 8 Ending <gen>
Conditions
(Owner of (Triggering unit)) Equal to [COLOR="red"]hostileCreeps[/COLOR]
Actions
Unit - Set the custom value of (Triggering unit) to ((Custom value of (Triggering unit)) + 1)
Set [COLOR="red"]tmpPoint[/COLOR] = (Center of [COLOR="red"]regionArray[/COLOR][(Custom value of (Triggering unit))])
Unit - Order (Triggering unit) to Move To [COLOR="Red"]tmpPoint[/COLOR]
[COLOR="SeaGreen"]Custom script: call RemoveLocation( udg_tmpPoint )[/COLOR]
Alright, pretty much here, I have 8 spawns (8 seperate regions) from the middle, and they have pathing points to go outwards toward the sides of the map (the Ending Regions (where you lose lives)) and there are A, B, C, and D regions between these 2 region points to keep them on the pathing.
My units all spawn from the 8 seperate regions, BUT, when they do, they only follow the path that was given to them in the Spawn 1 --> 1A --> 1B --> 1C --> 1D --> 1Ending, (all 8 spawn points),
the problem is that the spawns 2-8 are not following their own paths (Spawn 2 --> 2A --> 2B --> 2C --> 2D --> 2Ending (same w/ the other spawns 3-8))
any one understand why? possbily I should copy some of my variables? and set them differently?.
my guess is that it is somewhere in the Actions part in the Trigger 2, with the custom values, but im not sure how I'd fix it.
WHAT I WANT
WHAT I GET
Thanks in advance