Change windowskin by an option from the menu

I use Yanfly's System Options script, and I wanted to know if is there a way to add a command that change the windowskin graphic using a different file.
is there a way to add a command that change the windowskin graphic using a different file.
It's really very easy with Yanfly system options and one of two scripts.
TheoAllen - Windowskin Changer 1
or
Crystal Engine - Variable Windowskin

Using yanfly's build in variable control, you can set a new option to have the windowskin controlled by changing the variable.
I did just this in my early stages of project building. I have since moved to Luna Engine.
For example...
Ruby:
      :windowskin => [ 54, "Window Skin", 10, 2, 1, 32,
                      "Change the window skins in the game."
                     ],
Ruby:
module CRYSTAL
  module WINDOW
    
    #--------------------------------------------------------------------------
    # * The variable used to determine window skin
    #--------------------------------------------------------------------------
    VARIABLE = 54
    
    #--------------------------------------------------------------------------
    # * The folder for windows
    #--------------------------------------------------------------------------
    FOLDER = "Windows"
    
    #--------------------------------------------------------------------------
    # * The Window Settings
    #--------------------------------------------------------------------------
    WINDOWS = {
    #x => [name,   opacity,    color],
     1 => ["BlackParchment",  255, :default],
     2 => ["Darkness1",  192, :default],
     3 => ["Darkness2",  192, :default],
     4 => ["Dragonis",  192, :default],
     5 => ["FF1",  192, :default],
     6 => ["Fiery1",  192, :default],
     7 => ["Fiery2",  192, :default],
     8 => ["Futuristic",  192, :default],
     9 => ["Gothic",  192, :default],
    10 => ["Grassy", 192, :default],
    11 => ["Horror1", 192, :default],
    12 => ["Leatherygold1", 192, :default],
    13 => ["Marbleblack", 192, :default],
    14 => ["Mystical", 192, :default],
    15 => ["Oceanic", 192, :default],
    16 => ["ParchmentWS", 192, :default],
    17 => ["thought_window", 128, :default],
    18 => ["Window", 255, :default],
    19 => ["Window_11b_mikie0100", 192, :default],
    20 => ["Window_a_00", 192, :default],
    21 => ["Window_a_01", 192, :default],
    22 => ["Window_a_02", 192, :default],
    23 => ["Window_Ariel2", 192, :default],
    24 => ["Window_b_00", 192, :default],
    25 => ["Window_b_01", 192, :default],
    26 => ["Window_c_00", 192, :default],
    27 => ["Window_d_00", 192, :default],
    28 => ["Window_d_01", 192, :default],
    29 => ["Window_d_02", 192, :default],
    30 => ["Woodsy1", 192, :default],
    31 => ["Woodsy2", 192, :default],
    32 => ["Invenio_Window", 220, :default],
    }
    
  end
end
It's really very easy with Yanfly system options and one of two scripts.
TheoAllen - Windowskin Changer 1
or
Crystal Engine - Variable Windowskin

Using yanfly's build in variable control, you can set a new option to have the windowskin controlled by changing the variable.
I did just this in my early stages of project building. I have since moved to Luna Engine.
For example...
Ruby:
      :windowskin => [ 54, "Window Skin", 10, 2, 1, 32,
                      "Change the window skins in the game."
                     ],
