The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > Research & Development
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

Research & Development Got a well-founded knack with ROM hacking? Love reverse-engineering the Pokémon games? Or perhaps you love your assembly language. This is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!
Research & Development programs in this forum are subject to moderator approval before they are displayed.

Reply
 
Thread Tools
  #1    
Old May 3rd, 2007, 01:03 PM
ZodiacDaGreat's Avatar
ZodiacDaGreat
Working on a Mobile System
 
Join Date: Feb 2007
Location: South Pacific
Age: 22
Gender: Male
Nature: Relaxed
Send a message via ICQ to ZodiacDaGreat
This Tutorial teaches you to make your texts colored in Ruby and Sapphire when you make a message script.

Scripting

Here are the codes for some colors:

\c\h01Ç - Blue
\c\h01Â - Green
\c\h01Á - Red
\c\h01È - Yellow

What you must do??

example

If you want a blue colored text, you must put the code in front of the text, like this

#org 0x800000
msgbox 0x800100
boxset 0x2
end

#org 0x800100
= \c\h01ÇHello World!

Experienced Scripters will understand this, if you don't get it feel free to email me.
Reply With Quote
  #2    
Old May 6th, 2007, 08:31 PM
ash2000's Avatar
ash2000
Beginning Trainner/Hacker
 
Join Date: May 2006
Location: South Pacific
Gender:
Nature: Calm
Thanks for posting it ZodiacDaGreat. it really help me.
__________________
Reply With Quote
  #3    
Old May 7th, 2007, 06:30 PM
Irish Witch's Avatar
Irish Witch
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 34
Gender:
Nature: Lonely
Send a message via AIM to Irish Witch Send a message via Yahoo to Irish Witch
? ? ?

If that really works then you should be able to modify the command database. Post a list of as many colours as you can. The lines you want to add to put colours into the database should go like this:

pkmadv/texttables.psh
addhash [red] ÀÁ ' 0102
addhash [green] ÀÂ ' 0103
addhash [blue] ÀÇ ' 0104
addhash [yellow] ÀÈ ' 0105

The second value is the character code taken from the text converters further down in the same file. The section of the document that looks like this:
Spoiler:

#addtext À &h01
#addtext Á &h02
#addtext  &h03
#addtext Ç &h04
#addtext È &h05
#addtext É &h06
.........

Not Sure how many colours you have their but with these lines added to your database you can write your colours like this:
= \c[blue]Hello World!

or even without the changes to the command database you can write the colours like this (example of blue):

= \cÀ\h03Hello World!

I'm not able to access my computer at the moment so I don't have access to my program.. Rinni has a copy so I'll try and get her to play with this and modify the command database. Note that the colours may vary between r/s/e and fr/lg.
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto

Last edited by Irish Witch; May 7th, 2007 at 06:36 PM.
Reply With Quote
  #4    
Old May 7th, 2007, 06:41 PM
marz's Avatar
marz
ô.o
Community Supporter
 
Join Date: Dec 2006
Location: Canada
Age: 22
Gender: Male
Nature: Relaxed
Very helpful, but how can you stop the code? Like for example:

You received the Running Shoes! Now you can run.

Doing it how you told us, it would come out like this:

You received the Running Shoes! Now you can run.

Or if it only applies to one word, it will come out like this:

You received the Running Shoes! Now you can run.
__________________
like competitive team fortress 2? check out my blog!

everlasting rivalry with murderface +
Reply With Quote
  #5    
Old May 7th, 2007, 06:54 PM
Irish Witch's Avatar
Irish Witch
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 34
Gender:
Nature: Lonely
Send a message via AIM to Irish Witch Send a message via Yahoo to Irish Witch
I would assume:
= \cÀ\h00The colour Black
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto
Reply With Quote
  #6    
Old May 7th, 2007, 07:00 PM
marz's Avatar
marz
ô.o
Community Supporter
 
Join Date: Dec 2006
Location: Canada
Age: 22
Gender: Male
Nature: Relaxed
Yeah, you're probably right. The "00" makes sense that it's black. I'd imagine something like FF being white.
__________________
like competitive team fortress 2? check out my blog!

everlasting rivalry with murderface +
Reply With Quote
Reply
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 01:07 AM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.