Switch not activating

This is the event that is supposed to turn the switch on


pic 1.PNG


This is the event, a character that was in the party is now supposed to appear as an NPC and walk around


pic2.PNG


If it is set to parallel or autorun trigger the image of the character appears in the game at the start of the level but never moves.  If it is set to Action button, Player touch or event touch, it never appears at all.  I have tried having a blank first page, but the same problem occurs.


I would be grateful if someone could point out where i have gone wrong.


Thanks
i think there is plugin use this switch


Do you have plugin MOG_TimeSystem ?!


Try disable plugins and see
no i don't have that plug in.  I only have Kaus Ulitmate overlay and Yep Region Restrictions.  


The change player follows: OFF works fine.  Just this event switch doesn't.
hmmm, i told you to disable plugins what i mean all plugins


but i think i know what plugin make the trouble 


check  Kaus Ulitmate overlayi it took 4 switches
When you're in the room that the switch is supposed to have an affect, press F9. it'll open the debug menu and allow you to see and change the values of all switches and variables in the game (this is only available during playtesting). If the switch is properly set when in the room, then there's simply a problem with your event.


If I had to guess, is the image loading properly? Press F12 when playtesting as well to bring up the chrome console (The game executable is based off chrome). If the console has errors listed (pressing escape on this new window will show errors and warning in another little panel), then see about getting those fixed.
@mashpotato your second event is rather convoluted in its execution, even if it does look simple, because of the way parallel processes and set move route works.


Change it in the following way and it will work exactly as you want:


delete the set move route


set the autonomous movement to random


set the trigger to action button


place the image as the event image itself


it will work this way.


1) if an event does not exist then its image will not displayed. since you have no page without condition and the single page is conditioned with a switch, no image will be displayed even if set until the switch is activated.


2) once the page is active, it will automatically execute its autonomous movement (it isn't visible in regular events because the default for autonomous movement is fixed - which means fixed position, no movement. set it to random and it will automatically repeat random movement without a set move route


3) it doesn't move in the code above because you overwrite the movement route before it can move, only the first command (image) will be executed and then the parallel process will reset the move route by giving it again, forcing the event again into the first command image without ever giving it time to proceed to the second command (move at random)


I suggest you follow the links for the starting point and then for bughunting in my signature, those will help you learn the basics and prevent such mistakes.


EDIT: I just realised you already set the autonomous movement to random - but that CANNOT be combined with a set move route.


If an event has both autonomous movement AND a set move route (or several set move routes), all those move commands will erase each other and movements won't happen.
Thank you all for your help. After reading all the forums about the plugin I have now managed to solve the appearance issue before the switch is activated. 


Mrcopra - If i turn the Kaus plugin off, the image appears.  


Andar - I did as you said and deleted the move route and put the picture as the image.  I originally had this but changed it to the move route script as the event image was always visible but that must have been something to do with the plugin.  


Zalerinian - I tried looking for errors but F12 doesn't do anything. 


F8 brings up this but i don't know what i'm looking at


pic3.PNG

Original thread: https://forums.rpgmakerweb.com/threads/switch-not-activating.60269/