Trigger help - order issued targeting a point/object
A little background first, I'm making a golems map taking what I beleive to be the best facets of the old golems, and combining them with some new ideas that I've thought up. Keeping this in mind, I'm trying to design a trigger that will make a "mass attack" function extremely easy and effective to execute.
I want to make it so if I make a rally point to a spot, all units, excluding heroes will make their way towards that target with attack + move on, as well as all other units that spawn after the initial rally is made until it is defaulted back to the unit it started on. Also, I wasn't sure how to handle the two different trigger functions, order issued targeting a point, and an object. I suppose it would require 2 different triggers. IE: someone wants to rally right outside the other guy's base, or they want to rally onto their main structure.
If that is not specific enough, I can elaborate more so, but that's basically what I'm trying to accomplish. Thanks.
Take a look at the three triggers here under the Rally Point heading. This is how I roughly duplicated the rally point system for spawned units in a footman war. I think there'd be a better way to do it, but this one is functional and fairly simple.
I look at those triggers and replicated them for the most part according to my map specs, but I'm not sure how to make the units that spawn get the order to attack + move a point everytime another unit spawns rather than having it be a one time event.
IE: Player 1 issues setrally to player 2's base. All of player 1's current units matching condition attack + move there, how would I make it so any subsequent units that spawn for player 1 continue to move towards that point?
You'd want a fairly simple trigger that detects when a rally point is set, and picks all units owned by the owner of the rally point-setting building and orders them to attack-move or whathaveyou to the point of the rallypoint.