I look around the website and didnt find what i was looking for?
I was wondering how to make a lives system where when the players unit dies it subtracts a life. and when it gets to 0 they get defeated.
I was also wondering how to make a trigger where if you are red and lose all the lifes you become an observer instead of being defeated.
Lives
Moderator: Cheaters
-
- Honorary wc3edit.net Traitor
- Posts: 2507
- Joined: February 1st, 2007, 4:11 pm
- Location: NEVADA
Re: Lives
try this image to think about how I did it so I hopefully don't need to explain:
http://img108.imageshack.us/img108/3060 ... d01ih6.gif
then try this download and view the map in WEU unlimited 1.20 found all over, then see if it works etc:
http://files.wc3edit.net/download/index ... ciale1.w3x
http://img108.imageshack.us/img108/3060 ... d01ih6.gif
then try this download and view the map in WEU unlimited 1.20 found all over, then see if it works etc:
http://files.wc3edit.net/download/index ... ciale1.w3x
-
- Newcomer
- Posts: 15
- Joined: December 2nd, 2007, 8:13 pm
- Title: Clan I3c Chieftain
Re: Lives
Hi,
I think this will do it for ya:
I think this will do it for ya:
Code: Select all
abc
Events
Unit - A unit Dies
Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
Actions
Set Lifes_Red = (Lifes_Red - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Lifes_Red Equal to 0
Then - Actions
Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Unit - Kill (Picked unit))
Visibility - Create an initially Disabled visibility modifier for Player 1 (Red) emitting Fog of war across (Playable map area)
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Fog of war across (Playable map area)
Else - Actions
Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + Lost a live)
lightwing