Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

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)
 

Atoa

Member

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.
 

Atoa

Member

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?
 
lol, someone told me that before , i forgot thnx lol.

but anyway, still did the same thing.

It lets me get in game even though i have both scripts above main(normally that wouldn't work) but neither of them are functioning and they wont turn on.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top