Warcraft III resources & community, 2003–2006 · archived

How to detect a unit not killed by KABOOM?

3 posts
#1

How to detect a unit not killed by KABOOM?

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]
#2
Event:
Unit - A unit Dies

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
#3

Thanks~!

-=Emergenzy=-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: