Warcraft III resources & community, 2003–2006 · archived

the text that shows hero kill

7 posts
#1

the text that shows hero kill

can someone tell me the trigger for when a player kills another players hero. like "(name of player) just pwned (name of player's hero.
#2
    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)))))


http://img335.imageshack.us/img335/2844/dyingunit8fe.jpg
Be sure that u make a SPACE before and after 'just pwned'. Else you will get PlayerXjustpwnedPlayerX.
Gl & hf with it.
#3
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.
#4
HeaL
    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)))))


http://img335.imageshack.us/img335/2844/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
#5
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.
#6
Bump?
#7

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!