甚至还可以用这个做点简写什么的……
class Game_Interpreter def 下一条开始是简写脚本 x,y = @index+1, @list orgx = x if y[x].code==105 y[x].code = 355 y[x].parameters = [''] y[x].code = 655 while y[x+=1].code==405 x = orgx y[x].parameters[0].gsub!(/\\v\[(\d+)\]/) { $game_variables[$1.to_i] } while y[x+=1].code == 405 end end end
class Game_Interpreter
def 下一条开始是简写脚本
x,y = @index+1, @list
orgx = x
if y[x].code==105
y[x].code = 355
y[x].parameters = ['']
y[x].code = 655 while y[x+=1].code==405
x = orgx
y[x].parameters[0].gsub!(/\\v\[(\d+)\]/) { $game_variables[$1.to_i] } while y[x+=1].code == 405
end
end
end
|