Author Topic: Kill Icon String on Death  (Read 2288 times)

What do you mean "getting" it? Do you mean getting the icon itself or getting the icon from the message when someone dies?
getting the icon from the message while using hide kills at the same time

If you look at the code that I posted earlier, that will get the death message.

If you look at the code that I posted earlier, that will get the death message.
it doesn't work when hide kills is enabled

is !== a thing or do you mean !=

I wouldn't be surprised if this is some basic syntax everyone else knows and I somehow don't

Don't worry, A !== B is not a thing. What that's literally saying is [A] [not] [equals] [B] (A ! == B), which makes no sense.
A != B on the other hand means [A] [does not equal] [B], which does.

bump I still need help :|

export("*") shows a number of interesting globals. For now, look at $DeathMessage_Murder1. Notice that it shows up as \c045 or something similar. That is actually the output of expandEscape(), converting a colour code into \c0, and a tagged string into 45.

dumpConsoleFunctions() reveals

   virtual string getTaggedString(int tag) {}
   virtual string buildTaggedString(string format, ...) {}

The first one would get the raw text, the second would get a proper death message if you also give it the two player names as extra parameters.


There is probably a Very Good Reason that the server sends the player names seperately, though... (I would guess that network efficiency is at least part of it)