[XP] Special Message Symbols

Started by G_G, March 02, 2009, 11:25:02 pm

Previous topic - Next topic

G_G

March 02, 2009, 11:25:02 pm Last Edit: November 29, 2010, 03:29:38 am by Blizzard
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


  • Display cool special sybmols! ☺▲▼◄►♀♂@●∞◊ will be displayed in the message box in game



Screenshots

Spoiler: ShowHide



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


  • game_guy for making the script



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!!!

Fantasist

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 :)
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)


The best of freeware reviews: Gizmo's Freeware Reviews




G_G

Thanks fantasist. Yea I have been tinkering with the default scripts. And still am too. Yea who knows what I will release next.


G_G

March 03, 2009, 05:33:32 pm #4 Last Edit: March 03, 2009, 05:42:48 pm by game_guy
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

Landith

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*

Calintz