How can i have it so that player 1, 2, 3 and four have their own region for "Triggering player"? I have the 4 regions for each player but i dont want to have to make 4 separate triggers for each player to buy this unit.
I was wondering if I could assign the region to Player 1 and so on. Perhaps an If than statement??
Local Variables
unit group name = (Empty unit group) <Unit Group>
unit group name 2 = (Empty unit group) <Unit Group>
Conditions
Actions
Unit Group - Pick each unit in (Any units in Region 001 owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit Group - Add (Picked unit) to unit group name
Unit Group - Add (Random Living unit from unit group name) to unit group name 2
Unit Group - Pick each unit in unit group name 2 and do (Actions)
Actions
Unit - Kill (Picked unit)
One question about this trigger.
How can i have it so that only ONE unit dies per trigger run?
This trigger is picking all units in my region and, subsequently, killing them all.
You will never learn if you don't really try. This is the last bit of help from me in which I just show you the solution :P
Events
Unit - Any Unit Enters Region 001
Local Variables
Conditions
(Number of Living units in (Any units in Region 001 owned by player (Triggering player) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) == 8
Actions
Unit Group - Pick each unit in (Any units in Region 001 owned by player (Triggering player) matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Kill (Picked unit)
Unit - Create 1 "your unit" for player (Triggering player) at (Random point in Region 002) using default facing (No Options)
thanks so much sir!!
I do try though haha i try but can never really get it. Now that you showed me, i will never forget it!
Local Variables
unit group name = (Empty unit group) <Unit Group>
unit group name 2 = (Empty unit group) <Unit Group>
Conditions
Actions
Unit Group - Pick each unit in (Any units in Region 001 owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit Group - Add (Picked unit) to unit group name
Unit Group - Add (Random Living unit from unit group name) to unit group name 2
Unit Group - Pick each unit in unit group name 2 and do (Actions)
Actions
Unit - Kill (Picked unit)
Events
Unit - Any Unit Enters "your region name"
Local Variables
Conditions
Actions
Unit - Kill (Triggering unit)
Unit - Create 1 "your unit" for player (Triggering player) at "your point or region" using default facing (No Options)
perfect except for i want it to be more than 1 unit for the second trigger. as in: player brings 8 units....blah blah
Well it's for a TD map. (I should have specified!)
You get 1 mineral for 10 unit kills. When the player gains that mineral, I want a unit to be created at a region and set the minerals back to zero.
(Just thinking, maybe instead just make a trigger: player x kills 10 units belonging to Player x - create unit...) Would that be easier? If so, how can I make that trigger?
Is there a way to start the editor without having to F** login to battlenet? Why do they have to activate my copy of the editor every single time? I know that before i didn't have to, but now i do?
0
currently, this is my trigger:
How can i have it so that player 1, 2, 3 and four have their own region for "Triggering player"? I have the 4 regions for each player but i dont want to have to make 4 separate triggers for each player to buy this unit.
I was wondering if I could assign the region to Player 1 and so on. Perhaps an If than statement??
any help is appreciated!
0
thanks for the quick and helpful solution!
(Wish this board had a rep system!! )
0
One question about this trigger.
How can i have it so that only ONE unit dies per trigger run?
This trigger is picking all units in my region and, subsequently, killing them all.
0
I'm in the process of finishing my map but the photon cannons are causing too much lag. (They are stacked multiple times)
Is there a way to reduce/remove/scale down the idle animations in order to save computer resources?
Or is there another/better way of doing so?
thanks guys, much help from this forum!
0
thanks so much sir!!
I do try though haha i try but can never really get it. Now that you showed me, i will never forget it!
0
which condition can i use to do so? :(
Sorry, uber noob here, i'm too used to the old editor
0
perfect except for i want it to be more than 1 unit for the second trigger. as in: player brings 8 units....blah blah
thanks alot for the reply, very appreciated
0
bump
Any help would be incredibly appreciated!!
0
How can I get an action to do this?
I want it to be:
Action:
"Kill/destroy 1 unit for player 7 in region"
Or anything along those lines. How can i do so? thanks alot!!
EDIT:
Also, how do i make the trigger for buying a unit using other units?
example:
Event:
-Player x brings x number of units to region
Action:
-Kill triggering units
-Create x number of "Unit" at Region for player x
0
bump
0
Or if just "Player x gains 10 minerals - -> Create unit at region + Modify P prop (minerals) to 0"
how can i do that?
0
@cstorm15: Go
Well it's for a TD map. (I should have specified!)
You get 1 mineral for 10 unit kills. When the player gains that mineral, I want a unit to be created at a region and set the minerals back to zero.
(Just thinking, maybe instead just make a trigger: player x kills 10 units belonging to Player x - create unit...) Would that be easier? If so, how can I make that trigger?
0
I had a trigger in the old editor that looked like this:
Player accumulates 1 Mineral
-Subtract 1 mineral
-Create Unit at region
How can i do this in the new editor? I can't seem to get it. Thanks!!!
0
It just sucks so bad, everytime i want to do some editing on my laptop when i'm not home, i can't.
Blizz is really disappointing me with sc2. The publishing crap, the popularity crap, the editor. I'm hating what they are doing.
0
Is there a way to start the editor without having to F** login to battlenet? Why do they have to activate my copy of the editor every single time? I know that before i didn't have to, but now i do?