I have this trigger duplicated 4 times but changing the locations, attack points and the player owner condition. The basic idea is that a Nydus Worm spawns and Units are created. This trigger fires after the nydus spawns said units. What I am trying to do is to get the units spawned to move to the listed point. I have 4 different locations the units are spawn and each of the 4 groups of units need to go to different locations. So basically I am needing it to first check where the units are spawned. If they are spawned in "Player 1 Nydus" region, then they need to attack "Player 1 Base Attack Point". If they are spawned in "Player 2 Nydus" region, then they need to attack "Player 2 Base Attack Point".
When I run this trigger I keep getting the "INVALID AREA" message that I set up as the Defeault for the switch (I guess to simulate errors in my trigger), which is spammed endlessly. So there is something wrong with my trigger because the spawned units aren't doing what I want them to. Where is my logic error?
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
Output the X and the Y offset of the position and compare it with the offsets of the nydus spawns...
If the unit is not on the EXACT random point, you are screwed... So basically you are always screwed with your trigger.
You need to check, if it is in the region or save a value in the unit's custom values which nydus spawn it was spawned in... Or just order the units after the spawn. It depends on your map what you do.
I would order the units directly after spawning them and not using another trigger for that.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have this trigger duplicated 4 times but changing the locations, attack points and the player owner condition. The basic idea is that a Nydus Worm spawns and Units are created. This trigger fires after the nydus spawns said units. What I am trying to do is to get the units spawned to move to the listed point. I have 4 different locations the units are spawn and each of the 4 groups of units need to go to different locations. So basically I am needing it to first check where the units are spawned. If they are spawned in "Player 1 Nydus" region, then they need to attack "Player 1 Base Attack Point". If they are spawned in "Player 2 Nydus" region, then they need to attack "Player 2 Base Attack Point".
When I run this trigger I keep getting the "INVALID AREA" message that I set up as the Defeault for the switch (I guess to simulate errors in my trigger), which is spammed endlessly. So there is something wrong with my trigger because the spawned units aren't doing what I want them to. Where is my logic error?
Output the X and the Y offset of the position and compare it with the offsets of the nydus spawns...
If the unit is not on the EXACT random point, you are screwed... So basically you are always screwed with your trigger.
You need to check, if it is in the region or save a value in the unit's custom values which nydus spawn it was spawned in... Or just order the units after the spawn. It depends on your map what you do.
I would order the units directly after spawning them and not using another trigger for that.