Plugin to turn on switch

kako05

Veteran
Veteran
Joined
Sep 11, 2017
Messages
160
Reaction score
18
First Language
Australian
Primarily Uses
RMMV
Really simple. If the plugin is enabled, the switch is turned on.
I tried this, doesn't work :hsad:
Screenshot_5.png
For several conditions exclusive for android ports.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
If what plugin is enabled?

If you have to go to the trouble of enabling/disabling plugins for different builds, then you may as well just do a Control Switches at the start of the game.

I also wouldn't do it via $gameSwitches anyway, because that's only available after a new game is started, and not immediately on loading (which is probably why yours isn't working), and it would be saved with the save file. If a player started playing on one device, then saved and resumed on another, that switch would be incorrect.

It would be better for you to explain why you want to do this, so we can give you a more appropriate way to do it. rpg_core.js, for example, has logic built into the different functions that depend on the device. It doesn't save the info anywhere. It looks it up when it needs to know.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,585
Latest member
Reversinator
Top