• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Tower Defence Defeat Trigger

Status
Not open for further replies.
Level 3
Joined
Dec 1, 2008
Messages
30
Just that you win.

If i posted this wrong then i apologize and ask that a mod move it to the right forum.

But how do i make you loose the map when the life counter hits 0?

~Semp~
 
Level 3
Joined
Jan 28, 2009
Messages
42
Depends on how you have your td setup.. if you have lifes, how the level-system is setup.. other than that its just
  • Game - Defeat playernumber with the message: put-a-defeatmessage-here
Edit: Post your life system here.. else i cant really help

An example of how it COULD look:
  • Player 1 Dead
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
      • P1Lifes Less than or equal to 0
    • Actions
      • Game - Defeat Player 1 (Red) with the message: You have leaked..
      • Trigger - Turn off (This trigger)
 
Level 3
Joined
Dec 1, 2008
Messages
30
I dont know how to make the forum show trigger. But i use a integer for it.

Varible Name: Lives.

Varible Type: Intiger.

Initial Value: 100.

Hope that helped you to help me. :grin:

~Semp~
 
Level 3
Joined
Jan 28, 2009
Messages
42
  • Events
    • Time - Every 0.50 seconds of game time
  • Conditions
    • Lives Less than or equal to 0
  • Actions
    • Game - Defeat Player 1 (Red) with the message: You have leaked...
    • Trigger - Turn off (This trigger)
Make 1 of theese for each player..
+rep if i helped
 
Level 3
Joined
Dec 1, 2008
Messages
30
Every time a creep leaks, set it to its value -1 so it reduces by 1.
Then check if it is equal to 0, if so then defeat the players.

I already did that, thanks anyway though.

  • Events
    • Time - Every 0.50 seconds of game time
  • Conditions
    • Lives Less than or equal to 0
  • Actions
    • Game - Defeat Player 1 (Red) with the message: You have leaked...
    • Trigger - Turn off (This trigger)
Make 1 of theese for each player..
+rep if i helped

Thanks, that did it.

+ Rep.

~Semp~
 
Level 3
Joined
Dec 1, 2008
Messages
30
Lets see if i cant work out useing the forum... Trigger thing.

  • Events
    • Time - Every 0.10 seconds of game time
  • Conditions
    • Lives Less than or equal to 0
  • Actions
    • Game - Defeat Player 1 (Red) with the message: - PWNED -
    • Game - Defeat Player 2 (Red) with the message: - PWNED -
    • Game - Defeat Player 3 (Red) with the message: - PWNED -
    • Game - Defeat Player 4 (Red) with the message: - PWNED -
    • Game - Defeat Player 5 (Red) with the message: - PWNED -
    • Trigger - Turn off (This trigger)
It's a team td. So i edited the trigger.
 
Status
Not open for further replies.
Top