话说,你可以用数组将那些文字装起来 |
真倾国结尾的end,把前面的井号删了! |
guoxiaoxun123 发表于 2020-5-4 10:15 SyntaxError提示是最明显的语法错误,比如多写了一个end或少写了end或者注释的时候前面忘加个"#"之类的,自己可以一步步检查的,比如把你写的Window_Status里面分段检查一下 |
taeckle 发表于 2020-5-4 03:12 我把完整的代码重新发帖 还有报错的图片也发一下 麻烦大佬帮我看一下那里写的有问题 |
guoxiaoxun123 发表于 2020-5-3 22:03 你要写明代码是写在哪个class的,报错的截图也要放一下。 还有这里说话很方便 |
KB.Driver 发表于 2020-5-3 21:12 大佬留个联系方式 这样说很不方便 |
KB.Driver 发表于 2020-5-3 18:00 #def skill1 # @face.visible = false # @window_equip.visible = false # @window_skill1.visible = true # @window_skill2.visible = true # self.contents.clear @data = [] # 火 水 石 疗 for i in [email protected] skill = $data_skills[@actor.skills] if skill != nil and (skill.id >= 2 and skill.id <= 21) @data.push(skill) end end #@window_skill1.contents.clear if @data[0] != nil @window_skill1.contents.draw_text(0,5,80,30,@data[0].name) end if @data[1] != nil @window_skill1.contents.draw_text(0,40,80,30,@data[1].name) end if @data[2] != nil @window_skill1.contents.draw_text(0,75,80,30,@data[2].name) end if @data[3] != nil @window_skill1.contents.draw_text(0,110,80,30,@data[3].name) end # 阵型 @data = [] for i in [email protected] skill = $data_skills[@actor.skills] if skill != nil and (skill.id >= 41 and skill.id <= 50) @data.push(skill) end end #@window_skill2.contents.clear for i in [email protected] @window_skill2.contents.draw_text((i%2)*90,i/2 * 30,100,24,@data.name) end #end #-------------------------------------------------------------------------- # ● 刷新第三个窗口 #-------------------------------------------------------------------------- #def skill2 #self.contents.clear #@window_skill1.visible = false # @window_skill2.visible = false # @window_skill3.visible = true @data = [] # 火 水 石 疗 for i in [email protected] skill = $data_skills[@actor.skills] if skill != nil and (skill.id >=22 and skill.id <= 39) @data.push(skill) end end #@window_skill3.contents.clear for i in [email protected] @window_skill3.contents.draw_text((i%3)*80,i/3 * 30,90,24,@data.name) end end 大神您看下感觉不应该报错的呀 上面的都没事只是加了这些后就报错了 给看下那写的有问题 |
end if @actor.class_id == 151 self.contents.draw_text(320,160,128,48, "倾国") self.contents.draw_text(220,192,400,48, "计策威力随等级提升") if $game_variables[57] == 26 or $game_variables[370] == 1 self.contents.draw_text(420,160,128,48, "☆") end end if @actor.class_id == 152 self.contents.draw_text(320,160,128,48, "真·倾国") self.contents.draw_text(220,192,400,48, "计策威力随战斗提升") if $game_variables[57] == 26 or $game_variables[370] == 1 self.contents.draw_text(420,160,128,48, "☆") end #end #-------------------------------------------------------------------------- # ● 刷新第二个窗口 #-------------------------------------------------------------------------- #def skill1 # @face.visible = false # @window_equip.visible = false # @window_skill1.visible = true # @window_skill2.visible = true # self.contents.clear @data = [] # 火 水 石 疗 for i in [email protected] skill = $data_skills[@actor.skills[i]] if skill != nil and (skill.id >= 2 and skill.id <= 21) @data.push(skill) end end #@window_skill1.contents.clear if @data[0] != nil @window_skill1.contents.draw_text(0,5,80,30,@data[0].name) end if @data[1] != nil @window_skill1.contents.draw_text(0,40,80,30,@data[1].name) end if @data[2] != nil @window_skill1.contents.draw_text(0,75,80,30,@data[2].name) end if @data[3] != nil @window_skill1.contents.draw_text(0,110,80,30,@data[3].name) end # 阵型 @data = [] for i in [email protected] skill = $data_skills[@actor.skills[i]] if skill != nil and (skill.id >= 41 and skill.id <= 50) @data.push(skill) end end #@window_skill2.contents.clear for i in [email protected] @window_skill2.contents.draw_text((i%2)*90,i/2 * 30,100,24,@data[i].name) end #end #-------------------------------------------------------------------------- # ● 刷新第三个窗口 #-------------------------------------------------------------------------- #def skill2 #self.contents.clear #@window_skill1.visible = false # @window_skill2.visible = false # @window_skill3.visible = true @data = [] # 火 水 石 疗 for i in [email protected] skill = $data_skills[@actor.skills[i]] if skill != nil and (skill.id >=22 and skill.id <= 39) @data.push(skill) end end #@window_skill3.contents.clear for i in [email protected] @window_skill3.contents.draw_text((i%3)*80,i/3 * 30,90,24,@data[i].name) end end end 大神您看下感觉不应该报错的呀 上面的都没事只是加了这些后就报错了 |
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-29 08:16
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.