• 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.

Lives? {lives for a TD, using "prisoners"}

Status
Not open for further replies.
Level 8
Joined
Aug 3, 2008
Messages
391
Make an integer variable, this will represent the lives. Let's call it "Lives"

Set the integer variable "Lives" to 60 at map initialization.

Create a trigger that detects when a unit enters region. Something like this:
  • Events
    • Unit - A unit enters YourRegion <gen>
  • Conditions
    • (Owner of (Entering unit)) Equal to CreepSpawnPlayer
  • Actions
    • Set Lives = (Lives - 1)
I think that's about it.

[Edit]
Shit, Blaxor beat me to it. Lol I type too long.
 
Level 6
Joined
Aug 19, 2006
Messages
187
just click on the "X" button in the trigger editor and create a integer variable with start value 60. and name the variable for example "Lives".


now you must create a rect next to the portal and then make a trigger:

event - unit enters rect (the one you place next to the portal)

condition - owner of unit equal to (the player who owns the prisoners)

action - kill or remove entering unit
- set Lives = Lives - 1
- display message to player "You lost a live + (Lives) + remaining!"

edit: arg damn too slow too ><
 
Status
Not open for further replies.
Top