Hi!
So i've made this (not so) little script that will colour the chat thanks to the DMFI, how can you use it? Read below!
============================================================================
Usage
First, import the erf, it contains the required scripts, two are from the DMFI and _int_color_text_.... Well, can't rembember where did I got it and it dosn't have any kind of credits, so if it's yours ping me and i'll change this part! Well, going back to what it matters, after you import everything you can replace the OnPlayerChat script with mine or copy the part that we all are here for. So, when you come to that wall of spanish text, just ignore it, my team wanted to know what i did and it just tells that.
The only thing that you need to know is that my script remembers what type ("tipo" in spanish) of text you were writing so it can go back to the right color when a type ends. Besides if differences if the talking PC is male or female, so, what do you have to do to change the colors?
Find every line that says
"letra = ColorText("color", letra);"
You have to change color for whatever you want it to be. How to know where the male or female goes? Well, look at
"if (GetGender(oShouter) != GENDER_MALE)"
First comes ladies, then gentlemans.
Last, i used * // and () to difference what kind of text the player was writing, right now (for males) it looks like this *Text!* //Text! (Text!), and for change them just open _int_color_text_, there you can find all possible colours!
============================================================================
I'm kind of new to this, so i hope that it works well, definitly i could compact that long code a little more, but well, i'm lazy
Attachment | Size |
---|---|
![]() | 14.99 KB |
![]() | 5.81 KB |
Ey! Dafena, cuando abres el erf en un módulo versión 1.69 del NwN normal, parece que te pide actualizar.
Vara, ¿Cómo estás?
Mira, el problema es porque el script lo escribí en la EE. Si tienes la EE podrás importar el .erf para luego copiar y pegar el código en donde gustes. Si no es así, puedes descargar la nueva opción que añadí, en éste 7z están los scripts en TXT, simplemente copia y pega el texto y crea nuevos con el mismo nombre que los archivos!