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

A unit - A unit kills a unit (smth like that)

Status
Not open for further replies.
Level 2
Joined
Apr 7, 2008
Messages
23
Well, I need the trigger for my TD for dialog.I need if any player kills any unit event.I cant find the way how I can do it. I am like an idiot :xxd: but i need help because I cant find the ''way''. Help 4 teh Event! :(

I know you will laught but please ''send'' the answer. :(
 
Level 3
Joined
Apr 26, 2008
Messages
31
try using a variable like this

trigger
event
unit dies
cond
killer is equal (ur unit or building that is a variable)
u can make the variable like this

event
player builds (something like ur tower)
cond
(anything u wanna put)
action
set (ur variable)to(lasted created unit or object)

well i cant find the unit kill or make one either but this is i do and if u use this u might wanna use a variable with an array well this might could help
 
Level 2
Joined
Apr 7, 2008
Messages
23
Not about tower I want that.. This is for leaderboard! I need only ''Unit- A unit owned by Playerx(color) kills a unit''
 
Level 3
Joined
Apr 23, 2008
Messages
28
E
Unit - A unit dies
C
Owner of Killing Unit equal to Player 1 Red
Owner of Dying Unit equal to Player 2 Blue
Owner of Dying Unit equal to Player 3 Blue
................
A
Player - add 150 to Owner of Killing Unit's Gold

Try it. XD
 
Level 2
Joined
Apr 7, 2008
Messages
23
Thanks.

-
Events

A unit dies.

Conditions

owner of dying unit equal to playerx

Action

set integerPlayer1 +1
 
Status
Not open for further replies.
Top