Language Switch in Ring Menu (VX, Ruby2, RGSS2)

Hello. I try to set a switch in the Ring Menu script to change the language, but I failed.
VX, Ruby2, RGSS2

What I want is this:
Switch ON = german , Switch OFF = english
Switch ON = Icon_Skill , Switch OFF = Icon_Skill_EN

What I tried is this:

Code:
$game_ring_menu = [
$game_switches[218] == true
   [Vocab::item, Cache::picture('Icon_Skill'), "$scene = Scene_Picture_Gallery.new"],
   ["", Cache::picture('Icon_Load'), "$scene = Scene_File.new(false,false,true)"],
   [Vocab::game_end, Cache::picture('Icon_End'), "$scene = Scene_End.new"]
else
   [Vocab::item, Cache::picture('Icon_Skill_EN'), "$scene = Scene_Picture_Gallery.new"],
   ["", Cache::picture('Icon_Load_EN'), "$scene = Scene_File.new(false,false,true)"],
   [Vocab::game_end, Cache::picture('Icon_End_EN'), "$scene = Scene_End.new"]

   ]

And other methods, nothing works.

Full Script:
that is because you cannot have commands inside an array and expect them to be executed.

please give a link to the full script and people can try to help you.
Since it's inside a method, you should be able to do this
Ruby:
if $game_switches[218] == true
$game_ring_menu = [
 
# Menu Option 0 eg. Item
[Vocab::item, Cache::picture('Icon_Skill'), "$scene = Scene_Picture_Gallery.new"],
["", Cache::picture('Icon_Load'), "$scene = Scene_File.new(false,false,true)"],
[Vocab::game_end, Cache::picture('Icon_End'), "$scene = Scene_End.new"]
 
] # <--- Do no Delete This
else
$game_ring_menu = [
 
# Menu Option 0 eg. Item
[Vocab::item, Cache::picture('Icon_Skill'), "$scene = Scene_Picture_Gallery.new"],
["", Cache::picture('Icon_Load'), "$scene = Scene_File.new(false,false,true)"],
[Vocab::game_end, Cache::picture('Icon_End'), "$scene = Scene_End.new"]
 
] # <--- Do no Delete This
But this loads at the game start. I would recommend a script to load a map before the title screen. VX Ace has one, not sure about VX. So that you can ask the question for the language when you start and the proper icons will load.

Otherwise You would have to make the if condition throughout the script with two $game_ring_menu to use. $game_ring_menu_de & $game_ring_menu_en
thanks for your help. unfortunately it doesn't work.
it happens exactly the same what I tried before. the switch query is ignored.
it doesn't matter if the switch is on or off.

= true - the top area is used
== true - the bottom area is used

I can turn it on / off and doesn't changed.

Ruby:
   if $game_switches[218] = true
   $game_ring_menu = [

   # Menu Option 0  eg. Item
   [Vocab::item, Cache::picture('Icon_Skill'), "$scene = Scene_Picture_Gallery.new"],
   ["", Cache::picture('Icon_Load'), "$scene = Scene_File.new(false,false,true)"],
   [Vocab::game_end, Cache::picture('Icon_End'), "$scene = Scene_End.new"]

   ] # <--- Do no Delete This
   else
   $game_ring_menu = [

   # Menu Option 0  eg. Item
   [Vocab::item, Cache::picture('Icon_Skill_EN'), "$scene = Scene_Picture_Gallery.new"],
   ["", Cache::picture('Icon_Load_EN'), "$scene = Scene_File.new(false,false,true)"],
   [Vocab::game_end, Cache::picture('Icon_End_EN'), "$scene = Scene_End.new"]
  
   ] # <--- Do no Delete This
   end
   #===================================================#
   #  **     E N D   C O N F I G U R A T I O N     **  #
   #===================================================#
  end
end
Did you figure out the issue yet?
I can see that you have if $game_switches[218] = true
that is wrong.
it needs to be if $game_switches[218] == true
Hello. No. Look:
Unbenannt-2.png

If you want, here is a demo:
Ring Menu
As I said previously switches are not checked when starting a game. So on the title screen it will always default to the option with the switch off.
Since the options for the game_ring_menu is in the title screen section, it will never be checked except when you start the game. See the issue there.

two options to make it work for you.

