Unit - a unit dies
Unit type of dying unit equal to - ENEMY BUILDING
For each integer from 5 to 10
Game defeat - player integer A
In this case if u want to defeat players 5-10 do this,if u want to defeat different players just change the numbers 5 and 10.
like this?
Defeat
Events
Unit - A unit Dies
Conditions
(Triggering unit) Equal to (TEAM 1 BUILDING)
Actions
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Game - Defeat (Player((Integer A))) with the message: Defeat!
For each (Integer B) from 7 to 12, do (Actions)
Loop - Actions
Game - Victory (Player((Integer B))) (Show dialogs, Show scores)
Add to group
Events
Map initialization
Conditions
Actions
Player Group - Add Player 1 (Red) to Player_group
Player Group - Add Player 2 (Blue) to Player_group
Game end
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Town Hall
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Killing unit)) is in Player_group[1]) Equal to True
(Owner of (Triggering unit)) Not equal to (Owner of (Killing unit))
Then - Actions
Player Group - Pick every player in Player_group[1] and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Player Group - Pick every player in Player_group[2] and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: Defeat!
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Killing unit)) is in Player_group[2]) Equal to True
(Owner of (Triggering unit)) Not equal to (Owner of (Killing unit))
Then - Actions
Player Group - Pick every player in Player_group[2] and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Player Group - Pick every player in Player_group[1] and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: Defeat!
Else - Actions
Do i need to add all players in the Add Group trigger ?
can u make me a trigger with this end of game and the auto cast ?
What auto cast? I dont understood.
can u make me a trigger that end a game by destroying enemys base
and can u make me an unit autocast skill when attacked because i want my unit to autocast brutal lords spell when attacked
yah i tried to make it but i cant make it by myself
im getting confused with the triggers
Is simple read it carefull and make it line by line.
Is simple read it carefull and make it line by line.
i can do it for a rep+
questions
1, when the building dies should the killing player win or his allied to? if yes tell wich players it is
2. describe the auto cast more
chill, i was neede to reinstall the whole wc3 it takes some timei will edit this post when im done
victory trigger
Untitled Trigger 001
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to BASE
Actions
Set Player_group = (All allies of (Player((Player number of (Owner of (Killing unit))))))
Player Group - Pick every player in Player_group and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
auto cast on attack trigger
note to use your spell insted of polymorph
Untitled Trigger 002
Events
Unit - A unit Is attacked
Conditions
(Owner of (Attacked unit)) Equal to Neutral Hostile
Actions
Unit - Order (Attacked unit) to Human Sorceress - Polymorph (Triggering unit)
you should read some GUI tutorials also it will help you to do it on your own
http://www.hiveworkshop.com/forums/tutorial-submission-283/darkgroms-gui-tutorial-begginers-214275/
http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/basic-triggering-5885/
http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/basics-triggers-32113/
http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/starting-gui-64286/
victory trigger
Untitled Trigger 001
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to BASE
Actions
Set Player_group = (All allies of (Player((Player number of (Owner of (Killing unit))))))
Player Group - Pick every player in Player_group and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
read the GUI tutorials i linked so you can learn what to do.
read the GUI tutorials i linked so you can learn what to do.