Code:
class Advance_Window < Window_Base
def inititalize(x, y, column, row, items = ["A", "B"])
@column_max = column
@row_max = row
@cursor_pos = [0, 0]
@items = items
super(x, y, (96 * @column_max) , (@row_max * 64))
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.draw_text(0, 0, 32, 32, @column_max.to_s) #This line just tests if 'column' argument is passed or not
end
#some codes here.. but not important for this question
end
Then i made a new scene.. and I inserted script like this :
Code:
Advance_Window.new(0, 0, 4, 2)
Then I changed the script into this :
Code:
Advance_Window.new(0, 0, 120, 120)
It seems that the arguments were not passed into the variables I made in the script. How could this happen?
Sorry I'm still newb.
EDIT :
Umm.. nevermind I found it
its here 'def inititalize(x, y, column, row, items = ["A", "B"])'
close or delete this topic is okay