이벤트->스크립트에서 에러가 날 경우 어디에서 에러가 났는지 자세히 알려줍니다.
아래쪽 스크립트를 붙여넣기 해 주세요.
※출처 - 레볼루션
#==============================================================================
# ** [ERZVX] Detailled Call Script Error Message (13. April 2008 01:14)
#------------------------------------------------------------------------------
# Shows some details about error in call script and don't exit game.
#==============================================================================
class Game_Interpreter
#--------------------------------------------------------------------------
# * Script
#--------------------------------------------------------------------------
def command_355
script = @list[@index].parameters[0] + "n"
loop {
if @list[@index+1].code == 655 # Second line of script and after
script += @list[@index+1].parameters[0] + "n"
else
break
end
@index += 1
}
begin
eval(script)
rescue Exception
msg = "Error Type:n#{$!.class}nn"
msg += "Map ID:n#{@map_id}nn"
msg += "Event ID:n#{@event_id}nn"
line = $!.message[7, 1].to_i
msg += "Error's line number:n#{line}nn"
lines = script.split(/n/)
msg += "Error's line:n#{lines[(line - 1)]}nn"
msg += "Whole script:n#{script}"
print(msg)
end
return true
end
end