| View previous topic :: View next topic |
| Author |
Message |
Yohohobabee Novice Forum Tart

Joined: 04 Jun 2006 Posts: 15
|
Posted: Sun Jun 04, 2006 8:32 pm Post subject: Change the Color of Text |
|
|
I thought that this might belong under tricks....How do you change the color of your text in your news for anything? ( ex. Shop, rooms in house....)
I was just wondering and couldn't find any awnsers!
Thank ye...
Yohohobabee _________________ Yarrrrrgggg |
|
| Back to top |
|
 |
andi_kan Solid Forum Tart

Joined: 12 Nov 2005 Posts: 167 Location: Malaysia
|
Posted: Sun Jun 04, 2006 11:39 pm Post subject: |
|
|
News on stalls, homes and ships employ HTML coding.
To change font colour, use the <FONT COLOR=#rrggbb> tag where rrggbb is the hex code for your colour. You may instead use the actual name of the colour, provided that the colour is recognised.
Example:
<FONT COLOR=#ff0000>Red</FONT> _________________ Andikan
............
You do not need to see a miracle to believe;
Merely believing without seeing, is in itself a miracle. |
|
| Back to top |
|
 |
teal Broad Forum Tart

Joined: 18 Dec 2005 Posts: 110
|
Posted: Sun Jun 04, 2006 11:46 pm Post subject: |
|
|
It uses RGB in order to get colors.
<font color = insert font color here> Write your message here </font>
Example 1 Red
<font color = FF0000> This is supposed to be red. </font>
Example 2 Lime
<font color = 00FF00> This is supposed to be lime. </font>
Example 3 Blue
<font color = 0000FF> This is supposed to be blue. </font>
Example 4 Yellow
<font color = FFFF00> This is supposed to be yellow. </font>
Ummm...if you are used to the RGB system (I really don't remember the name), then its the same thing. If not.. I will attempt to explain it.
Every color (in this case additive colors such as in lights rather than subtractive colors such as in paint) is made up of different amounts of Red, Green and Blue light. Knowing how much of each color to add in order to get specific colors is the trick. By adding different amounts of red, green and blue, you can get your basic colors, and different shades of them.
In the real world, we count from 0-9 and then repeat using those digits. 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 <--- repeat of 1 and 0.
In the computer world, computers live in a hexidecimal (hexi- comes from the prefix hexa which means 6, deci- comes from the root deca which means 10. Add them up and you get 16) So computers count from 0-9 and then A-F and repeat using those digits. 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, 10 <---- repeat of 1 and 0 again (but this would equal to 16 in the human world). So the largest computer number using two digits would be FF and this would be equal to 255 in the computer world. The reason for this is because computers are able to display more shades of colors this way using two digits. Humans can only show 100 different shades (0-99) while computers can have 256 different shades (0-255).
Now the reason why I am telling you all of this. Colors are displayed using the hexidecimal numbering system. Each color is represented using 6 digits. The first two digits stand for the shade of red, the second is green and the third is blue.
This is where the <font color = ~~~~~~> comes in
The first two numbers represent how dark of a red color you want.
......................| |............................
......................vv............................
<font color = 220000> Message here </font>
The third and fourth number is how much green you add to it, and 5 and 6 are how much blue. Remember that 00 means that you dont add any color to it, and the maximum is FF, which means its the full shade or that color. So a 000000 would give you black, since you add no color light at all. No light = darkness = black. The maximum FFFFFF would give you white, because you are adding all the possible light. Ummm also, 80 is half of the maximum, which is why you will see it in the examples I list out
Ummm....if you are still confused, ill list some colors out for you. XD
FF0000 = Red
800000 = Maroon
FFFF00 = Yellow
00FF00 = Lime
008000 = Green
008080 = Teal
00FFFF = Cyan
0000FF = Blue
000080 = Navy
FF00FF = Magenta
800080 = Purple
808080 = Olive
000000 = Black
808080 = Gray
FFFFFF = White
Teal |
|
| Back to top |
|
 |
kusje Weighty Forum Tart
Joined: 20 Jan 2006 Posts: 247
|
Posted: Mon Jun 05, 2006 12:06 am Post subject: |
|
|
| Just type font color=red. That works too! |
|
| Back to top |
|
 |
Yohohobabee Novice Forum Tart

Joined: 04 Jun 2006 Posts: 15
|
Posted: Mon Jun 05, 2006 4:57 am Post subject: |
|
|
Thanks so much guys!
See ya on the game...
Yohohobabee  _________________ Yarrrrrgggg |
|
| Back to top |
|
 |
hharadore Neophyte Forum Tart

Joined: 22 Dec 2005 Posts: 48
|
Posted: Mon Jun 05, 2006 6:35 am Post subject: |
|
|
For editing news, btw, I find this a useful bit of code...
<font color=blue><u>[more...]</u></font>:
[more...] |
|
| Back to top |
|
 |
Justix Narrow Forum Tart

Joined: 18 Jan 2006 Posts: 87 Location: Paris, France
|
Posted: Mon Jun 05, 2006 11:25 am Post subject: |
|
|
Now I'll add a secret trick about the <font color=xxx> tag. As some may have noticed, there is no item in shop/stall to share a piece of information that will be viewable/modifiable by managers only, and that is annoying when you want to coordinate actions between many managers who not always meet.
But with <font> there is a solution. Just write :
<font whatever secret message you want>
and since the game consider that this is used to describe a font, and despite the fact that the tag is not a real color description, the secret message won't be displayed at all in the news for anyone.
The only way to read it will be to edit the news (something that only managers can do) and then it can be used to share information, like stuff waiting somewhere to be delivered.
Hope it helps and it be clear.
Justix _________________ Beware : I sometime forget a negation in my sentences, making them mean the opposite of what I want to say. |
|
| Back to top |
|
 |
andi_kan Solid Forum Tart

Joined: 12 Nov 2005 Posts: 167 Location: Malaysia
|
Posted: Tue Jun 06, 2006 2:39 am Post subject: |
|
|
| teal wrote: |
... a bunch of gibberish that made sense ... |
Now, all that's left to do is to find a publisher and you can make millions (of PoE).
Just an addition that you may indeed ditch the RRGGBB system in favour of conventional colour names, but not all colours are recognised this way. Even seemingly popular colours like Orange, Brown and Grey (some people spell it Gray) are not recognised, so it's much easier to just use the RRGGBB system.
Now for my question:
Is there any way to use tables for stall or portrait formatting? The standard HTML tags for tables do not work... _________________ Andikan
............
You do not need to see a miracle to believe;
Merely believing without seeing, is in itself a miracle. |
|
| Back to top |
|
 |
teal Broad Forum Tart

Joined: 18 Dec 2005 Posts: 110
|
Posted: Tue Jun 06, 2006 3:39 am Post subject: |
|
|
If standard tags dont work, I doubt that YPP has it built in. Ummm...also...isnt there a way to comment code. I cant remember for the life of me what it is in html...its something really funky like <!--blah blah --!> or something like that. Nothing close to standard in any other language. I doubt itll work in YPP land either, but doesn't hurt to try.
Teal |
|
| Back to top |
|
 |
deeg Apprentice Forum Tart

Joined: 17 Sep 2005 Posts: 73 Location: San Antonio, TX
|
Posted: Tue Jun 06, 2006 6:25 am Post subject: |
|
|
its just <!-- comments --> _________________ The North - clean, friendly, fun and ruling the ocean  |
|
| Back to top |
|
 |
deeg Apprentice Forum Tart

Joined: 17 Sep 2005 Posts: 73 Location: San Antonio, TX
|
Posted: Tue Jun 06, 2006 6:26 am Post subject: |
|
|
| andi_kan wrote: | | Is there any way to use tables for stall or portrait formatting? The standard HTML tags for tables do not work... |
A long time ago I asked an OM about that (and offered a table parser too) but they said no. Might have had something added since then? _________________ The North - clean, friendly, fun and ruling the ocean  |
|
| Back to top |
|
 |
Birchle Neophyte Forum Tart

Joined: 14 Mar 2006 Posts: 45 Location: NH
|
Posted: Tue Jun 06, 2006 7:44 am Post subject: |
|
|
The vast majority of HTML coding is disabled in YPP, something about not wanting people going overboard and/or the various not so nice things HTML can be coded to do. Not sure why tables would be bad, but I'd imagine it somehow falls under the same category as all the rest.
And as far as grey/gray not being a recognized color... One of the spellings is, I don't remember which. I think that color list that Teal included, though, is the list of colors that YPP recognizes by name, rather than needing a code -- I went testing all the various colors I could think of at one point, and those look like the ones that worked. I later found out that it's actually a standard basic HTML color list, whatever it was called, and as things got more complex, there were more colors that could be recognized by name. The things curiousity makes you google...  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|