所以说大哥,你能把syntaxerror得那个错误给贴上来么?它应该提示了第几行得好吧? |
@fade_in = true 这个藐视是对话框吧? 首先$game_system[1] 是神马? 永远也执行不了吧。。语法错误,表示没有此数据 你应该表达的就是系统框,随便你喜欢用什么方法,变量或则开关都行, if $game_system[1] 改成 if $game_switches[1] self.x = 160 self.y = 304 self.opacity = 0 $game_switches[1] = false return end 开关1为开的时候 |
完全不懂脚本的路过。 |
最后一个end去掉 |
试过了,把190那行改成else 执行脚本时发生 syntaxError. 脚本如下: def reset_window if $game_system[1] self.x = 160 self.y = 304 self.opacity = 0 return end self.x = 80 if $game_temp.in_battle self.y = 16 else case $game_system.message_position when 0 # 上 self.y = 16 when 1 # 中 self.y = 160 when 2 # 下 self.y = 304 end end if $game_system.message_frame == 0 self.opacity = 255 else self.opacity = 0 end self.back_opacity = 160 end #-------------------------------------------------------------------------- # ● 刷新画面 #-------------------------------------------------------------------------- def update super # 渐变的情况下 if @fade_in self.contents_opacity += 24 if @input_number_window != nil @input_number_window.contents_opacity += 24 end if self.contents_opacity == 255 @fade_in = false end return end # 输入数值的情况下 if @input_number_window != nil @input_number_window.update # 确定 if Input.trigger?(Input::C) $game_system.se_play($data_system.decision_se) $game_variables[$game_temp.num_input_variable_id] = @input_number_window.number $game_map.need_refresh = true # 释放输入数值窗口 @input_number_window.dispose @input_number_window = nil terminate_message end return end # 显示信息中的情况下 if @contents_showing # 如果不是在显示选择项中就显示暂停标志 if $game_temp.choice_max == 0 self.pause = true end # 取消 if Input.trigger?(Input::B) if $game_temp.choice_max > 0 and $game_temp.choice_cancel_type > 0 $game_system.se_play($data_system.cancel_se) $game_temp.choice_proc.call($game_temp.choice_cancel_type - 1) terminate_message end end # 确定 if Input.trigger?(Input::C) if $game_temp.choice_max > 0 $game_system.se_play($data_system.decision_se) $game_temp.choice_proc.call(self.index) end terminate_message end return end # 在渐变以外的状态下有等待显示的信息与选择项的场合 if @fade_out == false and $game_temp.message_text != nil @contents_showing = true $game_temp.message_window_showing = true reset_window refresh Graphics.frame_reset self.visible = true self.contents_opacity = 0 if @input_number_window != nil @input_number_window.contents_opacity = 0 end @fade_in = true return end # 没有可以显示的信息、但是窗口为可见的情况下 if self.visible @fade_out = true self.opacity -= 48 if self.opacity == 0 self.visible = false @fade_out = false $game_temp.message_window_showing = false end return end end #-------------------------------------------------------------------------- # ● 刷新光标矩形 #-------------------------------------------------------------------------- def update_cursor_rect if @index >= 0 n = $game_temp.choice_start + @index self.cursor_rect.set(8, n * 32, @cursor_width, 32) else self.cursor_rect.empty end end end 汗... |
是不是打错了,switches打错成system了? |
请把原脚本的整页代码都贴出来,不然根本不知道到底是哪里出错了~~ |
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-29 18:06
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.