Script Switcher

Script Request Template
Hi, this a request for a new script for RMXP , I am requesting this because i have two conflicting scripts and i dont need them both active at the same time.

is it possible to say have one of the conflicting scripts in use and then write a code in a message or via the script button that will deactivate a script so the other script can work.

now one will probably have to be below main in order for the game to load. so maybe we can switch them out some kind of way?

the two are

Neo mode 7 by MGCaladtogel(conflicting script #1)
Platform Mode script(Conflicting script #2)

Other Scripts I am using (in order):
other scripts im using are:
SDK
XRXS FMBS
Neo mode 7 by MGCaladtogel(conflicting script #1)
MOG Scene Menu
MOG Scene File
MOG Scene Shop
Universal Message System
Zeriab's Caterpillar Script
RPG Maker XP Flash Player
Splash Screen Script
Platform Mode script(Conflicting script #2)
Im not 100% sure that this is posible.

But then again anything is possible with progamming
try this:

add at the top of the the scripts:
if $game_switches != nil and $game_switches[Switch ID]

and at the bottom of the script add a extra end

Teorically this should work. (too busy to test)
thanks atoa

it said this though:

Script 'Game_switches' line 20 NoMethodError occured

undefined method `<=' for NilClass

this is line 20 : if switch_id <= 5000 and @data[switch_id] != nil


oh and am i supposed to leave that switch id part like that or put a switch number from "control switches" i tried both though.
lol...
if $game_switches != nil and $game_switches[Switch ID]
you must replace the Switch ID with the id of the switch...
If you don't know even that, you have an big problem
But i'm not sure that this will work
yeah i did that the first time , i used 0324 and 0325 as the switches.

still got the same error.


oh and the neo mode 7 script is like 5 seperate script pages.
like this:
Neo mode 7 part 1
Neomode 7 part 2
Neo mode 7 part 3
Neo mode 7 part 4
Neo mode 7 part 5
MOG Scene Menu
MOG Scene File
MOG Scene Shop
Universal Message System
Zeriab's Caterpillar Script
Platform mode

when i put it on all 5 of them and the platform script it did nothing. no platform and no mode 7.

so i tried it with just the first neo mode 7 script and platform mode script and it gives me that error.

im just assuming that neo mode 7 wont work at all if the first page is switched off . and it gave me an error so i think thats the correct way to do it. only neo mode part 1 and the platform script.

not sure why it gave me the error?
I knew that but it didnt work so i just asked to make sure.
You just proved you don't know how to add IDs.

Don't add zeros on the left.
E.g.: The correct is "15" and not "0015"

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=66692