the text that shows hero kill

Status
Not open for further replies.
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.
 
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.
 
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
 
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.
 
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.
Back
Top