=begin #============================================================================== ** Large Script Call Author: Hime Date: Aug 21, 2015 ------------------------------------------------------------------------------ ** Change log Aug 21, 2015 - ignore comments between script calls Oct 3, 2012 - initial release ------------------------------------------------------------------------------ ** Terms of Use * Free to use in non-commercial projects * Contact me for commercial use * No real support. The script is provided as-is * Will do bug fixes, but no compatibility patches * Features may be requested but no guarantees, especially if it is non-trivial * Preserve this header ------------------------------------------------------------------------------ This script changes events so that all script calls that are placed together will be evaluated as a single block of code rather than separate entries. A rough way to get around the 11-line, 484-char limit. #============================================================================== =end $imported = {} if $imported.nil? $imported["Tsuki_LargeScriptCall"] = true #============================================================================== # ** Configuration #============================================================================== module TH module Large_Script_Call # Set this to true if you want to ignore comment commands between scripts Ignore_Comments = false end end #============================================================================== # ** Rest of the script #============================================================================== class Game_Interpreter def command_355() script = @list[@index].parameters[0] + "\n" while true if next_event_code == 655 || next_event_code == 355 script += @list[@index+1].parameters[0] + "\n" elsif TH::Large_Script_Call::Ignore_Comments && next_event_code == 108 # comment, ignore else break end @index += 1 end eval(script) end end