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

the text that shows hero kill

Status
Not open for further replies.
Level 2
Joined
Mar 22, 2006
Messages
14
Code:
    Events
        Unit - A unit Dies
    Conditions
        ((Dying unit) is A Hero) Equal to True
    Actions
        Game - Display to (All players) for 15.00 seconds the text: ((Name of (Owner of (Killing unit))) + ( just pwned  + (Name of (Owner of (Dying unit)))))

dyingunit8fe.jpg

Be sure that u make a SPACE before and after 'just pwned'. Else you will get PlayerXjustpwnedPlayerX.
Gl & hf with it.
 
Level 4
Joined
Dec 8, 2005
Messages
58
I think he wanted to display the text as... (PlayerName) has killed (Dying Heros Name) not (PlayerName) has killed (Player Name). I can't open my WE right now but the trigger for a Heros Name is in the same general area as a Players Name I think.
 
Level 4
Joined
Feb 27, 2006
Messages
49
HeaL said:
Code:
    Events
        Unit - A unit Dies
    Conditions
        ((Dying unit) is A Hero) Equal to True
    Actions
        Game - Display to (All players) for 15.00 seconds the text: ((Name of (Owner of (Killing unit))) + ( just pwned  + (Name of (Owner of (Dying unit)))))

dyingunit8fe.jpg

Be sure that u make a SPACE before and after 'just pwned'. Else you will get PlayerXjustpwnedPlayerX.
Gl & hf with it.


thanks heal you really healed me
 
Level 4
Joined
Sep 2, 2004
Messages
92
Just like to ask anothing thing for this thread--

How do you get it so the player's names are the color they are in game, instead of all white text. Like in DotA and stuff.
 
Level 8
Joined
Nov 20, 2005
Messages
372
Coloured Kill Text

There are many ways , theres one:

You first need a String Variable

Kill_Colour_String ( For example ) Array 12

IN the map initialisation you should do:

set Kill_Colour_String [ 1 ] = |cffff0000 << thats the colour for red.

etc for every player


Then you should set the colour in the text like:

Spiel - Display to (All players) the text: ((Kill_Colour_String[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r has killed + (Kill_Colour_String[(Player number of (Owner of (Dying unit)))] + ((Name of (Dying unit))))))) + |r !!!)

the |r ends the colour text effect

Hope this help you!
 
Status
Not open for further replies.
Top