private void SetBGMScriptPath(string BGMPath)
        {
            Cutscene ActiveCutscene = CurrentDialog.CutsceneBefore;

            bool ExistingScriptFound = false;

            foreach (CutsceneActionScript ActiveScript in ActiveCutscene.DicActionScript.Values)
            {
                if (ActiveScript is ScriptPlayMapTheme)
                {
                    ScriptPlayMapTheme ActivePlayMapTheme = (ScriptPlayMapTheme)ActiveScript;
                    ActivePlayMapTheme.BGMPath = BGMPath;
                    ExistingScriptFound        = true;
                    break;
                }
            }

            txtBGM.Text = BGMPath;
            if (!ExistingScriptFound)
            {
                ScriptCutsceneBehavior NewCutsceneBehavior = new ScriptCutsceneBehavior();
                ActiveCutscene.AddActionScript(NewCutsceneBehavior);

                ScriptPlayMapTheme NewPlayMapTheme = new ScriptPlayMapTheme();
                NewPlayMapTheme.ScriptSize.Location = new System.Drawing.Point(170, 0);
                NewPlayMapTheme.BGMPath             = BGMPath;
                InitScript(NewPlayMapTheme);
                ActiveCutscene.AddActionScript(NewPlayMapTheme);

                NewCutsceneBehavior.ArrayEvents[0].Add(new EventInfo(ActiveCutscene.DicActionScript.Count - 1, 0));
            }
        }
        private string GetBGMScriptPath()
        {
            Cutscene ActiveCutscene = CurrentDialog.CutsceneBefore;

            foreach (CutsceneActionScript ActiveScript in ActiveCutscene.DicActionScript.Values)
            {
                if (ActiveScript is ScriptPlayMapTheme)
                {
                    ScriptPlayMapTheme ActivePlayMapTheme = (ScriptPlayMapTheme)ActiveScript;
                    return(ActivePlayMapTheme.BGMPath);
                }
            }

            return(string.Empty);
        }