Ruby:
module CRYSTAL
  module WINDOW
   
    #--------------------------------------------------------------------------
    # * The variable used to determine window skin
    #--------------------------------------------------------------------------
    VARIABLE = 54
   
    #--------------------------------------------------------------------------
    # * The folder for windows
    #--------------------------------------------------------------------------
    FOLDER = "Windows"
   
    #--------------------------------------------------------------------------
    # * The Window Settings
    #--------------------------------------------------------------------------
    WINDOWS = {
    #x => [name,   opacity,    color],
     1 => ["BlackParchment",  255, :default],
     2 => ["Darkness1",  192, :default],
     3 => ["Darkness2",  192, :default],
     4 => ["Dragonis",  192, :default],
     5 => ["FF1",  192, :default],
     6 => ["Fiery1",  192, :default],
     7 => ["Fiery2",  192, :default],
     8 => ["Futuristic",  192, :default],
     9 => ["Gothic",  192, :default],
    10 => ["Grassy", 192, :default],
    11 => ["Horror1", 192, :default],
    12 => ["Leatherygold1", 192, :default],
    13 => ["Marbleblack", 192, :default],
    14 => ["Mystical", 192, :default],
    15 => ["Oceanic", 192, :default],
    16 => ["ParchmentWS", 192, :default],
    17 => ["thought_window", 128, :default],
    18 => ["Window", 255, :default],
    19 => ["Window_11b_mikie0100", 192, :default],
    20 => ["Window_a_00", 192, :default],
    21 => ["Window_a_01", 192, :default],
    22 => ["Window_a_02", 192, :default],
    23 => ["Window_Ariel2", 192, :default],
    24 => ["Window_b_00", 192, :default],
    25 => ["Window_b_01", 192, :default],
    26 => ["Window_c_00", 192, :default],
    27 => ["Window_d_00", 192, :default],
    28 => ["Window_d_01", 192, :default],
    29 => ["Window_d_02", 192, :default],
    30 => ["Woodsy1", 192, :default],
    31 => ["Woodsy2", 192, :default],
    32 => ["Invenio_Window", 220, :default],
    }
   
  end
end
i'm sorry I literaly don't know anything about scripting, what should i do with this code? Sorry if it's a dumb question.
You must copy the script that was provided to you in the script editor, make the corresponding modifications taking the default as a model, then you must make the modification in the yanfly's script
@Ina00 You need to read some tutorials.
Follow the links in my signature block for basic instructions on using scripts.
The coded I posted above is not complete. It is only an example from the code I used in my early project.
Click these links
↓
It's really very easy with Yanfly system options and one of two scripts.
TheoAllen - Windowskin Changer 1
or
Crystal Engine - Variable Windowskin

Using yanfly's build in variable control, you can set a new option to have the windowskin controlled by changing the variable.
I did just this in my early stages of project building. I have since moved to Luna Engine.
For example...
Ruby:
      :windowskin => [ 54, "Window Skin", 10, 2, 1, 32,
                      "Change the window skins in the game."
                     ],
Ruby:
module CRYSTAL
  module WINDOW
   
    #--------------------------------------------------------------------------
    # * The variable used to determine window skin
    #--------------------------------------------------------------------------
    VARIABLE = 54
   
    #--------------------------------------------------------------------------
    # * The folder for windows
    #--------------------------------------------------------------------------
    FOLDER = "Windows"
   
    #--------------------------------------------------------------------------
    # * The Window Settings
    #--------------------------------------------------------------------------
    WINDOWS = {
    #x => [name,   opacity,    color],
     1 => ["BlackParchment",  255, :default],
     2 => ["Darkness1",  192, :default],
     3 => ["Darkness2",  192, :default],
     4 => ["Dragonis",  192, :default],
     5 => ["FF1",  192, :default],
     6 => ["Fiery1",  192, :default],
     7 => ["Fiery2",  192, :default],
     8 => ["Futuristic",  192, :default],
     9 => ["Gothic",  192, :default],
    10 => ["Grassy", 192, :default],
    11 => ["Horror1", 192, :default],
    12 => ["Leatherygold1", 192, :default],
    13 => ["Marbleblack", 192, :default],
    14 => ["Mystical", 192, :default],
    15 => ["Oceanic", 192, :default],
    16 => ["ParchmentWS", 192, :default],
    17 => ["thought_window", 128, :default],
    18 => ["Window", 255, :default],
    19 => ["Window_11b_mikie0100", 192, :default],
    20 => ["Window_a_00", 192, :default],
    21 => ["Window_a_01", 192, :default],
    22 => ["Window_a_02", 192, :default],
    23 => ["Window_Ariel2", 192, :default],
    24 => ["Window_b_00", 192, :default],
    25 => ["Window_b_01", 192, :default],
    26 => ["Window_c_00", 192, :default],
    27 => ["Window_d_00", 192, :default],
    28 => ["Window_d_01", 192, :default],
    29 => ["Window_d_02", 192, :default],
    30 => ["Woodsy1", 192, :default],
    31 => ["Woodsy2", 192, :default],
    32 => ["Invenio_Window", 220, :default],
    }
   
  end
end

Thank you very much for helping, but i opted for common events, it's easier for me. Thank you anyway :>

Original thread: https://forums.rpgmakerweb.com/threads/change-windowskin-by-an-option-from-the-menu.135945/