- Joined
- Jul 7, 2008
- Messages
- 332
Hi, I am trying to make a duel for my map but I fail with that.
Heres the first trigger which works fine.
Heres the first trigger which works fine.
-
First Duel
-
Events
-
Time - Elapsed game time is 10.00 seconds
-
-
Conditions
-
Actions
-
-------- Creating a hero unit in arena for testing --------
-
Unit - Create 1 Testing Hero for Player 2 (Blue) at (Random point in Duel <gen>) facing Default building facing degrees
-
-------- Heroes, is a unit group of all heroes in map (Usable for players) --------
-
Unit Group - Pick every unit in Heroes and do (Actions)
-
Loop - Actions
-
Unit - Move (Picked unit) instantly to (Center of Duel <gen>)
-
-
-
Wait 2.00 game-time seconds
-
Game - Display to (All players) for 15.00 seconds the text: |c00F5F034DUEL TIME...
-
Unit - Pause all units
-
Unit - Set life of (Picked unit) to 100.00%
-
Unit - Set mana of (Picked unit) to 100.00%
-
Player Group - Make (All players controlled by a User player) treat (All players controlled by a User player) as an Enemy
-
Game - Display to (All players) for 3.00 seconds the text: |c00F5F0343!|r
-
Wait 1.00 game-time seconds
-
Game - Display to (All players) for 3.00 seconds the text: |c00F5F0342!|r
-
Wait 1.00 game-time seconds
-
Game - Display to (All players) for 3.00 seconds the text: |c00F5F0341!|r
-
Wait 1.00 game-time seconds
-
Game - Display to (All players) for 8.00 seconds the text: |c00F5F034Fight!!!|...
-
Unit - Unpause all units
-
-------- This trigger works fine --------
-
Trigger - Turn on First Duel Check <gen>
-
-
-
First Duel Check
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Number of units in (Units in Duel <gen>)) Equal to 1
-
-
Actions
-
-------- Heres the problem this trigger just doesn't work, it doesn't even show the message so I guess something is wrong with the condition? --------
-
Game - Display to (All players) for 15.00 seconds the text: Duel Is Over, Congr...
-
Player Group - Make (All players controlled by a User player) treat (All players controlled by a User player) as an Ally with shared vision
-
Unit Group - Pick every unit in (Units in Duel <gen>) and do (Do nothing)
-
Set Winner[1] = (Picked unit)
-
Unit - Set life of Winner[1] to 100.00%
-
Unit - Set mana of Winner[1] to 100.00%
-
Unit - Move Winner[1] instantly to (Center of Hero Teleport TOWN <gen>)
-
Player - Add 50 to (Owner of Winner[1]) Current gold
-
-