NeJiIjEn
N
NeJiIjEn
I got this from http://www.wc3sear.ch
They have many things this website doesn't have but im not offending this site.
LIVES TRIGGER
In the trigger editor(make sure u have a region for lives),
make a trigger (any name), make a variable for lives(integer) and put it any kind of number you want.
Then create leaderboard.
Events
Time - Elapsed game time is 0.10 seconds
Conditions
None
Actions
Leaderboard - Create a leaderboard for (all players) titled Lives(or any other name u want that has to deal with lives)
Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label Lives and value Lives
Leaderboard - Change color of all labels for (last created leaderboard) to (0.00%, 100.00%, 0.00%) with 0.00% transparency
Leaderboard - Show (last created board)
LOSING LIVES TRIGGER
Events
Unit -a unit enters Lives region
Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Set Lives = (lives - 1)
Unit Remove (Entering Unit) from the game Leaderboard - Change the value for Player 1 (Red) in (Last created biard) to Lives
Game - Display to Lives the text: (( + ((Name of (Entering unit)) + has reached the end!)) + ((String(Lives)) + Chances left))
Trigger - Run Defeat (checking conditions)
You should know what to do with the rest.
They have many things this website doesn't have but im not offending this site.
LIVES TRIGGER
In the trigger editor(make sure u have a region for lives),
make a trigger (any name), make a variable for lives(integer) and put it any kind of number you want.
Then create leaderboard.
Events
Time - Elapsed game time is 0.10 seconds
Conditions
None
Actions
Leaderboard - Create a leaderboard for (all players) titled Lives(or any other name u want that has to deal with lives)
Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label Lives and value Lives
Leaderboard - Change color of all labels for (last created leaderboard) to (0.00%, 100.00%, 0.00%) with 0.00% transparency
Leaderboard - Show (last created board)
LOSING LIVES TRIGGER
Events
Unit -a unit enters Lives region
Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Set Lives = (lives - 1)
Unit Remove (Entering Unit) from the game Leaderboard - Change the value for Player 1 (Red) in (Last created biard) to Lives
Game - Display to Lives the text: (( + ((Name of (Entering unit)) + has reached the end!)) + ((String(Lives)) + Chances left))
Trigger - Run Defeat (checking conditions)
You should know what to do with the rest.