Put the $game_ring_menu in the menu start method
Ruby:
class Scene_Menu < Scene_Base
 
  def start
    super
   if $game_switches[218] == true
   $game_ring_menu = [

   # Menu Option 0  eg. Item
   [Vocab::item, Cache::picture('Icon_Skill'), "$scene = Scene_Picture_Gallery.new"],
   ["", Cache::picture('Icon_Load'), "$scene = Scene_File.new(false,false,true)"],
   [Vocab::game_end, Cache::picture('Icon_End'), "$scene = Scene_End.new"]

   ] # <--- Do no Delete This
   else
   $game_ring_menu = [

   # Menu Option 0  eg. Item
   [Vocab::item, Cache::picture('Icon_Skill_EN'), "$scene = Scene_Picture_Gallery.new"],
   ["", Cache::picture('Icon_Load_EN'), "$scene = Scene_File.new(false,false,true)"],
   [Vocab::game_end, Cache::picture('Icon_End_EN'), "$scene = Scene_End.new"]
 
   ] # <--- Do no Delete This
   end
    create_menu_background
    create_command_window
  end
end

Second option

Set two global variables for the menu (you can't use Vocab::Item and others)
Ruby:
  # Amount of frames for Startup Animation
  STARTUP_FRAMES = 20
  # Amount of frames for Movement Animation
  MOVING_FRAMES = 15
  # Radius of the Menu Ring
  RING_R = 118
  # Disabled icon to display when disabled
  ICON_DISABLE= Cache::picture('')
 
   $game_ring_menu = [

   # Menu Option 0  eg. Item
   ["", Cache::picture('Icon_Skill'), "$scene = Scene_Picture_Gallery.new"],
   ["", Cache::picture('Icon_Load'), "$scene = Scene_File.new(false,false,true)"],
   ["", Cache::picture('Icon_End'), "$scene = Scene_End.new"]

   ] # <--- Do no Delete This
   $game_ring_menu_en = [

   # Menu Option 0  eg. Item
   ["", Cache::picture('Icon_Skill_EN'), "$scene = Scene_Picture_Gallery.new"],
   ["", Cache::picture('Icon_Load_EN'), "$scene = Scene_File.new(false,false,true)"],
   ["", Cache::picture('Icon_End_EN'), "$scene = Scene_End.new"]
 
   ] # <--- Do no Delete This

edit Scene_Menu -> create_command_window
Ruby:
  def create_command_window
    commands = []
    icons = []
    if $game_switches[218] == false
      for i in 0...$game_ring_menu.size
        commands.push($game_ring_menu[i][0])
      end
      for i in 0...$game_ring_menu.size
        icons.push($game_ring_menu[i][1])
      end
    else
      for i in 0...$game_ring_menu_en.size
        commands.push($game_ring_menu_en[i][0])
      end
      for i in 0...$game_ring_menu_en.size
        icons.push($game_ring_menu_en[i][1])
      end
    end
    @command_window = Window_RingMenu.new(232, 170, commands, icons, @move, @menu_index)
  end
Oh my goodness, IT WORKS!
Thank you, Sir! :LZYsmile:
I need new help.
Thats working:

Ruby:
if $game_switches[98] == true
    bitmap = Cache.picture("VGBack01")
    else
    bitmap = Cache.picture("VGBack02")
    end

What I want is a second switch like this (not working):

Ruby:
if $game_switches[98] == true
          if $game_switches[185] == true
          bitmap = Cache.picture("VGBack01_EN")
          else
          bitmap = Cache.picture("VGBack01")
        end
    else
          if $game_switches[185] == true
          bitmap = Cache.picture("VGBack02_EN")
          else
          bitmap = Cache.picture("VGBack02")
        end
    end

Error. How can I fix this?
What does switch 98 do?
what does switch 185 do?
What switch is your language?
where is this change (Scene_Title, Ring Menu, Scene_Menu?)

It should work.
Code:
if $game_switches[185] == true
    if $game_switches[98] == true
          bitmap = Cache.picture("VGBack01_en")
    else
          bitmap = Cache.picture("VGBack02_en")
    end
else
    if $game_switches[98] == true
          bitmap = Cache.picture("VGBack01")
    else
          bitmap = Cache.picture("VGBack02")
    end
end

Original thread: https://forums.rpgmakerweb.com/threads/language-switch-in-ring-menu-vx-ruby2-rgss2.144809/