[XP] colorfy actors' name in message window

Started by Diamond Star, August 28, 2012, 07:01:39 pm

Previous topic - Next topic

Diamond Star

August 28, 2012, 07:01:39 pm Last Edit: August 28, 2012, 07:10:57 pm by cometstar
I want a script can colorfy actors' names whenever they are shown in message window
with color I specify and can change , and also ,if it can , I want to specify a group or
array of words to be colored with specific color defferent from the actors' names' color
whenever they are shown in message window too ..and thanks for this Perfect Site.
I have many dreams and look for who understand me and help me to achieve them

Blizzard

The color command for the message box is \c[NUMBER] where NUMBER ranges from 0 to 6 (if I remember right). Just use it like this:

Hello, \c[1]this\c[0] word is blue.


\c[0] is white
\c[1] is blue
\c[2] is red
\c[3] is green

I don't remember the rest. ._.;
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

stripe103

August 29, 2012, 10:18:08 am #2 Last Edit: August 29, 2012, 01:54:46 pm by stripe103
Google does :)

0= White
1= Blue
2= Red
3= Green
4= Cyan
5= Magenta
6= Yellow
7= Grey

Boba Fett Link

You can also click the ? box in the input text window and then click in the text field. It will show you all the other stuff you can do with text, too.
This post will self-destruct in 30 seconds.

Blizzard

Quote from: stripe103 on August 29, 2012, 10:18:08 am
Google does :)

0= White
1= Blue
2= Red
3= Green
4= Cyan
5= Magenta
6= Yellow
7= Grey


Fixed.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Boba Fett Link

Yes, because Magenta and Purple are completely opposite colors. :V:
This post will self-destruct in 30 seconds.

stripe103

Fixed the original too :)
I agree that Magenta and Purple is quite different, but it wasn't me that wrote it. It was some random guy on the Neoseeker webpage or whatever it was..
It's really kinda wierd. People that are dealing with game making and such, usually can get even a bit annoyed when people say purple instead of magenta.
"Normal" people don't care :)

Quote from: Boba Fett Link on August 29, 2012, 11:03:16 am
You can also click the ? box in the input text window and then click in the text field. It will show you all the other stuff you can do with text, too.

Or just click F1 in that dialog.

Diamond Star

Thank you but this is not my request
I want actors' names to be clorified with special color whenever they are shown
in message window automatically , in addition to a group of words I specify
with another color
I have many dreams and look for who understand me and help me to achieve them

Boba Fett Link

August 29, 2012, 07:33:01 pm #8 Last Edit: August 30, 2012, 12:24:54 pm by Boba Fett Link
...

I don't see why you need to do it automatically. Its not like you can't just type \c[5]\N[1]\c[0]. Pretty simple.

I mean, every time the actor's name is in a message window you'd have to type it anyway. So its really not much more trouble to type the above.

The actor's name color is Magenta, not purple. Understand?
This post will self-destruct in 30 seconds.

LiTTleDRAgo

in Window_Message, find this line

Quote
      text.gsub!(/\\[Nn]\[([0-9]+)\]/) do
        $game_actors[$1.to_i] != nil ? $game_actors[$1.to_i].name : ""
      end


change it to

Quote
      text.gsub!(/\\[Nn]\[([0-9]+)\]/) do
        $game_actors[$1.to_i] != nil ? "\\c[1]" + $game_actors[$1.to_i].name + "\\c[0]" : ""
      end


now, everytime you using \n[1], \n[2], etc in dialog, it will automatically colored

Diamond Star

Thank for your answer
I will try it ,and I think this is it
I need it in my priject ,so thank you
I have many dreams and look for who understand me and help me to achieve them