Can someone help me with this??

Im using a Yanfly's Custom menu options Script so I saw I can introduce a Variable switch...

COMMANDS =[

      :window_red,   # Changes the red tone for all windows.

      :window_grn,   # Changes the green tone for all windows.

      :window_blu,   # Changes the blue tone for all windows.

      :volume_bgm,   # Changes the BGM volume used.

      :volume_bgs,   # Changes the BGS volume used.

      :volume_sfx,   # Changes the SFX volume used.

      :blank,

                     # Sets the player to automatically dash.

 

      :instantmsg,   # Sets message text to appear instantly.

      :animations,   # Enables battle animations or disables them.

      #:switch_1,      # Custom Switch 1. Adjust settings below.

      #:switch_2,     # Custom Switch 2. Adjust settings below.

      :variable_1,   # Custom Variable 1. Adjust settings below.

    # :variable_2,   # Custom Variable 2. Adjust settings below.

      :blank,

      :to_title,     # Returns to the title screen.

      :shutdown,     # Shuts down the game.

    ] # Do not remove this.

    

    #--------------------------------------------------------------------------

    # - Custom Switches -

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    # If you want your game to have system options other than just the ones

    # listed above, you can insert custom switches here to produce such an

    # effect. Adjust the settings here as you see fit.

    #--------------------------------------------------------------------------

    CUSTOM_SWITCHES ={

    # -------------------------------------------------------------------------

    # :switch    => [switch, Name, Off Text, On Text, 

    #                Help Window Description

    #               ], # Do not remove this.

    # -------------------------------------------------------------------------

      :switch_1  => [ 1, "Custom switch 1", "OFF", "ON",

                     "Cambia la apariencia de la ventana"

                    ],

    # -------------------------------------------------------------------------

      :switch_2  => [ 2, "Custom Switch 2", "OFF", "ON",

                     "Help description used for custom switch 2."

                    ],

    # -------------------------------------------------------------------------

    } # Do not remove this.

    

    #--------------------------------------------------------------------------

    # - Custom Variables -

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    # If you want your game to have system options other than just the ones

    # listed above, you can insert custom variables here to produce such an

    # effect. Adjust the settings here as you see fit.

    #--------------------------------------------------------------------------

    CUSTOM_VARIABLES ={

    # -------------------------------------------------------------------------

    # :variable   => [switch, Name, Colour1, Colour2, Min, Max,

    #                 Help Window Description

    #                ], # Do not remove this.

    # -------------------------------------------------------------------------

      :variable_1 => [ 4, "Aspecto", 9, 1, 0, 9,

                      "Cambia la apariencia de la ventana."

                     ],

    # -------------------------------------------------------------------------

      :variable_2 => [ 2, "Custom Variable 2", 10, 2, -10, 10,

                      "Help description used for custom variable 2."

                     ],

    # -------------------------------------------------------------------------

    } # Do not remove this.

    

So I made I variable called (Aspecto) in the menu that looks like this:

[IMG]http://s23.postimg.org/4n8d2ygqj/Aspecto.png[/IMG]

subir fotos online

 

But reached this point I can't go on. I tried everything and I can't continue. My goal is every number of that variable change the window skin to another different one. I have installed Change Windowskin and I think i have to do something with Variable switches and script calls.

 

With this script I can change the skin --->    $game_system.windowskin = "filename"

 

 

Sooooo... What I have to do?
try (haven't checked for correct syntax):

$game_system.windowskin = "filename" + $game_variables[4]

and store the different windowskins as filename1, filename2, filename3 and so on
Thanks and sorry for my grammar.

Edit: I stored different window skins as Skin1, Skin2, Skin3, etc and I dont understand what I have to do with the code im not a wizard.
Ok I tried this time making it this way. I made a event using this form:

[IMG]http://s9.postimg.org/nc3blvzof/evento.png[/IMG]

 

When I do it this works perfectly. Lets check:

 

[IMG]http://s13.postimg.org/5tu09p8iv/Aspecto.png[/IMG]

I open the menu so I have to adjust the bar idk like 4, for example to see if the window skin change.

[IMG]http://s24.postimg.org/wo2lhy73p/Aspecto2.png[/IMG]

What? I failed? lets see what happens when I exit from menu and open it again.

 

[IMG]http://s16.postimg.org/yiat4bm7p/Aspecto3.png[/IMG]

BOOM! Now I can customize window skin and RGB color for each one of them.

 

But theres still a problem. I have to paste the event in every single map to get this thing to work everywhere.

Can someone help me to make this thing global? Using common events or script edition?

 

EDIT: Grammar correction.
Since you already have it down in evented format, I would just go with the common event and call it when the variable changes.

Also, the reason why it doesn't change automatically is because the Yanfly Custom Menu Option window doesn't update itself fully, until you exit back to the menu or reload that window. (or open any window)
I've moved this thread to script support. Please be sure to post your threads in the correct forum next time. Thank you.
Nice, Kerbonklin.

I tried set all the process in a common event but I still need a trigger to activate it, wich implies I still need a event trigger in all the maps of the game.

That doesnt seem to change anything.
You can set the common event's trigger to parallel process, just have a random switch made to enable it since it requires one. If you do this though, then hopefully you won't be running too many parallels at once, cause it could cause lag otherwise.

Or

Find this line and add this

Code:
when :custom_variable  draw_custom_variable(rect, index, @list[index][:ext])  refresh #<<<<<<<<< Add thisend
Thanks a lot! You made my day!

I can't auto refresh the skin but how you said Its no longer possible.

Im using VX Ace btw, I suposse the script line its different I searched in game_variables and I couldn't find it.
Closed topic.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/can-someone-help-me-with-this.19314/