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

How to detect a unit not killed by KABOOM?

Status
Not open for further replies.
Level 3
Joined
Jan 18, 2005
Messages
15
I have created a scoreboard, like this: (let say)
Event:
A unit dies

Condition
Owner of Dying unit is not equal to owner of killing unit.

Action
Set kills = kills + 1
Game Text Display: String (Name of Kiling unit) has pawn (Name of dying unit)

The condition i use is to ignore the calculation for the hero with Kaboom ability (suicide), which means when Kaboom hero casted kaboom n killed himself. This is not calculated as a kill.

But this condition seems doesnt work at all, even thought i tried with:
dying unit no equal to killing unit
unit type of dying unit not equal to killing unit.
triggering unit not equal to kiling unit.

I really have out of idea. Please help.
I Will give you credits in my map. (only 1)
Thanks. =)
if can, email me: [email protected]
 
Level 3
Joined
Jan 18, 2005
Messages
15
Thanks~!

-=Emergenzy=- said:
Event:
Unit - A unit Dies
:D
Conditions:
(Owner of (Dying unit)) Equal to Player 1 (Red)
(Unit-type of (Dying unit)) Equal to Goblin Sapper
(Killing unit) Not equal to No unit


Thanks so much~!!!

Finally i can release my latest version of dota. :p

This "Kiling unit not equal to No Unit" works to detect the goblin is suicide, but if in my 2nd trigger doesn't work well. Let say:

1st trigger:
Unit dies,

killing unit not equal to no unit
(so kaboom suicide not counted)

kills = kills +1
Game text: Name1 has pawned Name2's head.

2nd trigger:
Unit dies
killing unit equal to no unit

Game text: Someone has killed himself.

Once i use Goblin Sapper to kaboom a person,
The 2nd trigger's text also displayed. How to ignore that unless he suicide himself without killing anyone.

Just additional question. I already add ur name in my map credits.
:roll: :wink:
 
Status
Not open for further replies.
Top