I wanted to rework the original message window from RPG Maker VX, adding new functions like the existing \v[xx] for showing variables.
~New functions are: (with example pictures)~
\i[X] displays item with ID "X" \w[X] displays weapon with ID "X" \a[X] displays armor with ID "X" \s[X] displays skill with ID "X"
Display Item
\h[text] displays header with "text" (like the speaking person's name
Display header
\sym[X] displays symbol with ID "X" \spc[X] adds an X-pixel whide white space
Display icon and whitespace
Infos on using the header ( \h[] ) This header is mainly to display a persons name on top of the text. You can combine it with \n to display (also \v is possible), for example to display the name of Charakter 3 (that would be: \h[\n[3]:])
~Please read:~
This script isn't fully tested. If you find bugs, post here. If you have requests on new functions also write here (for example displaying a characters class name). Also I haven't put much time into the adjusting of windows and text, so if you want to have it rearranged or constants to set the header window position, write here.
~Script:
Script by dah0rst
#======================================================================= == ===== # ** Extended_Window_Message by dah0rst #------------------------------------------------------------------------------ # New functions: # \i[X] displays item with ID "X" # \w[X] displays weapon with ID "X" # \a[X] displays armor with ID "X" # \s[X] displays skill with ID "X" # # \h[text] displays header with "text" (like the speaking person's name # \sym[X] displays symbol with ID "X" # \spc[X] adds an X-pixel whide white space #==============================================================================
class Window_Message < Window_Selectable
alias convert_special_characters2 convert_special_characters def convert_special_characters convert_special_characters2 @text.gsub!(/\\I\[([0-9]+)\]/i) { "\x11[#{$1}]" } @text.gsub!(/\\W\[([0-9]+)\]/i) { "\x12[#{$1}]" } @text.gsub!(/\\A\[([0-9]+)\]/i) { "\x13[#{$1}]" } @text.gsub!(/\\S\[([0-9]+)\]/i) { "\x14[#{$1}]" } @text.gsub!(/\\SYM\[([0-9]+)\]/i) { "\x15[#{$1}]" } @text.gsub!(/\\SPC\[([0-9]+)\]/i) { "\x16[#{$1}]" } @text.slice!(/\\H\[([0-9A-Za-z_]+)\]/i) if $1!=nil or $1.to_s != "" $game_temp.header=$1.to_s @head_window.open p $game_temp.header end end