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

[Trigger] Hero kill message help

Status
Not open for further replies.
Level 3
Joined
Jan 5, 2008
Messages
26
Okay, so I want to make it so that when a player is killed by another player, a message is displayed. Something like, "(name of killing player/hero) has killed/pwned/whatever (name of killed player/hero)".

Problem is, I suck with triggers. Help and advice would be greatly appreciated. Thanks in advance
 
Level 7
Joined
Nov 19, 2007
Messages
253
Better try like this then you will see player name and his colour you need just make 2 triggers it 100% works on my map
  • Colours
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Set Colours[1] = |cffff0303
      • Set Colours[2] = |cff0042ff
      • Set Colours[3] = |cff1ce6b9
      • Set Colours[4] = |cff540081
      • Set Colours[5] = |cfffffc01
      • Set Colours[6] = |cfffe8a0e
      • Set Colours[7] = |cff20c000
      • Set Colours[8] = |cffe55bb0
      • Set Colours[9] = |cff959697
      • Set Colours[10] = |cff7ebff1
      • Set Colours[11] = |cff106246
      • Set Colours[12] = |cff4e2a04
and
  • Hero Dies
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Killing unit) belongs to an ally of (Owner of (Dying unit))) Equal to False
          • (Owner of (Killing unit)) Not equal to Neutral Hostile
        • Then - Actions
          • Game - Display to (All players) the text: (Colours[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + ( killed + (Colours[(Player number of (Owner of (Dying unit)))] + ((Name of (Owner of (Dying unit))) + (|r + ( and gets |cffffcc00 + ((String((100 + ((Level
          • Player - Add (100 + ((Level of (Dying unit)) x 10)) to (Owner of (Killing unit)) Current gold
        • Else - Actions
 
Status
Not open for further replies.
Top