Or anything along those lines. How can i do so? thanks alot!!
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)
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
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)
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)
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.
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
bump
Any help would be incredibly appreciated!!
Relatively simple
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
thanks alot for the reply, very appreciated
if you want more units as condition, add it as condition :>
which condition can i use to do so? :(
Sorry, uber noob here, i'm too used to the old editor
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!
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.
@copperfront: Go
Do what i did for my Tab Targeting - Add all the units in the region to a group. Then, kill unit 1 from that group.
thanks for the quick and helpful solution!
(Wish this board had a rep system!! )
@copperfront: Go
Sure thing, happy coding!