- Joined
- Nov 29, 2006
- Messages
- 1,267
If a unit get killed by a locust by the locust swarm spell, is the killer the hero or the locust? I need to know cuz the "killing unit" condition.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Locust or Hero?

Events


Unit - A unit Dies

Conditions

Actions


Game - Display to (All players) the text: (THE KILLER + (Name of (Killing unit)))


Game - Display to (All players) the text: (THE DEAD + (Name of (Triggering unit)))
Trigger

Events


Unit - A unit Dies

Conditions

Actions


Set killer = (Killing unit)


Set Dieing = (Triggering unit)


Set Score[(Player number of (Owner of killer))] = (Score[(Player number of (Owner of killer))] + 1)


Game - Display to (All players) the text: ((Name of (Owner of killer)) + ( Pwned + (Name of (Owner of Dieing))))


Set killer = No Unit


Set Dieing = No Unit
Set killer[Player number of (Owner of (Killing unit))] = (Killing unit)
Set Dying[Player number of (Owner of (Killing unit))] = (Triggering unit)
To Make This One Mui
set Killer[player Number Of (owner Of (killing Unit))] = (killing Unit)
Set Dying[player Number Of (owner Of (killing Unit))] = (triggering Unit)
![]()
Locust

Events


Unit - A unit Dies

Conditions


(Unit-type of (Killing unit)) Equal to Locust

Actions


Game - Display to (All players) for 5.00 seconds the text: (Name of Hero[(Player number of (Owner of (Killing unit)))])
to make this one mui
Set killer[Player number of (Owner of (Killing unit))] = (Killing unit)
Set Dying[Player number of (Owner of (Killing unit))] = (Triggering unit)
![]()
Events

Unit - A unit spawns a summoned unit
Conditions

(Ability being cast) equal to Locust
Actions

Set _Integer = _Integer + 1

Set _Caster = (Triggering Unit)

Set _Unit = (Summoned Unit)

Unit - Set _Caster custom value to _Integer

Unit - Set _Unit custom value to _Integer

Set LocustCaster[_Integer] = _Unit
Set _Integer = Custom value of (Killing Unit)
easy
well if u have a map with alots of units, then dont display a message for each unit u kill
Trigger
Events
Unit - A unit Dies
Conditions
Actions
Custom script: local unit udg_killer
Custom script: local unit udg_Dieing
Set killer = (Killing unit)
Set Dieing = (Triggering unit)
Set Score[(Player number of (Owner of killer))] = (Score[(Player number of (Owner of killer))] + 1)
Game - Display to (All players) the text: ((Name of (Owner of killer)) + ( Pwned + (Name of (Owner of Dieing))))
Set killer = No Unit
Set Dieing = No Unit
![]()
Originally Posted by Ciebron
easy
well if u have a map with alots of units, then dont display a message for each unit u kill
Trigger
Events
Unit - A unit Dies
Conditions
Actions
Custom script: local unit udg_killer
Custom script: local unit udg_Dieing
Set killer = (Killing unit)
Set Dieing = (Triggering unit)
Set Score[(Player number of (Owner of killer))] = (Score[(Player number of (Owner of killer))] + 1)
Game - Display to (All players) the text: ((Name of (Owner of killer)) + ( Pwned + (Name of (Owner of Dieing))))
Set killer = No Unit
Set Dieing = No Unit
Learn when and how to use the local trick, or, better yet, learn JASS.