hi,
I'm trying to use Japanese on this script, but it doesn't really let me write much on the description and the objectives part(one or two words each line. It causes an error if I write more than that). I realized one of the problem it has is the space. If I put the English space in between the Japanese letters, the script kind of works but not in a perfect way. If I use Japanese space in between them, the script says the sentence is too long even though the sentence is composed of two words. Is there any solution to this? Does it have something to do with the paragraph formatter?
Yeah, it's likely an error in the Paragraph Formatter. I will look into it when I can, but I'm in the middle of exams, so I probably won't gt around to it for a long long time
@Darkie: OK, it should be easy enough to fix.
Try this, perhaps:
# ========================================================================
# Omegas7's Menu Icons Script.
# ========================================================================
# Version: 2.0 (Final).
# ========================================================================
#
# Set icons for the commands in the menu command window.
#
# ========================================================================
#
# Edit the below module:
#
# MENU_ICONS[ID] = N
# Replace ID with the menu command window command option.
# Start counting from 0.
# 0 = First Option... 1 = Second Option...
# Replace N with the icon index.
#
# MENU_ICONS_SPACING_LEVEL is the amount of spaces before the
# command text, when higher, more space for the icon,
# when lower, less.
#
# MENU_ICONS_Y_INCREASE is the amount of Y screen position to
# increase for each line, by default is 24.
# Use it for adjusting the icons positions to fit the text.
#
# ========================================================================
module OMEGAS7
MENU_ICONS = [] # Don't edit this line.
MENU_ICONS[0] = 83 # First option has icon number 50.
MENU_ICONS[1] = 107
MENU_ICONS[2] = 26
MENU_ICONS[3] = 131
MENU_ICONS[4] = 112
MENU_ICONS[5] = 143
MENU_ICONS[6] = 143
MENU_ICONS[7] = 143
MENU_ICONS[8] = 143 # Sixth option has icon number 55.
MENU_ICONS_SPACING_LEVEL = 3 # 3 spaces before command text.
MENU_ICONS_Y_INCREASE = 24 # 24 pixels between each icon.
end
#==============================================================================
# ** Window Command Plus Icons
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Summary of steps taken to make compatible with Quest Journal:
# - changed super method to Window_Command, rather than Window_Selectable
# - removed overlap between this class and Window_Command
#==============================================================================
class Window_Command_Plus_Icons < Window_Command
include OMEGAS7
def initialize (width, commands, column_max = 1, row_max = 0, spacing = 32)
@space = ""
for i in 0..MENU_ICONS_SPACING_LEVEL.to_i
@space += " "
end
super (width, commands, column_max, row_max, spacing)
end
def draw_item(index, enabled = true)
command = @commands[index].dup
@commands[index] = @space + @commands[index]
super (index, enabled)
@commands[index] = command
draw_icon(MENU_ICONS[index],0,index * MENU_ICONS_Y_INCREASE)
end
end
It's the same thing, I just changed it around a little bit to have a different super class.
You will aso need to change a line in the quest journal. At around line 921, you should see:
@command_window = Window_Command.new(width, c)
change it to:
@command_window = @command_window.class.new(width, c)