I have a problem. If someone would be nice enough to help me that would be great. I changed the code instead of saying Help_Window which was the default one. I wanted to change it to mine. Which is Destiny Window. When I did it didn't work. Please help the code is
#_________________________________________________
# MOG_STYLED_INFO V1.0
#_________________________________________________
# By Moghunter
# http://www.atelier-rgss.com
#_________________________________________________
# Em combate apresenta a janela de Help com
# movimento e layout.
# É necessário ter a imagem HELP_WINDOW.PNG dentro
# da pasta Graphics\Windowskin.
#_________________________________________________
module MOG
#Definição do tempo de exposição.
DESTINY_TIME = 5
#Definição da cor do texto.
DESTINY_FONT_COLOR = Color.new(255,255,255,255)
#Definição do tamanho do texto.
DESTINY_FONT_SIZE = 24
#Definição do nome da fonte.
DESTINY_FONT_NAME = "Georgia"
end
#_________________________________________________
$mogscript = {} if $mogscript == nil
$mogscript["Styled Info"] = true
###############
# Window Base #
###############
class Window_Base < Window
def nd_helpic
Destiny_pic = RPG::Cache.picture("")
end
def draw_help_pic (x,y)
Destiny_pic = RPG::Cache.picture("Destiny_Window") rescue nd_Destinypic
cw = Destiny_pic.width
ch = d=Destiny_pic.height
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(x , y - ch, Destiny_pic, src_rect)
end
end
######################
# Window_Active_Destiny #
######################
class Window_Active_Destiny < Window_Base
def initialize
super(0, 0, 640, 100)
self.contents = Bitmap.new(width - 32, height - 32)
self.opacity = 0
end
def set_text(text, align = 0)
if text != @text or align != @align
self.contents.clear
draw_destiny_pic(105,60)
self.contents.font.size = MOG::DESTINY_FONT_SIZE
self.contents.font.name = MOG::DESTINY_FONT_NAME
self.contents.font.color = MOG::DESTINY_FONT_COLOR
self.contents.draw_text(4, 10, self.width - 40, 32, text, align)
@text = text
@align = align
end
self.visible = true
end
end
################
# Scene_Battle #
################
class Scene_Battle
include MOG
alias mog51_main main
def main
@active_window_Destiny = Window_Active_Destiny.new
@active_window_Destiny.visible = false
@active_window_Destiny.y = -100
@active_window_Destiny.contents_opacity = 255
@win_time_Destiny = 0
mog51_main
@active_window_Destiny.dispose
end
alias mog51_update update
def update
mog51_update
if @win_time_Destiny > 0
@win_time_Destiny -= 1
end
if @party_command_window != nil
@active_window_Destiny.visible = false if @party_command_window.visible == true
end
if @Destiny_Window.visible == true
@active_window_Destiny.visible = false
end
if @active_window_Destiny.y < 0
@active_window_Destiny.y += 10
elsif @active_window_Destiny.y >= 0
@active_window_Destiny.y = 0
end
if @active_window_Destiny.contents_opacity > 0 and @win_time_Destiny <= 0
@active_window_Destiny.contents_opacity -= 5
elsif @active_window_Destiny.contents_opacity <= 0
@active_window_Destiny.contents_opacity = 0
@active_window_Destiny.visible = false
end
end
alias mog51_make_basic_action_result make_basic_action_result
def make_basic_action_result
mog51_make_basic_action_result
if @active_battler.current_action.basic == 1
@destiny_window.visible = false
@active_window_Destiny.visible = true
@active_window_Destiny.y -= 100
@win_time_Destiny = 10 * DESTINY_TIME
@active_window_Destiny.contents_opacity = 255
@active_window_Destiny.set_text($data_system.words.guard, 1)
end
end
alias mog51_make_skill_action_result make_skill_action_result
def make_skill_action_result
mog51_make_skill_action_result
if @phase4_step == 1
return
end
@Destiny_Window.visible = false
@active_window_Destiny.visible = true
@active_window_Destiny.y -= 100
@win_time_Destiny = 10 * DESTINY_TIME
@active_window_Destiny.contents_opacity = 255
@active_window_Destiny.set_text(@skill.name, 1)
end
alias mog51_make_item_action_result make_item_action_result
def make_item_action_result
mog51_make_item_action_result
if @phase4_step == 1
return
end
@destiny_window.visible = false
@active_window_Destiny.visible = true
@active_window_Destiny.y -= 100
@win_time_Destiny = 10 * DESTINY_TIME
@active_window_Destiny.contents_opacity = 255
@active_window_Destiny.set_text(@item.name, 1)
end
alias mog51_start_phase5 start_phase5
def start_phase5
mog51_start_phase5
@active_window_Destiny.visible = false
end
end
I'm not sure what to do now. I feel like I've tried everything.