old text
I'm looking to find a way to put $game_switch[n] = true
in a module section as that is where the information I'm trying to modify is located.
Specifically Yanfly Item Menu type categories based on conditions. In my case a game switch.
I also tried to remove the weapon type farther down in the make_command_list type section
add_command(name, :w_type, true, i)
remove_command("this armor", :w_type, true, i)
what is the true part? I tried to make that $game_switches[n] = true but it doesn't work
Essentially what I need is for the type to only show up when the switch is true.
I need it to be there for certain conditions and not there for other conditions.
in a module section as that is where the information I'm trying to modify is located.
Specifically Yanfly Item Menu type categories based on conditions. In my case a game switch.
I also tried to remove the weapon type farther down in the make_command_list type section
add_command(name, :w_type, true, i)
remove_command("this armor", :w_type, true, i)
what is the true part? I tried to make that $game_switches[n] = true but it doesn't work
Essentially what I need is for the type to only show up when the switch is true.
I need it to be there for certain conditions and not there for other conditions.
I figured it out. By making new weapon categories and using an if statement in the make command list part does what I need.