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

do you know how this message is made?

Status
Not open for further replies.
Since the question is only about how the Player1 kills player2 message:

First, each hero is saved in an array using the player number then just make a trigger that handles Unit Dies event, condition would be dying unit is a hero

then on the actions just do

tmpP1 = Player number of triggering player
tmpP2 = Player number of owner of killing unit
Show text - Player Name of tmpP2 + ( + Name of hero (get from array) + ) + pawns + Player Name of tmpP1 + ( + Name of hero (get from array) + )
 
Level 6
Joined
Nov 5, 2013
Messages
132
It's easy :), you can change the name of player to Name(Hero), example:

  • Player - Set name of Player 1 (red) to ((Name of Player 1 (red)) + (( + ((Name of Hero)) + ))))
  • Set PlayerName[1] = (Name of Player 1 (red))
  • Player - Set name of Player 2 (blue) to ((Name of Player 2 (blue)) + (( + ((Name of Hero)) + ))))
  • Set PlayerName[2] = (Name of Player 2 (blue))
And make the message:

  • Game - Display to (All players) the text: (PlayerName[(Player number of (Owner of (Killing unit)))] + ( pawns + PlayerName[(Player number of (Triggering player))]))
NOTE: when you save the player name it don't save the colour so you need search the colours of players and remplace the last variable mentioned to:

  • Set PlayerName[1] = (|c00FF0000 + (Name of Player 1 (red)))
You finish, this is the text:

Severalser pawns PurgeandFire
 
Ok thanks I did it! now I want to ask if I want to store the kill combos of the heroes will they work with ARRAY INTEGER or not?(the heroes are 12) like.. every time a hero kills a hero to increase its combo integer +1 in the array and on some number to display a message for double, triple kill... and when the unit dies to set integer value back to 0
 
Level 6
Joined
Nov 5, 2013
Messages
132
Look this:

  • COMBOS
    • Events
      • Unit - A unit Dies
    • Condition
      • ((Triggering unit) is A hero) Equal to True
    • Actions
      • Set ComboPoints[(Player number of (Owner of (Killing unit)))] = ComboPoints[(Player number of (Owner of (Killing unit)))] + 1)
      • Set ComboPoints[Player number of (Owner of (Triggering unit)))] = 0
      • If (All conditions are True) then do (Then Actions) else do (Else Actions)
        • If: Conditions
          • ComboPoints[(Player number of (Owner of (Killing unit)))] Equal to 3
        • Then: Actions
          • Set Combo[(Player number of (Owner of (Killing unit))] = |c0000FF00Killing Spree|r
          • Sound - Play Killing_Spree <gen>
          • Game - Display to (All players) the text: PlayerName[(Player number of (Owner of (Killing unit)))] + ( kill + (PlayerName[(Player number of (Owner of (Triggering uniy))] + ( and has + Combo[(Player number of (Owner of (Killing unit)))]))))
Message:

Severalser kill PurgeandFire and has Killing Spree
 
Status
Not open for further replies.
Top