Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Making Masks through Common Events

iblamevictoria

Towns Guard
I'm having some trouble with some eventing I've been working on. Basically I have a mask as an item. Right now when the player gets their mask, they also get an item just called "[TAKE MASK OFF]" with it. The mask, when used, changes the character sprite and switches on a switch that I use later to let the player through some doors. The "[TAKE MASK OFF]" item does what it says on the tin.


Here's the problem:

I want to have the switch that is switched on when the mask is put on to switch off whenever the mask is taken off, either to switch to a different mask or to go back to the default sprite. HERE'S WHERE IS GETS TROUBLESOME THOUGH. I have it so the "[TAKE MASK OFF]" item is a master item that turns off all switches that masks turn on. But the other masks do not have this master list (apart from it's own switch).

I would rather not go through every common event for every mask I make in the future and switch off EVERY other mask's switch.

Any way to fix this? Any help would be very appreciated.
 
Top