View Single Post
Old 10-26-2009, 03:00 PM   #2 (permalink)
Registered User MortAr-
Expanding the Universe
 
MortAr-'s Avatar
 
Join Date: Feb 2009
Posts: 780
MortAr- is a jewel in the rough (166)
Exp
Events
Unit - A unit Dies
Conditions
((Killing unit) is A Hero) Equal to True
(Owner of (Triggering unit)) Not equal to (Owner of (Killing unit))
And - Any (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Footman
(Unit-type of (Triggering unit)) Equal to Rifleman
Actions
Set Exp = (Random integer number between 30 and 140)
Game - Display to (Player group((Owner of (Killing unit)))) for 3.00 seconds the text: (You gained |cffffcc00 + ((String(Exp)) + |r for killing this unit.))
Hero - Add Exp experience to (Killing unit), Show level-up graphics

Otherwise, create multiple IF/THEN/ELSE handles for every unit, or multiple trigger for every unit.
MortAr- is offline   Reply With Quote