Hey, I am making a hero defense, and I want to give each team 60 chances, if their chances reach 0, they get defeated. My triggeres for the chances looks like this:
Now I was wondering how to make team 1/2 get defeated when their chances reach zero, could anyone give me some hint?
-
initialization
-
Events
- Map initialization
- Conditions
-
Actions
- Quest - Create a Optional quest titled Credits with the description Fried.Chicken made ..., using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
- Game - Display to (All players) the text: The first wave will...
- Player - Add 100 to Player 1 (Red) Current gold
- Player - Add 100 to Player 2 (Blue) Current gold
- Player - Add 100 to Player 3 (Teal) Current gold
- Player - Add 100 to Player 4 (Purple) Current gold
- Player - Add 100 to Player 6 (Orange) Current gold
- Player - Add 100 to Player 7 (Green) Current gold
- Player - Add 100 to Player 8 (Pink) Current gold
- Player - Add 100 to Player 9 (Gray) Current gold
- Player - Add 100 to Player 10 (Light Blue) Current gold
- Player - Add 100 to Player 11 (Dark Green) Current gold
- Set Chance[100] = 100
- Set Chancy[100] = 100
-
Events
-
Team 1
-
Events
- Unit - A unit enters End Loc <gen>
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Owner of (Triggering unit)) controller) Equal to (Player 6 (Orange) controller)
-
Then - Actions
- Set Chance[1] = (Chance[1] - 1)
- Game - Display to (All players) the text: Team 1 has lost one...
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Now I was wondering how to make team 1/2 get defeated when their chances reach zero, could anyone give me some hint?
Last edited: