death by moogles
Member
I'm trying to make a help window, which displays actor 001's name and a variable, that displays on the map scene when called. I've tried a few things, but I just can't figure what I need to do. I made my scripting debut about ten minutes ago when I found ccoa's window tutorial.
I'd like for it to display the character's name, rather than just 'Name!' The switch is so that I can determine whether or not the window is displayed; I don't know any other way to do that.
I'd really appreciate it if any helping could detail how this is done. I don't want to have to ask for help in the future.
Thanks in advance!
EDIT: Also, I had it displaying the character's name before, but it wouldn't update when I changed the character's name, so I reverted it to how it is now. I guess I need to specify that the character's name changes frequently.
Code:
class Window_MapHelp < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 640, 64)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
$game_switches[69] = true
self.contents.draw_text(0, 0, 640, 32, "Name!", 1)
end
end
I'd like for it to display the character's name, rather than just 'Name!' The switch is so that I can determine whether or not the window is displayed; I don't know any other way to do that.
I'd really appreciate it if any helping could detail how this is done. I don't want to have to ask for help in the future.
Thanks in advance!
EDIT: Also, I had it displaying the character's name before, but it wouldn't update when I changed the character's name, so I reverted it to how it is now. I guess I need to specify that the character's name changes frequently.