Jump to content
Darkness Void

rpg maker xp RPG Maker XP What Are These Color Codes?

Recommended Posts

I was looking at Pokémon Essentials (I got the free trail of XP to look at what it had) and I have a question that 3 of my friends could not answer. The below are taken from the engine (sadly the Pokémon Essentials' Wiki seemed to be gone, at least of this post) but for the life of me I can not figure out what they are.

 

       "<c2=7E105D08>",   # Blue
       "<c2=421F2117>",   # Red
       "<c2=43F022E8>",   # Green
       "<c2=7FF05EE8>",   # Cyan
       "<c2=7E1F5D17>",   # Magenta
       "<c2=43FF22F7>",   # Yellow
       "<c2=63184210>",   # Grey
       "<c2=7FFF5EF7>"    # White

I was looking around so I could add more colored text for when characters spoke (\b gives blue text while \r gives red) and figured it was tied to the above. But when we searched the codes don't yield any colors at all. One suggested it was code only RPG Maker used so....does it?

The question - What form of code are those colors and how can I add more? Further more when I used \c[5] I got pink text?

Share this post


Link to post
Share on other sites

Can you upload the script so we can take a look at it?

The pokemon essential website is down and most link are just redirect from there.

 

For your last question, \c[5] refers to the 6th color on game window picture, which in this case I believe that's pink.

Edited by Black Mage

Share this post


Link to post
Share on other sites

My bad, the window picture that I mentioned don't exist on XP, it seems. The one in XP didn't have those color inside them. So, instead of referencing to the window picture, they have the color list listed inside the script.

Here's the color list:

    case n
    when 0
      return Color.new(255, 255, 255, 255)
    when 1
      return Color.new(128, 128, 255, 255)
    when 2
      return Color.new(255, 128, 128, 255)
    when 3
      return Color.new(128, 255, 128, 255)
    when 4
      return Color.new(128, 255, 255, 255)
    when 5
      return Color.new(255, 128, 255, 255)
    when 6
      return Color.new(255, 255, 128, 255)
    when 7
      return Color.new(192, 192, 192, 255)
    else
      normal_color
    end

The color is the one inside the brackets, with RGBT format, with T for transparency. "n" is the one that you put in the bracket, \c[n]. "normal_color" is white, I believe. (I might wrong like the last time, though) :P

I'm sure you could just expand those value and add your desired color in.

 

BTW, I also took a look at the script. The "color" stuff you mentioned above is used on getSkinColor method, but the method is not used anywhere inside the script that you gave. Are you sure that's the whole script?

Edited by Black Mage

Share this post


Link to post
Share on other sites

@Black Mage

Yes. But I'll link the engine so you can look. The ".2" I was told is a patch but I don't see it. Anyways all the scripts are in there. And where is that color list located at exactly?

http://www.mediafire.com/file/zlm5nc157dfpviw/Pok%C3%A9mon_Essentials_v17_2017-08-27.zip/file

http://www.mediafire.com/file/nhheoxg6ur2cop0/Pok%C3%A9mon_Essentials_v17.2_2017-10-15.zip/file

 

Share this post


Link to post
Share on other sites

Your file got taken down, it seems. Perhaps next time you upload the essential project, you should obscure the filename into something weird or unreadable at all. 🤣

 

The color list is on Window Base if you search it on a fresh project.

Edited by Black Mage

Share this post


Link to post
Share on other sites

@Black Mage

They seem to be up for me..

And I see. Well Coloring the text shouldn't be hard to figure out but I just can't locate how to do it with this.

EDIT: I reuploaded the files with a different name.

 

http://www.mediafire.com/file/o2gbmj0uh7oeb30/Poke_Digimon.7z/file

Edited by Darkness Void

Share this post


Link to post
Share on other sites

I figured it out! Well, actually no. I still have no idea what "<c2=7E105D08>", is, but thanks to the below link I learnt that simply replacing the code with HEX, I can easily add and edit each text color.

 

I thank you guys for trying to help! I might've ruined the script if I tried editing blind. >_>

 

https://reliccastle.com/resources/152/

Share this post


Link to post
Share on other sites

Glad that you got it worked out.

Anyway, for studying purposes:

Quote

<c=X> ... </c>

Color specification.  A total of four formats are supported:
RRGGBBAA, RRGGBB, 16-bit RGB, and Window_Base color numbers.

 

<c2=X> ... </c2>

Color specification where the first half is the base color and the second half is the shadow color.  16-bit RGB is supported.


<c3=B,S> ... </c3>

Color specification where B is the base color and S is the shadow color.  B and/or S can be omitted.  A total of four formats are supported:
RRGGBBAA, RRGGBB, 16-bit RGB, and Window_Base color numbers.

 

Edited by Black Mage

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×