Common event and local switch

I have hundred of objet that I still changing the code often. So I decide to put everything on a common event.


Unfortunatly, I discover that I can't change a autoswitch within a common event. Did you know if they have any way for modifiate autoswitch of the event witin a common event?
Sure you can.  Why can't you?  A common event, when called from an event, uses that event's ID, so if you change a self switch, it will change the self switch on the calling event.


Check your terminology - you use 'local switch' and 'autoswitch' but neither of them exist under those names.  I'm assuming you mean a self switch with my answer above.
Sure you can.  Why can't you?  A common event, when called from an event, uses that event's ID, so if you change a self switch, it will change the self switch on the calling event.


Check your terminology - you use 'local switch' and 'autoswitch' but neither of them exist under those names.  I'm assuming you mean a self switch with my answer above.

Yes I mean a self switch. But when I change it within the common event, that just dont change it.


But I just discover my mistake..... In did't see the option to call directly the common event, so I created a interupt that I activate, etc.. doing that this way not work because it's not direct. But calling directement the common event work =:0)


"""So it's solve, but I wondering if I can change the image using code. I did't see this option.


Curently I use an ugly code and use selfswitch just for change image(switch pressed on the floor). 


If you want to show what what I have done, but can't copy past here from rpgmv.""" solved too....


it's my current code. in event I just make a conditional brench that check if all objet is not taken and if yes call  this code. Work great. Any recommandation or suggestion?

code.png

Original thread: https://forums.rpgmakerweb.com/threads/common-event-and-local-switch.62961/