Uh, it's funny. The line 1172 is exactly handled if the @item_color is nil. Although I never see someone used (@item_color) == nil and if it actually works. How about changed it into @item_color.nil?
Blackmorning Scripts
RGSS3 Scripts (RMVX Ace)Hi mate, i delete all this section...
#--------------------------------------------------------------------------
# * Overwrite: Draw Text with Control Characters
#--------------------------------------------------------------------------
def draw_text_ex(x, y, text)
reset_font_settings
change_color(@item_color) unless @item_color == nil
text = convert_escape_characters(text)
pos = {:x => x, :y => y, :new_x => x, :height => calc_line_height(text)}
process_character(text.slice!(0, 1), text, pos) until text.empty?
end
and it worl but no change the color, I think isnt matter for my game but you know if thsi gonna make future problems for my game?
#--------------------------------------------------------------------------
# * Overwrite: Draw Text with Control Characters
#--------------------------------------------------------------------------
def draw_text_ex(x, y, text)
reset_font_settings
change_color(@item_color) unless @item_color == nil
text = convert_escape_characters(text)
pos = {:x => x, :y => y, :new_x => x, :height => calc_line_height(text)}
process_character(text.slice!(0, 1), text, pos) until text.empty?
end
and it worl but no change the color, I think isnt matter for my game but you know if thsi gonna make future problems for my game?
Well, of course it won't change the color. You deleted the important part. And no, I don't think it will cause future problem. Afaik, he overwrote the default function only to insert change color function. If you deleted that part, it would be back to default RM draw_text_ex function. Have you tried my suggestion though?
Yes i trie but give another problem, i try this:
def draw_text_ex(x, y, text)
reset_font_settings
change_color(@item_color) unless @item_color.nil
text = convert_escape_characters(text)
pos = {:x => x, :y => y, :new_x => x, :height => calc_line_height(text)}
process_character(text.slice!(0, 1), text, pos) until text.empty?
end
and it says "undefined method "nil" for nil: NilClass"
Edit: Do you think this happen maybe because problems with the font used?
def draw_text_ex(x, y, text)
reset_font_settings
change_color(@item_color) unless @item_color.nil
text = convert_escape_characters(text)
pos = {:x => x, :y => y, :new_x => x, :height => calc_line_height(text)}
process_character(text.slice!(0, 1), text, pos) until text.empty?
end
and it says "undefined method "nil" for nil: NilClass"
Edit: Do you think this happen maybe because problems with the font used?
You forgot to put question mark. It should be
Code:
@item_color.nil?
OOhh thanks it work!!
you are a god among us! jaja thanks a lot!
you are a god among us! jaja thanks a lot!
Does this plugin still exist? Is there such a plugin for MV?
The wait time is exceeded. I can't log in to the site. Maybe doesn't work in my region...
Original thread: https://forums.rpgmakerweb.com/threads/blackmorning-scripts.24109/