The title might be confusing, so i'll explain it in detail.
I have a map, With a flying command center. You have limited forces. With those limited forces, you must infiltrate a outside the main base expo. Kill the units inside it, And destroy the command center.
I have added a neutral player 4's Building around it. So once the command center of Player 2 gets destroyed, All buildings from player 4 will be given to player 1.
So in short, I need a trigger, or script. or somting that will make
if player 2 loses any command center, Give player 1, Player 4 his buildings.
I hope i was clear enough to give a idea of what i want.
I'll attach 2 screenshots to make it hopefully more clear.
PS: I know the map is far from finished. but i'd rather do the triggers and stuff to prevent it from crashing before doing the textures. Doodads. ect.
Event:
Any unit dies
Actions:
If Unit Type of Triggering Unit==Command Center Then:
Pick Each unit in Entire Map:
If Owner of Picked Unit == Player 4 Then
Change Ownership of Picked unit to Player 1
the "If Unit Type of Triggering...." goes under conditions actually.
The action is "Pick each unit in... (not sure if its region or player group here, I think its region)" and do
put an If - Then - Else statement inside there and put a condition "If owner of picked unit == Player 4"
Then Change ownership of picked unit to payer 1
I believe you can also have the pick each unit action select only player 4's units (Pick each unit in region matching flag or with alliance to player if player 4 has no allies))
Ugh, When trying the scripts out, I got a script error and the Editor crashed, now in my preferances i have "Save every 10 minutes" but i cannot find it anywhere.
Alright, i gave up on LF the map, so i created a new one, with the same idea and it still doesn't work. i will attach the map so some of the more experienced map makers can take a look at it, and tell me what i do wrong.
Link Removed: http://www.mediafire.com/?rrg7h374308731u
Unit Group - Pick each unit in (Any units in (Entire map) owned by player 3 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Change ownership of (Picked unit) to player 1 and Change Color
The title might be confusing, so i'll explain it in detail.
I have a map, With a flying command center. You have limited forces. With those limited forces, you must infiltrate a outside the main base expo. Kill the units inside it, And destroy the command center. I have added a neutral player 4's Building around it. So once the command center of Player 2 gets destroyed, All buildings from player 4 will be given to player 1.
So in short, I need a trigger, or script. or somting that will make if player 2 loses any command center, Give player 1, Player 4 his buildings.
I hope i was clear enough to give a idea of what i want. I'll attach 2 screenshots to make it hopefully more clear.
PS: I know the map is far from finished. but i'd rather do the triggers and stuff to prevent it from crashing before doing the textures. Doodads. ect.
Thanks in progress.
Event:
Any unit dies
Actions:
If Unit Type of Triggering Unit==Command Center Then:
Pick Each unit in Entire Map:
If Owner of Picked Unit == Player 4 Then
Change Ownership of Picked unit to Player 1
Something like this
Err, How do i implent such Action? I tried searching for it. but could not find it.
I do have the event tough.
@BuuGhost: Go
the "If Unit Type of Triggering...." goes under conditions actually.
The action is "Pick each unit in... (not sure if its region or player group here, I think its region)" and do
put an If - Then - Else statement inside there and put a condition "If owner of picked unit == Player 4"
Then Change ownership of picked unit to payer 1
I believe you can also have the pick each unit action select only player 4's units (Pick each unit in region matching flag or with alliance to player if player 4 has no allies))
try looking for "if then else"
Alright, Conditions didnt had much, But i went searching, for a alternative, and ended up with This (Screenshot attached)
I think its similiar to what im trying to achieve, I did use custom script on Change ownership of >Player 4< to player 1 and change color.
Edit: found the if then else statement, Thanks
Ugh, When trying the scripts out, I got a script error and the Editor crashed, now in my preferances i have "Save every 10 minutes" but i cannot find it anywhere.
Alright, i gave up on LF the map, so i created a new one, with the same idea and it still doesn't work. i will attach the map so some of the more experienced map makers can take a look at it, and tell me what i do wrong. Link Removed: http://www.mediafire.com/?rrg7h374308731u
@BuuGhost: Go
In your second trigger, it should be
Thanks, Completely worked. Now i've gotta remake the map *Sigh*.