ok well first i should tell u why i need the help. im making an arena type map but im adding special abilities. one of them is that 2 scarabs will appear from the players unit.
when you die you get to choose a new unit. this is where the problem is. i dont know how to make the location that will be centered on the players units(they will only command one) when they respawn each time.
can anyone help?
Um, couldn't you just do this
| Trigger |
| Players: |
| ¤ P1 |
| Conditions: |
| ¤ Current player commands at least 1 men |
| Actions: |
¤ Move location 1 Guy on men owned by Current player at anywhere
|
| ¤ preserve trigger |
I don't quite under stand what you mean by the 2 scarab thing, but I hink I can help with your movement trigger.
| Trigger |
null| Conditions: |
| ¤ When player x controls exactly 0 unit x |
| Actions: |
¤ Move view to location x
|
| ¤ preserve trigger |
It would be like he trigger mentioned by Vindexus. I don't think you can make 2 scarabs at that location. You have to have them somewhere else coming out of reavers, and move 2 of them to the location. I guess that might work.
| Trigger |
| Description: |
| Move location |
|
| Conditions: |
| ¤ Current player commands exactly 0 anyunit. |
| Actions: |
¤ movelocation scarab on location1 for currentplayer at anywhere Create (unit is the fighter) at location for currentplayer wait(1000); Create 2 scarab at location1 for currentplayer Preserve trigger |
If the scarabs are following the fighter do this.
| Trigger |
| Description: |
| Following fighter |
|
| Conditions: |
| ¤ Current player commands exactly 0 fighter. |
| Actions: |
¤ movelocation (fighter unit) on location for currentplayer at anywhere order move scarab from anywhere to location Preserve trigger |
ok i shouldve said it in more detail. each player commands two civilians and i have the reavers shooting the scarabs and teleporting them to a location. i just want the location following each plaers unit on the battlefield. thanks for those suggestions already though.
Players
Condition:
Player commands atleast 1 "the unit you want the location following"
Action:
(Move Location)
Center Location Label "follow" on "the unit you want the location following" at "Anywhere"
PreserveTrigger
Optional:
Condition:
Player commands atleast 1 "the unit you want the location following"
Action:
Center View at "follow"
PreserveTrigger();
These Thing have already been mentioned by it does make the location follow the unit.
Or... If you want it like this
Players:
Player commands atleast 1 "the unit you want the location following"
Action:
(Move Location)
Center Location Label "follow" on "the unit you want the location following" at "Anywhere"
PreserveTrigger
Players:
Players command atmost 0 "the unit you want the location following"
Action:
Create 1 "the unit you want the location following" at Follow.
PreserveTrigger
Dont use Always condition. otherwise it messes things up.
Okay, I didn't read all the posts, but...
Just have 1 follow trigger for every unit he can be.
Like if you can choose Firebat, Zergling, and Zealot, than just have:
PLayer commands 1 Lot
Move Location
Player Commands 1 Ling
Move Location
Player commands 1 Bat
Move Location
ok thanks for the help but one more thing, is there a way to make it just one trigger or should i just make it multiple triggers?
there is a way but i say make multiple, because the game triggers might be confused cause it might perform the action 3 times (one for each unit)
ill try that ill post another if it doesnt work

c: always
a: center location labeled x on unit x at anywhere
i think thats how u do it but the scarabs or whatever will appear on the unit which would be the middle of the location they wont appear in front of him