I have made a trigger to move a unite from one region to another would like to simplify it if possable.
Trigger states:
Events:
Unit enters/leaves region
unit: agent of player for unit
Player: 5
Unit: Triggering Unit
State: enters region: Region 001
Action: (this is the long part i would have to repeat this 21 tims for all the move points)
Unit - Order all units in (Units in (Units in (Triggering region) having alliance Ally with player 5 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) within Region 001, with at most Any Amount) to ( Move targeting (Center of Region 002)) (Replace Existing Orders)
This is setup so player 5 spawning in 4 locations, each location joins the way points at different points then follows them so on. I would have to repeat the above trigger 17 more times to get them all to the end point. Just woundering if the best way is to make the above trigger in order to get the unites thru all way points. When the unite enters region 001 the triggers take over moving them the rest of the way to the end region.
Rollback Post to RevisionRollBack
working on "Sacrifice" it's a 4 player defense map based off Spiral D from SC1.
I am new to map creation, thus i used videos to do some of the INI setup on this map to learn the editor. How would I set this up, could I get some advise to follow inorder to do it with an array?
or Would i just make a gobal variable and to the something like the below wording??
Variable named "Waypoints"
Type: point
Array:XX(being number of total points)
-Do I link all the "move to points" in another trigger to put them in some type of order? Then how would I loop thru this in a Trigger, would be something like this??
Event: Triggering unite of player 5 enters any region in waypoints
Action: unite of player 5 enters any region for "Waypoints" move triggering unit(s) to next point/region in "Waypoints" order sequnce?
-Maybe with the above I answered my own question. I just sorta typed what i though would make sense.
Rollback Post to RevisionRollBack
working on "Sacrifice" it's a 4 player defense map based off Spiral D from SC1.
To post a comment, please login or register a new account.
I have made a trigger to move a unite from one region to another would like to simplify it if possable.
Trigger states:
Events: Unit enters/leaves region unit: agent of player for unit Player: 5 Unit: Triggering Unit State: enters region: Region 001
Action: (this is the long part i would have to repeat this 21 tims for all the move points) Unit - Order all units in (Units in (Units in (Triggering region) having alliance Ally with player 5 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) within Region 001, with at most Any Amount) to ( Move targeting (Center of Region 002)) (Replace Existing Orders)
This is setup so player 5 spawning in 4 locations, each location joins the way points at different points then follows them so on. I would have to repeat the above trigger 17 more times to get them all to the end point. Just woundering if the best way is to make the above trigger in order to get the unites thru all way points. When the unite enters region 001 the triggers take over moving them the rest of the way to the end region.
Store all your regions in an array and loop through them.
I am new to map creation, thus i used videos to do some of the INI setup on this map to learn the editor. How would I set this up, could I get some advise to follow inorder to do it with an array?
or Would i just make a gobal variable and to the something like the below wording??
Variable named "Waypoints" Type: point Array:XX(being number of total points)
-Do I link all the "move to points" in another trigger to put them in some type of order? Then how would I loop thru this in a Trigger, would be something like this??
Event: Triggering unite of player 5 enters any region in waypoints
Action: unite of player 5 enters any region for "Waypoints" move triggering unit(s) to next point/region in "Waypoints" order sequnce?
-Maybe with the above I answered my own question. I just sorta typed what i though would make sense.