This might sound extremely stupid, but I have two problems with some minor scripts of mine. First of all, everytime I try to change a global variable using the script event command, nothing happens. Say, if I want to disable a type of CMS, I make a method and enclose it in an if statement asking whether an already defined boolean (CMS_ENABLED?) is true. Now, the script is fine, that I know, but when I use a script from an event in the game saying
CMS_ENABLED? = false
the switch doesn't change, apparently, because the CBS is still enabled. Note that this is a rhetorical situation, I have no idea why anyone would want to disable the entire CMS.
Secondly, what's the problem with this code? I placed it above Main, it makes some changes with the message class. Every time I run it, it keeps interpreting * or + as an undefined method. Am I doing anything right at all?
#----------------------------------------------------------------------------
# Message Adjustment
#----------------------------------------------------------------------------
# Making the message window dynamically adjustable according to the text
#----------------------------------------------------------------------------
class Window_Message < Window_Selectable
def initialize
@mes_width = (@row_max * 32) + 50
@mes_height = (@column_max * 32) + 50
@mes_x = 80 - mes_width / 2
@mes_y = 304 - mes_height / 2
super(@mes_x, @mes_y, @mes_width, @mes_height)
self.contents = Bitmap.new(width - 32, height - 32)
self.visible = false
self.z = 9998
@fade_in = false
@fade_out = false
@contents_showing = false
@cursor_width = 0
self.active = false
self.index = -1
end
end