本帖最后由 各种压力的猫君 于 2012-2-15 06:06 编辑
首行缩进有问题。
#-------------------------------------------------------------------------- # ● 初始化对像 # viewport : 显示端口 #-------------------------------------------------------------------------- def initialize(viewport) super(viewport) self.bitmap = RPG::Cache.windowskin($game_system.windowskin_name) self.ox = 16 self.oy = 64 self.z = 2500 @blink_count = 0 @index = 0 @help_window = nil update end
#--------------------------------------------------------------------------
# ● 初始化对像
# viewport : 显示端口
#--------------------------------------------------------------------------
def initialize(viewport)
super(viewport)
self.bitmap = RPG::Cache.windowskin($game_system.windowskin_name)
self.ox = 16
self.oy = 64
self.z = 2500
@blink_count = 0
@index = 0
@help_window = nil
update
end
if $game_temp.in_battle x = (修改后的计算公式) else x = 4 + index % 2 * (288 + 32) end
if $game_temp.in_battle
x = (修改后的计算公式)
else
x = 4 + index % 2 * (288 + 32)
end
(上面第一行都是应该有两个半角空格的)
另外语法高亮无法识别#{}(会被优先识别成注释):
# 生成真正的正则式(若不清楚切勿随意修改下一行) REG = /[#{REG1 + (REG2+REG3).gsub!(/./) { "\\" + $& }}]/
# 生成真正的正则式(若不清楚切勿随意修改下一行)
REG = /[#{REG1 + (REG2+REG3).gsub!(/./) { "\\" + $& }}]/
|