=begin #=============================================================================== Title: Scene Interpreter Author: Hime Date: Nov 21, 2015 -------------------------------------------------------------------------------- ** Change log Nov 21, 2015 - fixed bug where item menu crashes when using common event Nov 17, 2015 - create scene message windows, not normal windows Oct 24, 2015 - implement callback function for scene interpreter Sep 18, 2015 - fixed major memory leak issues reported by Sixth May 26, 2015 - fixed issue with common events called by scene interpreter Jan 27, 2015 - experimental cross-scene common events Nov 19, 2014 - Interpreter is re-created on reset so commands don't continue to run from the previous session Oct 13, 2014 - added support for disabling other windows when interpreter takes control - moved interpreter into SceneManager as a global scene interpreter Sep 5, 2013 - fixed bug where common events returning to map did not execute properly Apr 24, 2013 - fixed bug where game crashed when no common events were reserved Apr 3, 2013 - Added comment to determine scene to run common event Mar 30, 2013 - 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 * Credits to Hime Works in your project * Preserve this header -------------------------------------------------------------------------------- ** Description This script adds an interpreter and message window to every scene so that you can run common events in any scene. -------------------------------------------------------------------------------- ** Installation Place this below Materials and above Main. You should place this above other custom scripts. -------------------------------------------------------------------------------- ** Usage If you would like a common event to run in the current scene, create a comment in the common event command list with this string #=============================================================================== =end $imported = {} if $imported.nil? $imported["TH_SceneInterpreter"] = true #=============================================================================== # ** Configuration #=============================================================================== module TH module Scene_Interpreter # Run common events directly in scene without going to map No_Return_Scene = true Run_Regex = /