Chaos Project

RPG Maker => RPG Maker Scripts => RMXP Script Database => Topic started by: G_G on March 02, 2009, 11:25:02 pm

Title: [XP] Special Message Symbols
Post by: G_G on March 02, 2009, 11:25:02 pm
Special Message Symbols
Authors: game_guy
Version: 1.2
Type: Special Message
Key Term: Message Add-on



Introduction

You can type special message symbols with ease.


Features




Screenshots

Spoiler: ShowHide
(http://i307.photobucket.com/albums/nn318/bahumat27/message.jpg)



Script

Spoiler: ShowHide
#------------------------------------------------------------------------------#
#  Special Message Symbols
#      by: game_guy
#------------------------------------------------------------------------------#
=begin
Displays special message symbols. Recommended to use Blizz's tons of add ons font
override to increase teh size to 24-26. Its up to you.

\s = Smiley ☺
\u = Up arrow
\d = down arrow
\l = left arrow
\r = right arrow
\m = male sign
\f = female sign
\a = @ sign
\b = bullet
\i = infinity sign
\j = jewel/diamond
\x = displays player x
\y = displays character y



Just type thos message commands in a message box and it'll display the signs.
=end

class Window_Message < Window_Selectable
 alias refresh_special_symbols_later refresh
 def refresh
   if $game_temp.message_text != nil
     text = $game_temp.message_text
     begin
       last_text = text.clone
       text.gsub!(/\\[Ss]/) { "☺" }
       last_text = text.clone
       text.gsub!(/\\[Uu]/) { "▲" }
       last_text = text.clone
       text.gsub!(/\\[Dd]/) { "▼" }
       last_text = text.clone
       text.gsub!(/\\[Ll]/) { "◄" }
       last_text = text.clone
       text.gsub!(/\\[Rr]/) { "►" }
       last_text = text.clone
       text.gsub!(/\\[Mm]/) { "♀" }
       last_text = text.clone
       text.gsub!(/\\[Ff]/) { "♂" }
       last_text = text.clone
       text.gsub!(/\\[Aa]/) { "@" }
       last_text = text.clone
       text.gsub!(/\\[Bb]/) { "●" }
       last_text = text.clone
       text.gsub!(/\\[Ii]/) { "∞" }
       last_text = text.clone
       text.gsub!(/\\[Jj]/) { "◊" }
       last_text = text.clone
       text.gsub!(/\\[Xx]/) { $game_player.x }
       last_text = text.clone
       text.gsub!(/\\[Yy]/) { $game_player.y }
     end until text == last_text
   end
   refresh_special_symbols_later
 end
end




Instructions

Displays special message symbols. Recommended to use Blizz's tons of add ons font
override to increase teh size to 24-26. Its up to you.

\s = Smiley ☺
\u = Up arrow
\d = down arrow
\l = left arrow
\r = right arrow
\m = male sign
\f = female sign
\a = @ sign
\b = bullet
\i = infinity sign
\j = jewel/diamond

Just type thos message commands in a message box and it'll display the signs.

How to add your own symbols.
Go to this line

       text.gsub!(/\\[Jj]/) { "◊" }
       last_text = text.clone

Then press Enter and type this in

       text.gsub!(/\\[Symbol Shortcut here]/) { "symbol here" }
       last_text = text.clone

NOTE THE SYMBOL SHORTCUT CAN ONLY BE ONE LETTER. Example: Ss that way you can use \s or \S so choose a letter and type the lowercase and uppercase.
Also do not use these for teh shortcut
Nn
Vv
Cc
Gg

To get special symbols, go to
Start > All Programs > Accessories > System Tools > Character Map
Then select the symbol you want, press select, then copy, then paste it wherever.


Compatibility

Place below and custom message system. It wont mess up the message system but it prevents the message system messing this script up.


Credits and Thanks




Author's Notes

History
March 3rd, 2009 - Script Created and added a few special symbols.
March 3rd, 2009 - Added way to display X and Y of player

Give credits!!!
Title: Re: [XP] Special Message Symbols
Post by: Fantasist on March 02, 2009, 11:43:44 pm
Nice job! *powers up*
I see you're tinkering with the default scripts quite a lot lately. At this rate, you'll probably make something big :)
Title: Re: [XP] Special Message Symbols
Post by: G_G on March 03, 2009, 12:02:39 am
Thanks fantasist. Yea I have been tinkering with the default scripts. And still am too. Yea who knows what I will release next.
Title: Re: [XP] Special Message Symbols
Post by: Reno-s--Joker on March 03, 2009, 01:36:36 am
Lol, awesome work game_guy! :haha:
*powers up*
Title: Re: [XP] Special Message Symbols
Post by: G_G on March 03, 2009, 05:33:32 pm
Thanks, any ideas what symbols I could add?

Wait!!! *gets an idea* I'll post instructions on how to insert your own special symbols!!!!


Added how to add special symbols
Title: Re: [XP] Special Message Symbols
Post by: Landith on March 03, 2009, 05:42:45 pm
Looks pretty sweet, although I would suggest using different \ codes because it will overwrite any codes in the custom message system. I would suggest using the first 3 letters for each one too prevent this.

*Powers Up*
Title: Re: [XP] Special Message Symbols
Post by: Calintz on March 03, 2009, 06:17:37 pm
LMAO!! These are nifty!!